diff options
author | Mans Rullgard <mans@mansr.com> | 2011-01-23 14:01:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-23 19:32:09 +0100 |
commit | a4bff12cddc79e47d16ef1e092242ed5c8f1b3b7 (patch) | |
tree | 3ffa9f8dc174478321c02293b1d53aa7169db316 /libavcodec | |
parent | 371cf026a7000460efc5b720505d58391baa2e84 (diff) | |
download | ffmpeg-a4bff12cddc79e47d16ef1e092242ed5c8f1b3b7.tar.gz |
get_bits: move tracing macros to end of file
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 611a6f59ce91947b25033bb8d0f9311b5c542b05)
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/get_bits.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index 88d2bbf80b..210ccc7ca6 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -525,6 +525,27 @@ static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2], return code; } +static inline int decode012(GetBitContext *gb){ + int n; + n = get_bits1(gb); + if (n == 0) + return 0; + else + return get_bits1(gb) + 1; +} + +static inline int decode210(GetBitContext *gb){ + if (get_bits1(gb)) + return 0; + else + return 2 - get_bits1(gb); +} + +static inline int get_bits_left(GetBitContext *gb) +{ + return gb->size_in_bits - get_bits_count(gb); +} + //#define TRACE #ifdef TRACE @@ -585,25 +606,4 @@ static inline int get_xbits_trace(GetBitContext *s, int n, char *file, #define tprintf(p, ...) {} #endif -static inline int decode012(GetBitContext *gb){ - int n; - n = get_bits1(gb); - if (n == 0) - return 0; - else - return get_bits1(gb) + 1; -} - -static inline int decode210(GetBitContext *gb){ - if (get_bits1(gb)) - return 0; - else - return 2 - get_bits1(gb); -} - -static inline int get_bits_left(GetBitContext *gb) -{ - return gb->size_in_bits - get_bits_count(gb); -} - #endif /* AVCODEC_GET_BITS_H */ |