comparison 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
comparison
equal deleted inserted replaced
7406:7b2819083061 7407:6288bc103b9f
108 108
109 static const uint8_t inter_cbp_to_golomb[48]={ 109 static const uint8_t inter_cbp_to_golomb[48]={
110 0, 2, 3, 7, 4, 8, 17, 13, 5, 18, 9, 14, 10, 15, 16, 11, 110 0, 2, 3, 7, 4, 8, 17, 13, 5, 18, 9, 14, 10, 15, 16, 11,
111 1, 32, 33, 36, 34, 37, 44, 40, 35, 45, 38, 41, 39, 42, 43, 19, 111 1, 32, 33, 36, 34, 37, 44, 40, 35, 45, 38, 41, 39, 42, 43, 19,
112 6, 24, 25, 20, 26, 21, 46, 28, 27, 47, 22, 29, 23, 30, 31, 12 112 6, 24, 25, 20, 26, 21, 46, 28, 27, 47, 22, 29, 23, 30, 31, 12
113 };
114
115 static const uint8_t golomb_to_inter_cbp_gray[16]={
116 0, 1, 2, 4, 8, 3, 5,10,12,15, 7,11,13,14, 6, 9,
117 };
118
119 static const uint8_t golomb_to_intra4x4_cbp_gray[16]={
120 15, 0, 7,11,13,14, 3, 5,10,12, 1, 2, 4, 8, 6, 9,
113 }; 121 };
114 122
115 static const uint8_t chroma_dc_coeff_token_len[4*5]={ 123 static const uint8_t chroma_dc_coeff_token_len[4*5]={
116 2, 0, 0, 0, 124 2, 0, 0, 0,
117 6, 1, 0, 0, 125 6, 1, 0, 0,