Mercurial > libavcodec.hg
comparison common.h @ 1940:2511d3e4513e libavcodec
t/dprintf printf -> av_log
author | michael |
---|---|
date | Fri, 16 Apr 2004 01:29:35 +0000 |
parents | 7aaf242d5b51 |
children | e943363932d9 |
comparison
equal
deleted
inserted
replaced
1939:71fe2180024c | 1940:2511d3e4513e |
---|---|
215 inline void dprintf(const char* fmt,...) {} | 215 inline void dprintf(const char* fmt,...) {} |
216 | 216 |
217 # else | 217 # else |
218 | 218 |
219 # ifdef DEBUG | 219 # ifdef DEBUG |
220 # define dprintf(fmt,...) printf(fmt, __VA_ARGS__) | 220 # define dprintf(fmt,...) av_log(NULL, AV_LOG_DEBUG, fmt, __VA_ARGS__) |
221 # else | 221 # else |
222 # define dprintf(fmt,...) | 222 # define dprintf(fmt,...) |
223 # endif | 223 # endif |
224 | 224 |
225 # endif /* !CONFIG_WIN32 */ | 225 # endif /* !CONFIG_WIN32 */ |
1059 #define get_bits1(s) get_bits_trace(s, 1, __FILE__, __PRETTY_FUNCTION__, __LINE__) | 1059 #define get_bits1(s) get_bits_trace(s, 1, __FILE__, __PRETTY_FUNCTION__, __LINE__) |
1060 #define get_xbits(s, n) get_xbits_trace(s, n, __FILE__, __PRETTY_FUNCTION__, __LINE__) | 1060 #define get_xbits(s, n) get_xbits_trace(s, n, __FILE__, __PRETTY_FUNCTION__, __LINE__) |
1061 #define get_vlc(s, vlc) get_vlc_trace(s, (vlc)->table, (vlc)->bits, 3, __FILE__, __PRETTY_FUNCTION__, __LINE__) | 1061 #define get_vlc(s, vlc) get_vlc_trace(s, (vlc)->table, (vlc)->bits, 3, __FILE__, __PRETTY_FUNCTION__, __LINE__) |
1062 #define get_vlc2(s, tab, bits, max) get_vlc_trace(s, tab, bits, max, __FILE__, __PRETTY_FUNCTION__, __LINE__) | 1062 #define get_vlc2(s, tab, bits, max) get_vlc_trace(s, tab, bits, max, __FILE__, __PRETTY_FUNCTION__, __LINE__) |
1063 | 1063 |
1064 #define tprintf printf | 1064 #define tprintf(...) av_log(NULL, AV_LOG_DEBUG, __VA_ARGS__) |
1065 | 1065 |
1066 #else //TRACE | 1066 #else //TRACE |
1067 #define tprintf(...) {} | 1067 #define tprintf(...) {} |
1068 #endif | 1068 #endif |
1069 | 1069 |