diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-10-11 18:50:30 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-12 20:39:18 +0200 |
commit | d5c62122a7b26704bf867a1262df358623bf5edf (patch) | |
tree | 187a81249ccd692b0d25c951185721055ef3c797 /libavcodec/ivi_common.c | |
parent | 930c9d4373e0f3cb7c64fcfc129127a309f6d066 (diff) | |
download | ffmpeg-d5c62122a7b26704bf867a1262df358623bf5edf.tar.gz |
Move av_reverse table to libavcodec
It is only used in that library.
Diffstat (limited to 'libavcodec/ivi_common.c')
-rw-r--r-- | libavcodec/ivi_common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index d48014c39a..149fffe34f 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -27,10 +27,11 @@ */ #define BITSTREAM_READER_LE +#include "libavutil/attributes.h" #include "avcodec.h" #include "get_bits.h" +#include "mathops.h" #include "ivi_common.h" -#include "libavutil/common.h" #include "ivi_dsp.h" extern const IVIHuffDesc ff_ivi_mb_huff_desc[8]; ///< static macroblock huffman tables @@ -48,9 +49,9 @@ static uint16_t inv_bits(uint16_t val, int nbits) uint16_t res; if (nbits <= 8) { - res = av_reverse[val] >> (8-nbits); + res = ff_reverse[val] >> (8-nbits); } else - res = ((av_reverse[val & 0xFF] << 8) + (av_reverse[val >> 8])) >> (16-nbits); + res = ((ff_reverse[val & 0xFF] << 8) + (ff_reverse[val >> 8])) >> (16-nbits); return res; } |