comparison mpeg12data.c @ 5210:b52fd9b223bb libavcodec

add proper ff_ prefix to new extern symbols
author aurel
date Thu, 05 Jul 2007 09:21:55 +0000
parents 430f60820b21
children 588d15844c80
comparison
equal deleted inserted replaced
5209:2ac10c5e5885 5210:b52fd9b223bb
47 16, 16, 16, 16, 16, 16, 16, 16, 47 16, 16, 16, 16, 16, 16, 16, 16,
48 16, 16, 16, 16, 16, 16, 16, 16, 48 16, 16, 16, 16, 16, 16, 16, 16,
49 16, 16, 16, 16, 16, 16, 16, 16, 49 16, 16, 16, 16, 16, 16, 16, 16,
50 }; 50 };
51 51
52 const uint16_t vlc_dc_lum_code[12] = { 52 const uint16_t ff_mpeg12_vlc_dc_lum_code[12] = {
53 0x4, 0x0, 0x1, 0x5, 0x6, 0xe, 0x1e, 0x3e, 0x7e, 0xfe, 0x1fe, 0x1ff, 53 0x4, 0x0, 0x1, 0x5, 0x6, 0xe, 0x1e, 0x3e, 0x7e, 0xfe, 0x1fe, 0x1ff,
54 }; 54 };
55 const unsigned char vlc_dc_lum_bits[12] = { 55 const unsigned char ff_mpeg12_vlc_dc_lum_bits[12] = {
56 3, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9, 56 3, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9,
57 }; 57 };
58 58
59 const uint16_t vlc_dc_chroma_code[12] = { 59 const uint16_t ff_mpeg12_vlc_dc_chroma_code[12] = {
60 0x0, 0x1, 0x2, 0x6, 0xe, 0x1e, 0x3e, 0x7e, 0xfe, 0x1fe, 0x3fe, 0x3ff, 60 0x0, 0x1, 0x2, 0x6, 0xe, 0x1e, 0x3e, 0x7e, 0xfe, 0x1fe, 0x3fe, 0x3ff,
61 }; 61 };
62 const unsigned char vlc_dc_chroma_bits[12] = { 62 const unsigned char ff_mpeg12_vlc_dc_chroma_bits[12] = {
63 2, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 63 2, 2, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10,
64 }; 64 };
65 65
66 static const uint16_t mpeg1_vlc[113][2] = { 66 static const uint16_t mpeg1_vlc[113][2] = {
67 { 0x3, 2 }, { 0x4, 4 }, { 0x5, 5 }, { 0x6, 7 }, 67 { 0x3, 2 }, { 0x4, 4 }, { 0x5, 5 }, { 0x6, 7 },
161 13, 13, 14, 14, 15, 15, 16, 16, 161 13, 13, 14, 14, 15, 15, 16, 16,
162 17, 18, 19, 20, 21, 22, 23, 24, 162 17, 18, 19, 20, 21, 22, 23, 24,
163 25, 26, 27, 28, 29, 30, 31, 163 25, 26, 27, 28, 29, 30, 31,
164 }; 164 };
165 165
166 RLTable rl_mpeg1 = { 166 RLTable ff_rl_mpeg1 = {
167 111, 167 111,
168 111, 168 111,
169 mpeg1_vlc, 169 mpeg1_vlc,
170 mpeg1_run, 170 mpeg1_run,
171 mpeg1_level, 171 mpeg1_level,
172 }; 172 };
173 173
174 RLTable rl_mpeg2 = { 174 RLTable ff_rl_mpeg2 = {
175 111, 175 111,
176 111, 176 111,
177 mpeg2_vlc, 177 mpeg2_vlc,
178 mpeg1_run, 178 mpeg1_run,
179 mpeg1_level, 179 mpeg1_level,
180 }; 180 };
181 181
182 const uint8_t mbAddrIncrTable[36][2] = { 182 const uint8_t ff_mpeg12_mbAddrIncrTable[36][2] = {
183 {0x1, 1}, 183 {0x1, 1},
184 {0x3, 3}, 184 {0x3, 3},
185 {0x2, 3}, 185 {0x2, 3},
186 {0x3, 4}, 186 {0x3, 4},
187 {0x2, 4}, 187 {0x2, 4},
216 {0x8, 11}, /* escape */ 216 {0x8, 11}, /* escape */
217 {0xf, 11}, /* stuffing */ 217 {0xf, 11}, /* stuffing */
218 {0x0, 8}, /* end (and 15 more 0 bits should follow) */ 218 {0x0, 8}, /* end (and 15 more 0 bits should follow) */
219 }; 219 };
220 220
221 const uint8_t mbPatTable[64][2] = { 221 const uint8_t ff_mpeg12_mbPatTable[64][2] = {
222 {0x1, 9}, 222 {0x1, 9},
223 {0xb, 5}, 223 {0xb, 5},
224 {0x9, 5}, 224 {0x9, 5},
225 {0xd, 6}, 225 {0xd, 6},
226 {0xd, 4}, 226 {0xd, 4},
283 {0xa, 5}, 283 {0xa, 5},
284 {0x8, 5}, 284 {0x8, 5},
285 {0xc, 6} 285 {0xc, 6}
286 }; 286 };
287 287
288 const uint8_t mbMotionVectorTable[17][2] = { 288 const uint8_t ff_mpeg12_mbMotionVectorTable[17][2] = {
289 { 0x1, 1 }, 289 { 0x1, 1 },
290 { 0x1, 2 }, 290 { 0x1, 2 },
291 { 0x1, 3 }, 291 { 0x1, 3 },
292 { 0x1, 4 }, 292 { 0x1, 4 },
293 { 0x3, 6 }, 293 { 0x3, 6 },
331 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 331 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
332 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 332 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
333 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 333 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
334 }; 334 };
335 335
336 const float mpeg1_aspect[16]={ 336 const float ff_mpeg1_aspect[16]={
337 0.0000, 337 0.0000,
338 1.0000, 338 1.0000,
339 0.6735, 339 0.6735,
340 0.7031, 340 0.7031,
341 341
352 1.0950, 352 1.0950,
353 1.1575, 353 1.1575,
354 1.2015, 354 1.2015,
355 }; 355 };
356 356
357 const AVRational mpeg2_aspect[16]={ 357 const AVRational ff_mpeg2_aspect[16]={
358 {0,1}, 358 {0,1},
359 {1,1}, 359 {1,1},
360 {4,3}, 360 {4,3},
361 {16,9}, 361 {16,9},
362 {221,100}, 362 {221,100},