comparison vp3.c @ 2866:5cbc5bdbfa61 libavcodec

use av_log in debug mode
author alex
date Wed, 07 Sep 2005 19:15:48 +0000
parents fd5d7c732c6b
children 868c48736d1c
comparison
equal deleted inserted replaced
2865:3b999ce45b37 2866:5cbc5bdbfa61
73 #define DEBUG_VLC 0 73 #define DEBUG_VLC 0
74 #define DEBUG_DC_PRED 0 74 #define DEBUG_DC_PRED 0
75 #define DEBUG_IDCT 0 75 #define DEBUG_IDCT 0
76 76
77 #if DEBUG_VP3 77 #if DEBUG_VP3
78 #define debug_vp3 printf 78 #define debug_vp3(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
79 #else 79 #else
80 static inline void debug_vp3(const char *format, ...) { } 80 static inline void debug_vp3(const char *format, ...) { }
81 #endif 81 #endif
82 82
83 #if DEBUG_INIT 83 #if DEBUG_INIT
84 #define debug_init printf 84 #define debug_init(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
85 #else 85 #else
86 static inline void debug_init(const char *format, ...) { } 86 static inline void debug_init(const char *format, ...) { }
87 #endif 87 #endif
88 88
89 #if DEBUG_DEQUANTIZERS 89 #if DEBUG_DEQUANTIZERS
90 #define debug_dequantizers printf 90 #define debug_dequantizers(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
91 #else 91 #else
92 static inline void debug_dequantizers(const char *format, ...) { } 92 static inline void debug_dequantizers(const char *format, ...) { }
93 #endif 93 #endif
94 94
95 #if DEBUG_BLOCK_CODING 95 #if DEBUG_BLOCK_CODING
96 #define debug_block_coding printf 96 #define debug_block_coding(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
97 #else 97 #else
98 static inline void debug_block_coding(const char *format, ...) { } 98 static inline void debug_block_coding(const char *format, ...) { }
99 #endif 99 #endif
100 100
101 #if DEBUG_MODES 101 #if DEBUG_MODES
102 #define debug_modes printf 102 #define debug_modes(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
103 #else 103 #else
104 static inline void debug_modes(const char *format, ...) { } 104 static inline void debug_modes(const char *format, ...) { }
105 #endif 105 #endif
106 106
107 #if DEBUG_VECTORS 107 #if DEBUG_VECTORS
108 #define debug_vectors printf 108 #define debug_vectors(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
109 #else 109 #else
110 static inline void debug_vectors(const char *format, ...) { } 110 static inline void debug_vectors(const char *format, ...) { }
111 #endif 111 #endif
112 112
113 #if DEBUG_TOKEN 113 #if DEBUG_TOKEN
114 #define debug_token printf 114 #define debug_token(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
115 #else 115 #else
116 static inline void debug_token(const char *format, ...) { } 116 static inline void debug_token(const char *format, ...) { }
117 #endif 117 #endif
118 118
119 #if DEBUG_VLC 119 #if DEBUG_VLC
120 #define debug_vlc printf 120 #define debug_vlc(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
121 #else 121 #else
122 static inline void debug_vlc(const char *format, ...) { } 122 static inline void debug_vlc(const char *format, ...) { }
123 #endif 123 #endif
124 124
125 #if DEBUG_DC_PRED 125 #if DEBUG_DC_PRED
126 #define debug_dc_pred printf 126 #define debug_dc_pred(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
127 #else 127 #else
128 static inline void debug_dc_pred(const char *format, ...) { } 128 static inline void debug_dc_pred(const char *format, ...) { }
129 #endif 129 #endif
130 130
131 #if DEBUG_IDCT 131 #if DEBUG_IDCT
132 #define debug_idct printf 132 #define debug_idct(args...) av_log(NULL, AV_LOG_DEBUG, ## args)
133 #else 133 #else
134 static inline void debug_idct(const char *format, ...) { } 134 static inline void debug_idct(const char *format, ...) { }
135 #endif 135 #endif
136 136
137 typedef struct Coeff { 137 typedef struct Coeff {