diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-26 02:27:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-26 02:27:14 +0000 |
commit | 0af6967ee747346bbb89b819b30dea11b498d1dd (patch) | |
tree | 2c4595739a6aac281f52256f6e632d927d99a01e /libavcodec/h264data.h | |
parent | 385c820b4a1bff625936ec66be9c151ea2f9718b (diff) | |
download | ffmpeg-0af6967ee747346bbb89b819b30dea11b498d1dd.tar.gz |
chroma_format_idc=0 aka grayscale support.
Can be disabled by removing #define ALLOW_NOCHROMA in case the extra if()
slow the code down measurably.
Fixes at least
FRExt/HPCAMOLQ_BRCM_B.264
FRExt/HPCVMOLQ_BRCM_B.264
Originally committed as revision 14407 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264data.h')
-rw-r--r-- | libavcodec/h264data.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/h264data.h b/libavcodec/h264data.h index 237e3f8709..32cbcbf051 100644 --- a/libavcodec/h264data.h +++ b/libavcodec/h264data.h @@ -112,6 +112,14 @@ static const uint8_t inter_cbp_to_golomb[48]={ 6, 24, 25, 20, 26, 21, 46, 28, 27, 47, 22, 29, 23, 30, 31, 12 }; +static const uint8_t golomb_to_inter_cbp_gray[16]={ + 0, 1, 2, 4, 8, 3, 5,10,12,15, 7,11,13,14, 6, 9, +}; + +static const uint8_t golomb_to_intra4x4_cbp_gray[16]={ +15, 0, 7,11,13,14, 3, 5,10,12, 1, 2, 4, 8, 6, 9, +}; + static const uint8_t chroma_dc_coeff_token_len[4*5]={ 2, 0, 0, 0, 6, 1, 0, 0, |