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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (view) (download)

1 : edgomez 1.10 /*****************************************************************************
2 :     *
3 :     * XVID MPEG-4 VIDEO CODEC
4 :     * - Timer related header (used for internal debugging) -
5 :     *
6 :     * Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
7 :     *
8 :     * 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
10 :     * the Free Software Foundation ; either version 2 of the License, or
11 :     * (at your option) any later version.
12 :     *
13 :     * This program is distributed in the hope that it will be useful,
14 :     * but WITHOUT ANY WARRANTY ; without even the implied warranty of
15 :     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 :     * GNU General Public License for more details.
17 :     *
18 :     * You should have received a copy of the GNU General Public License
19 :     * along with this program ; if not, write to the Free Software
20 :     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 :     *
22 :     * $Id$
23 :     *
24 :     ****************************************************************************/
25 :    
26 : edgomez 1.9 #ifndef _ENCORE_TIMER_H
27 :     #define _ENCORE_TIMER_H
28 : Isibaar 1.1
29 : edgomez 1.9 #if defined(_PROFILING_)
30 : Isibaar 1.1
31 :     #include "../portab.h"
32 :    
33 :     uint64_t count_frames;
34 :    
35 :     extern void start_timer();
36 :     extern void start_global_timer();
37 :     extern void stop_dct_timer();
38 :     extern void stop_idct_timer();
39 :     extern void stop_motion_timer();
40 :     extern void stop_comp_timer();
41 :     extern void stop_edges_timer();
42 :     extern void stop_inter_timer();
43 :     extern void stop_quant_timer();
44 :     extern void stop_iquant_timer();
45 :     extern void stop_conv_timer();
46 :     extern void stop_transfer_timer();
47 :     extern void stop_coding_timer();
48 :     extern void stop_prediction_timer();
49 : h 1.2 extern void stop_interlacing_timer();
50 : Isibaar 1.1 extern void stop_global_timer();
51 :     extern void init_timer();
52 :     extern void write_timer();
53 :    
54 :     #else
55 :    
56 : edgomez 1.4 static __inline void
57 : edgomez 1.9 start_timer()
58 : edgomez 1.4 {
59 :     }
60 :     static __inline void
61 : edgomez 1.9 start_global_timer()
62 : edgomez 1.4 {
63 :     }
64 :     static __inline void
65 : edgomez 1.9 stop_dct_timer()
66 : edgomez 1.4 {
67 :     }
68 :     static __inline void
69 : edgomez 1.9 stop_idct_timer()
70 : edgomez 1.4 {
71 :     }
72 :     static __inline void
73 : edgomez 1.9 stop_motion_timer()
74 : edgomez 1.4 {
75 :     }
76 :     static __inline void
77 : edgomez 1.9 stop_comp_timer()
78 : edgomez 1.4 {
79 :     }
80 :     static __inline void
81 : edgomez 1.9 stop_edges_timer()
82 : edgomez 1.4 {
83 :     }
84 :     static __inline void
85 : edgomez 1.9 stop_inter_timer()
86 : edgomez 1.4 {
87 :     }
88 :     static __inline void
89 : edgomez 1.9 stop_quant_timer()
90 : edgomez 1.4 {
91 :     }
92 :     static __inline void
93 : edgomez 1.9 stop_iquant_timer()
94 : edgomez 1.4 {
95 :     }
96 :     static __inline void
97 : edgomez 1.9 stop_conv_timer()
98 : edgomez 1.4 {
99 :     }
100 :     static __inline void
101 : edgomez 1.9 stop_transfer_timer()
102 : edgomez 1.4 {
103 :     }
104 :     static __inline void
105 : edgomez 1.9 init_timer()
106 : edgomez 1.4 {
107 :     }
108 :     static __inline void
109 : edgomez 1.9 write_timer()
110 : edgomez 1.4 {
111 :     }
112 :     static __inline void
113 : edgomez 1.9 stop_coding_timer()
114 : edgomez 1.4 {
115 :     }
116 :     static __inline void
117 : edgomez 1.9 stop_interlacing_timer()
118 : edgomez 1.4 {
119 :     }
120 :     static __inline void
121 : edgomez 1.9 stop_prediction_timer()
122 : edgomez 1.4 {
123 :     }
124 :     static __inline void
125 : edgomez 1.9 stop_global_timer()
126 : edgomez 1.4 {
127 :     }
128 : Isibaar 1.1
129 : edgomez 1.9 #endif
130 : Isibaar 1.1
131 : edgomez 1.9 #endif /* _TIMER_H_ */

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