[cvs] / xvidcore / src / utils / timer.h Repository:
ViewVC logotype

Diff of /xvidcore/src/utils/timer.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6, Sat Oct 19 11:41:12 2002 UTC revision 1.11, Tue Nov 22 10:23:01 2005 UTC
# Line 1  Line 1 
1  /*****************************************************************************  /*****************************************************************************
2   *   *
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Simple profiling functions header file -   *  - Timer related header (used for internal debugging)  -
5   *   *
6   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
7   *   *
  *  This program is an implementation of a part of one or more MPEG-4  
  *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending  
  *  to use this software module in hardware or software products are  
  *  advised that its use may infringe existing patents or copyrights, and  
  *  any such use would be at such party's own risk.  The original  
  *  developer of this software module and his/her company, and subsequent  
  *  editors and their companies, will have no liability for use of this  
  *  software or modifications or derivatives thereof.  
  *  
8   *  This program is free software; you can redistribute it and/or modify   *  This program is free software; you can redistribute it and/or modify
9   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
10   *  the Free Software Foundation; either version 2 of the License, or   *  the Free Software Foundation; either version 2 of the License, or
# Line 32  Line 23 
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
26  #ifndef _TIMER_H  #ifndef _ENCORE_TIMER_H
27  #define _TIMER_H  #define _ENCORE_TIMER_H
28    
29  /*****************************************************************************  #if defined(_PROFILING_)
  * Prototypes  
  ****************************************************************************/  
   
 #ifdef _PROFILING_  
30    
31  #include "../portab.h"  #include "../portab.h"
32    
33  uint64_t count_frames;  uint64_t count_frames;
34    
35  /* Here we declare external symbols defined in timer.h */  extern void start_timer(void);
36  extern void start_timer();  extern void start_global_timer(void);
37  extern void start_global_timer();  extern void stop_dct_timer(void);
38  extern void stop_dct_timer();  extern void stop_idct_timer(void);
39  extern void stop_idct_timer();  extern void stop_motion_timer(void);
40  extern void stop_motion_timer();  extern void stop_comp_timer(void);
41  extern void stop_comp_timer();  extern void stop_edges_timer(void);
42  extern void stop_edges_timer();  extern void stop_inter_timer(void);
43  extern void stop_inter_timer();  extern void stop_quant_timer(void);
44  extern void stop_quant_timer();  extern void stop_iquant_timer(void);
45  extern void stop_iquant_timer();  extern void stop_conv_timer(void);
46  extern void stop_conv_timer();  extern void stop_transfer_timer(void);
47  extern void stop_transfer_timer();  extern void stop_coding_timer(void);
48  extern void stop_coding_timer();  extern void stop_prediction_timer(void);
49  extern void stop_prediction_timer();  extern void stop_interlacing_timer(void);
50  extern void stop_interlacing_timer();  extern void stop_global_timer(void);
51  extern void stop_global_timer();  extern void init_timer(void);
52  extern void init_timer();  extern void write_timer(void);
 extern void write_timer();  
53    
54  #else  #else
55    
 /*  
  * We define dummy inline functions, a good compiler should just  
  *  remove the function call  
  */  
   
56  static __inline void  static __inline void
57  start_timer()  start_timer(void)
58  {  {
59  }  }
60  static __inline void  static __inline void
61  start_global_timer()  start_global_timer(void)
62  {  {
63  }  }
64  static __inline void  static __inline void
65  stop_dct_timer()  stop_dct_timer(void)
66  {  {
67  }  }
68  static __inline void  static __inline void
69  stop_idct_timer()  stop_idct_timer(void)
70  {  {
71  }  }
72  static __inline void  static __inline void
73  stop_motion_timer()  stop_motion_timer(void)
74  {  {
75  }  }
76  static __inline void  static __inline void
77  stop_comp_timer()  stop_comp_timer(void)
78  {  {
79  }  }
80  static __inline void  static __inline void
81  stop_edges_timer()  stop_edges_timer(void)
82  {  {
83  }  }
84  static __inline void  static __inline void
85  stop_inter_timer()  stop_inter_timer(void)
86  {  {
87  }  }
88  static __inline void  static __inline void
89  stop_quant_timer()  stop_quant_timer(void)
90  {  {
91  }  }
92  static __inline void  static __inline void
93  stop_iquant_timer()  stop_iquant_timer(void)
94  {  {
95  }  }
96  static __inline void  static __inline void
97  stop_conv_timer()  stop_conv_timer(void)
98  {  {
99  }  }
100  static __inline void  static __inline void
101  stop_transfer_timer()  stop_transfer_timer(void)
102  {  {
103  }  }
104  static __inline void  static __inline void
105  init_timer()  init_timer(void)
106  {  {
107  }  }
108  static __inline void  static __inline void
109  write_timer()  write_timer(void)
110  {  {
111  }  }
112  static __inline void  static __inline void
113  stop_coding_timer()  stop_coding_timer(void)
114  {  {
115  }  }
116  static __inline void  static __inline void
117  stop_interlacing_timer()  stop_interlacing_timer(void)
118  {  {
119  }  }
120  static __inline void  static __inline void
121  stop_prediction_timer()  stop_prediction_timer(void)
122  {  {
123  }  }
124  static __inline void  static __inline void
125  stop_global_timer()  stop_global_timer(void)
126  {  {
127  }  }
128    
129  #endif /* _PROFILING_ */  #endif
130    
131  #endif /* _TIMER_H_ */  #endif /* _TIMER_H_ */

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.11

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4