From 0af6967ee747346bbb89b819b30dea11b498d1dd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 26 Jul 2008 02:27:14 +0000 Subject: 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 --- libavcodec/h264data.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavcodec/h264data.h') 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, -- cgit v1.2.3