comparison bitstream.h @ 4600:6ac364a4ce2b libavcodec

Supply context to tprintf
author mbardiaux
date Tue, 27 Feb 2007 09:39:04 +0000
parents 8abb0317d1eb
children 522e52c630bd
comparison
equal deleted inserted replaced
4599:2cd245d65761 4600:6ac364a4ce2b
936 #define get_bits1(s) get_bits_trace(s, 1, __FILE__, __PRETTY_FUNCTION__, __LINE__) 936 #define get_bits1(s) get_bits_trace(s, 1, __FILE__, __PRETTY_FUNCTION__, __LINE__)
937 #define get_xbits(s, n) get_xbits_trace(s, n, __FILE__, __PRETTY_FUNCTION__, __LINE__) 937 #define get_xbits(s, n) get_xbits_trace(s, n, __FILE__, __PRETTY_FUNCTION__, __LINE__)
938 #define get_vlc(s, vlc) get_vlc_trace(s, (vlc)->table, (vlc)->bits, 3, __FILE__, __PRETTY_FUNCTION__, __LINE__) 938 #define get_vlc(s, vlc) get_vlc_trace(s, (vlc)->table, (vlc)->bits, 3, __FILE__, __PRETTY_FUNCTION__, __LINE__)
939 #define get_vlc2(s, tab, bits, max) get_vlc_trace(s, tab, bits, max, __FILE__, __PRETTY_FUNCTION__, __LINE__) 939 #define get_vlc2(s, tab, bits, max) get_vlc_trace(s, tab, bits, max, __FILE__, __PRETTY_FUNCTION__, __LINE__)
940 940
941 #define tprintf(...) av_log(NULL, AV_LOG_DEBUG, __VA_ARGS__) 941 #define tprintf(p, ...) av_log(p, AV_LOG_DEBUG, __VA_ARGS__)
942 942
943 #else //TRACE 943 #else //TRACE
944 #define tprintf(...) {} 944 #define tprintf(p, ...) {}
945 #endif 945 #endif
946 946
947 static inline int decode012(GetBitContext *gb){ 947 static inline int decode012(GetBitContext *gb){
948 int n; 948 int n;
949 n = get_bits1(gb); 949 n = get_bits1(gb);