Mercurial > libavcodec.hg
comparison mpeg12data.h @ 2967:ef2149182f1c libavcodec
COSMETICS: Remove all trailing whitespace.
author | diego |
---|---|
date | Sat, 17 Dec 2005 18:14:38 +0000 |
parents | ba8ecddf5598 |
children | bfabfdf9ce55 |
comparison
equal
deleted
inserted
replaced
2966:564788471dd4 | 2967:ef2149182f1c |
---|---|
85 {0x13,15}, {0x12,15}, {0x11,15}, {0x10,15}, | 85 {0x13,15}, {0x12,15}, {0x11,15}, {0x10,15}, |
86 {0x02, 3}, {0x06, 5}, {0x79, 7}, {0x27, 8}, | 86 {0x02, 3}, {0x06, 5}, {0x79, 7}, {0x27, 8}, |
87 {0x20, 8}, {0x16,13}, {0x15,13}, {0x1f,15}, | 87 {0x20, 8}, {0x16,13}, {0x15,13}, {0x1f,15}, |
88 {0x1e,15}, {0x1d,15}, {0x1c,15}, {0x1b,15}, | 88 {0x1e,15}, {0x1d,15}, {0x1c,15}, {0x1b,15}, |
89 {0x1a,15}, {0x19,15}, {0x13,16}, {0x12,16}, | 89 {0x1a,15}, {0x19,15}, {0x13,16}, {0x12,16}, |
90 {0x11,16}, {0x10,16}, {0x05, 5}, {0x07, 7}, | 90 {0x11,16}, {0x10,16}, {0x05, 5}, {0x07, 7}, |
91 {0xfc, 8}, {0x0c,10}, {0x14,13}, {0x07, 5}, | 91 {0xfc, 8}, {0x0c,10}, {0x14,13}, {0x07, 5}, |
92 {0x26, 8}, {0x1c,12}, {0x13,13}, {0x06, 6}, | 92 {0x26, 8}, {0x1c,12}, {0x13,13}, {0x06, 6}, |
93 {0xfd, 8}, {0x12,12}, {0x07, 6}, {0x04, 9}, | 93 {0xfd, 8}, {0x12,12}, {0x07, 6}, {0x04, 9}, |
94 {0x12,13}, {0x06, 7}, {0x1e,12}, {0x14,16}, | 94 {0x12,13}, {0x06, 7}, {0x1e,12}, {0x14,16}, |
95 {0x04, 7}, {0x15,12}, {0x05, 7}, {0x11,12}, | 95 {0x04, 7}, {0x15,12}, {0x05, 7}, {0x11,12}, |
96 {0x78, 7}, {0x11,13}, {0x7a, 7}, {0x10,13}, | 96 {0x78, 7}, {0x11,13}, {0x7a, 7}, {0x10,13}, |
97 {0x21, 8}, {0x1a,16}, {0x25, 8}, {0x19,16}, | 97 {0x21, 8}, {0x1a,16}, {0x25, 8}, {0x19,16}, |
98 {0x24, 8}, {0x18,16}, {0x05, 9}, {0x17,16}, | 98 {0x24, 8}, {0x18,16}, {0x05, 9}, {0x17,16}, |
99 {0x07, 9}, {0x16,16}, {0x0d,10}, {0x15,16}, | 99 {0x07, 9}, {0x16,16}, {0x0d,10}, {0x15,16}, |
100 {0x1f,12}, {0x1a,12}, {0x19,12}, {0x17,12}, | 100 {0x1f,12}, {0x1a,12}, {0x19,12}, {0x17,12}, |
101 {0x16,12}, {0x1f,13}, {0x1e,13}, {0x1d,13}, | 101 {0x16,12}, {0x1f,13}, {0x1e,13}, {0x1d,13}, |
102 {0x1c,13}, {0x1b,13}, {0x1f,16}, {0x1e,16}, | 102 {0x1c,13}, {0x1b,13}, {0x1f,16}, {0x1e,16}, |
103 {0x1d,16}, {0x1c,16}, {0x1b,16}, | 103 {0x1d,16}, {0x1c,16}, {0x1b,16}, |
104 {0x01,6}, /* escape */ | 104 {0x01,6}, /* escape */ |
105 {0x06,4}, /* EOB */ | 105 {0x06,4}, /* EOB */ |
106 }; | 106 }; |
107 | 107 |
108 static const int8_t mpeg1_level[111] = { | 108 static const int8_t mpeg1_level[111] = { |
373 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | 373 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
374 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | 374 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
375 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | 375 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, |
376 }; | 376 }; |
377 | 377 |
378 static const uint8_t mpeg2_dc_scale_table2[128]={ | 378 static const uint8_t mpeg2_dc_scale_table2[128]={ |
379 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 379 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
380 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 380 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
381 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 381 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
382 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 382 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
383 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, | 383 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
384 }; | 384 }; |
385 | 385 |
386 static const uint8_t mpeg2_dc_scale_table3[128]={ | 386 static const uint8_t mpeg2_dc_scale_table3[128]={ |
387 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 387 // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
389 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 389 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
390 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 390 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
391 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | 391 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
393 | 393 |
394 static const uint8_t *mpeg2_dc_scale_table[4]={ | 394 static const uint8_t *mpeg2_dc_scale_table[4]={ |
395 ff_mpeg1_dc_scale_table, | 395 ff_mpeg1_dc_scale_table, |
396 mpeg2_dc_scale_table1, | 396 mpeg2_dc_scale_table1, |
397 mpeg2_dc_scale_table2, | 397 mpeg2_dc_scale_table2, |
398 mpeg2_dc_scale_table3, | 398 mpeg2_dc_scale_table3, |
399 }; | 399 }; |
400 | 400 |
401 static const float mpeg1_aspect[16]={ | 401 static const float mpeg1_aspect[16]={ |
402 0.0000, | 402 0.0000, |
403 1.0000, | 403 1.0000, |
404 0.6735, | 404 0.6735, |
405 0.7031, | 405 0.7031, |
406 | 406 |
407 0.7615, | 407 0.7615, |
408 0.8055, | 408 0.8055, |
409 0.8437, | 409 0.8437, |
410 0.8935, | 410 0.8935, |
411 | 411 |