Mercurial > libavcodec.hg
diff h264data.h @ 7407:6288bc103b9f libavcodec
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
author | michael |
---|---|
date | Sat, 26 Jul 2008 02:27:14 +0000 |
parents | f7cbb7733146 |
children | c4a4495715dd |
line wrap: on
line diff
--- a/h264data.h Sat Jul 26 01:57:10 2008 +0000 +++ b/h264data.h Sat Jul 26 02:27:14 2008 +0000 @@ -112,6 +112,14 @@ 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,