6
6
const int16_t ff_mpeg1_default_intra_matrix[64] = {
7
8, 16, 19, 22, 26, 27, 29, 34,
8
16, 16, 22, 24, 27, 29, 34, 37,
9
19, 22, 26, 27, 29, 34, 34, 38,
10
22, 22, 26, 27, 29, 34, 37, 40,
11
22, 26, 27, 29, 32, 35, 40, 48,
12
26, 27, 29, 32, 35, 40, 48, 58,
13
26, 27, 29, 34, 38, 46, 56, 69,
14
27, 29, 35, 38, 46, 56, 69, 83
7
8, 16, 19, 22, 26, 27, 29, 34,
8
16, 16, 22, 24, 27, 29, 34, 37,
9
19, 22, 26, 27, 29, 34, 34, 38,
10
22, 22, 26, 27, 29, 34, 37, 40,
11
22, 26, 27, 29, 32, 35, 40, 48,
12
26, 27, 29, 32, 35, 40, 48, 58,
13
26, 27, 29, 34, 38, 46, 56, 69,
14
27, 29, 35, 38, 46, 56, 69, 83
17
17
const int16_t ff_mpeg1_default_non_intra_matrix[64] = {
87
87
{0x20, 8}, {0x16,13}, {0x15,13}, {0x1f,15},
88
88
{0x1e,15}, {0x1d,15}, {0x1c,15}, {0x1b,15},
89
89
{0x1a,15}, {0x19,15}, {0x13,16}, {0x12,16},
90
{0x11,16}, {0x10,16}, {0x05, 5}, {0x07, 7},
91
{0xfc, 8}, {0x0c,10}, {0x14,13}, {0x07, 5},
92
{0x26, 8}, {0x1c,12}, {0x13,13}, {0x06, 6},
93
{0xfd, 8}, {0x12,12}, {0x07, 6}, {0x04, 9},
94
{0x12,13}, {0x06, 7}, {0x1e,12}, {0x14,16},
95
{0x04, 7}, {0x15,12}, {0x05, 7}, {0x11,12},
96
{0x78, 7}, {0x11,13}, {0x7a, 7}, {0x10,13},
97
{0x21, 8}, {0x1a,16}, {0x25, 8}, {0x19,16},
98
{0x24, 8}, {0x18,16}, {0x05, 9}, {0x17,16},
99
{0x07, 9}, {0x16,16}, {0x0d,10}, {0x15,16},
100
{0x1f,12}, {0x1a,12}, {0x19,12}, {0x17,12},
101
{0x16,12}, {0x1f,13}, {0x1e,13}, {0x1d,13},
102
{0x1c,13}, {0x1b,13}, {0x1f,16}, {0x1e,16},
103
{0x1d,16}, {0x1c,16}, {0x1b,16},
90
{0x11,16}, {0x10,16}, {0x05, 5}, {0x07, 7},
91
{0xfc, 8}, {0x0c,10}, {0x14,13}, {0x07, 5},
92
{0x26, 8}, {0x1c,12}, {0x13,13}, {0x06, 6},
93
{0xfd, 8}, {0x12,12}, {0x07, 6}, {0x04, 9},
94
{0x12,13}, {0x06, 7}, {0x1e,12}, {0x14,16},
95
{0x04, 7}, {0x15,12}, {0x05, 7}, {0x11,12},
96
{0x78, 7}, {0x11,13}, {0x7a, 7}, {0x10,13},
97
{0x21, 8}, {0x1a,16}, {0x25, 8}, {0x19,16},
98
{0x24, 8}, {0x18,16}, {0x05, 9}, {0x17,16},
99
{0x07, 9}, {0x16,16}, {0x0d,10}, {0x15,16},
100
{0x1f,12}, {0x1a,12}, {0x19,12}, {0x17,12},
101
{0x16,12}, {0x1f,13}, {0x1e,13}, {0x1d,13},
102
{0x1c,13}, {0x1b,13}, {0x1f,16}, {0x1e,16},
103
{0x1d,16}, {0x1c,16}, {0x1b,16},
104
104
{0x01,6}, /* escape */
105
105
{0x06,4}, /* EOB */
375
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,
378
static const uint8_t mpeg2_dc_scale_table2[128]={
378
static const uint8_t mpeg2_dc_scale_table2[128]={
379
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
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
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,
383
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,
386
static const uint8_t mpeg2_dc_scale_table3[128]={
386
static const uint8_t mpeg2_dc_scale_table3[128]={
387
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
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
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,