comparison vc9data.h @ 2474:81a9f883a17a libavcodec

In that patch: - avctx and gb elements were removed from VC9Context, hence a larger diff - some code was added to h263dec.c regarding CODEC_ID_WMV3 (should apply to CODEC_ID_VC9 too) - VLC tables and other related tables were made global whenever this seemed necessary; appropriate changes were therefore made to other parts of the code using those tables - the change for the bitplane management to a struct (some of them should eventually be mapped to MpegEncContext arrays) wasn't associated with the proper frees; should be fixed now patch by anonymous better names for globalized tables by me
author michael
date Sun, 30 Jan 2005 16:34:57 +0000
parents 5565203c95ee
children db05cb59c6fc
comparison
equal deleted inserted replaced
2473:73afecc117a3 2474:81a9f883a17a
165 { 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4, 4, 4, 4, 4, 2}, 165 { 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4, 4, 4, 4, 4, 2},
166 { 4, 4, 4, 4, 4, 4, 5, 4, 4, 5, 4, 4, 4, 4, 4, 3}, 166 { 4, 4, 4, 4, 4, 4, 5, 4, 4, 5, 4, 4, 4, 4, 4, 3},
167 { 2, 4, 4, 4, 4, 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4} 167 { 2, 4, 4, 4, 4, 4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4}
168 }; 168 };
169 169
170 /* I-Picture CBPCY VLC tables */ 170 const uint8_t wmv3_dc_scale_table[32]={
171 //same as msmpeg4 table_mb_intra 171 0, 4, 6, 8, 8, 8, 9, 9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21
172 static const uint16_t vc9_cbpcy_i_codes[64] = {
173 1, 23, 9, 5, 6, 71, 32, 16,
174 2, 124, 58, 29, 2, 236, 119, 0,
175 3, 183, 44, 19, 1, 360, 70, 63,
176 30, 1810, 181, 66, 34, 453, 286, 135,
177 6, 3, 30, 28, 18, 904, 68, 112,
178 31, 574, 57, 142, 1, 454, 182, 69,
179 20, 575, 125, 24, 7, 455, 134, 25,
180 21, 475, 2, 70, 13, 1811, 474, 361
181 };
182 static const uint8_t vc9_cbpcy_i_bits[64] = {
183 1, 6, 5, 5, 5, 9, 7, 7, 5, 9, 7, 7, 6, 9, 8, 8,
184 5, 9, 7, 7, 6, 10, 8, 8, 6, 13, 9, 8, 7, 11, 10, 9,
185 4, 9, 7, 6, 7, 12, 9, 9, 6, 11, 8, 9, 7, 11, 9, 9,
186 6, 11, 9, 9, 7, 11, 9, 9, 6, 10, 9, 9, 8, 13, 10, 10
187 }; 172 };
188 173
189 /* P-Picture CBPCY VLC tables */ 174 /* P-Picture CBPCY VLC tables */
190 static const uint16_t vc9_cbpcy_p_codes[4][64] = { 175 static const uint16_t vc9_cbpcy_p_codes[4][64] = {
191 { 176 {