diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-11-21 10:00:03 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-11-21 10:00:03 +0000 |
commit | 3c54686885a92708839f18f32720573e5343ce3b (patch) | |
tree | 5a1e8ed262b438f1bdfe3910d9658e3b6474f6d8 /libavcodec/h264enc.c | |
parent | d1eb20e8789138f19e52d431db3027a0f2fd79a4 (diff) | |
download | ffmpeg-streaming-3c54686885a92708839f18f32720573e5343ce3b.zip ffmpeg-streaming-3c54686885a92708839f18f32720573e5343ce3b.tar.gz |
Move H.264 tables that are only useful for encoding to h264enc.c.
Originally committed as revision 15899 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264enc.c')
-rw-r--r-- | libavcodec/h264enc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/h264enc.c b/libavcodec/h264enc.c index 2cff901..4a760c6 100644 --- a/libavcodec/h264enc.c +++ b/libavcodec/h264enc.c @@ -107,3 +107,16 @@ static uint8_t *h264_write_nal_unit(int nal_ref_idc, int nal_unit_type, uint8_t return dest+destpos; } +static const uint8_t pict_type_to_golomb[7] = {-1, 2, 0, 1, -1, 4, 3}; + +static const uint8_t intra4x4_cbp_to_golomb[48] = { + 3, 29, 30, 17, 31, 18, 37, 8, 32, 38, 19, 9, 20, 10, 11, 2, + 16, 33, 34, 21, 35, 22, 39, 4, 36, 40, 23, 5, 24, 6, 7, 1, + 41, 42, 43, 25, 44, 26, 46, 12, 45, 47, 27, 13, 28, 14, 15, 0 +}; + +static const uint8_t inter_cbp_to_golomb[48] = { + 0, 2, 3, 7, 4, 8, 17, 13, 5, 18, 9, 14, 10, 15, 16, 11, + 1, 32, 33, 36, 34, 37, 44, 40, 35, 45, 38, 41, 39, 42, 43, 19, + 6, 24, 25, 20, 26, 21, 46, 28, 27, 47, 22, 29, 23, 30, 31, 12 +}; |