annotate libmpeg2/vlc.h @ 34488:01c19d9b1e83

Print an error when streams behave in a way that the cache cannot handle.
author reimar
date Sun, 15 Jan 2012 12:38:38 +0000
parents da2271c341ee
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 * vlc.h
12932
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
3 * Copyright (C) 2000-2003 Michel Lespinasse <walken@zoy.org>
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
4 * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
7 * See http://libmpeg2.sourceforge.net/ for updates.
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 * mpeg2dec is free software; you can redistribute it and/or modify
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 * it under the terms of the GNU General Public License as published by
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 * (at your option) any later version.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 * mpeg2dec is distributed in the hope that it will be useful,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 * GNU General Public License for more details.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 * along with this program; if not, write to the Free Software
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
27572
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
24 #ifndef LIBMPEG2_VLC_H
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
25 #define LIBMPEG2_VLC_H
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
26
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 #define GETWORD(bit_buf,shift,bit_ptr) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 do { \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 bit_buf |= ((bit_ptr[0] << 8) | bit_ptr[1]) << (shift); \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 bit_ptr += 2; \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 } while (0)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
12932
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
33 static inline void bitstream_init (mpeg2_decoder_t * decoder,
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
34 const uint8_t * start)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 {
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
36 decoder->bitstream_buf =
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
37 (start[0] << 24) | (start[1] << 16) | (start[2] << 8) | start[3];
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
38 decoder->bitstream_ptr = start + 4;
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
39 decoder->bitstream_bits = -16;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41
36
846535ace7a2 libmpeg2-0.2.0 merge
arpi_esp
parents: 1
diff changeset
42 /* make sure that there are at least 16 valid bits in bit_buf */
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 #define NEEDBITS(bit_buf,bits,bit_ptr) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 do { \
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
45 if (unlikely (bits > 0)) { \
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 GETWORD (bit_buf, bits, bit_ptr); \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 bits -= 16; \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 } \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 } while (0)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50
36
846535ace7a2 libmpeg2-0.2.0 merge
arpi_esp
parents: 1
diff changeset
51 /* remove num valid bits from bit_buf */
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 #define DUMPBITS(bit_buf,bits,num) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 do { \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 bit_buf <<= (num); \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 bits += (num); \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 } while (0)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57
36
846535ace7a2 libmpeg2-0.2.0 merge
arpi_esp
parents: 1
diff changeset
58 /* take num bits from the high part of bit_buf and zero extend them */
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 #define UBITS(bit_buf,num) (((uint32_t)(bit_buf)) >> (32 - (num)))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60
36
846535ace7a2 libmpeg2-0.2.0 merge
arpi_esp
parents: 1
diff changeset
61 /* take num bits from the high part of bit_buf and sign extend them */
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 #define SBITS(bit_buf,num) (((int32_t)(bit_buf)) >> (32 - (num)))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 uint8_t modes;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 uint8_t len;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 } MBtab;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 uint8_t delta;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 uint8_t len;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 } MVtab;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 int8_t dmv;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 uint8_t len;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 } DMVtab;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 uint8_t cbp;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 uint8_t len;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 } CBPtab;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 uint8_t size;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 uint8_t len;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 } DCtab;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90 uint8_t run;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 uint8_t level;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92 uint8_t len;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 } DCTtab;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96 uint8_t mba;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 uint8_t len;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98 } MBAtab;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 #define INTRA MACROBLOCK_INTRA
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 #define QUANT MACROBLOCK_QUANT
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
104 static const MBtab MB_I [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105 {INTRA|QUANT, 2}, {INTRA, 1}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 #define MC MACROBLOCK_MOTION_FORWARD
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109 #define CODED MACROBLOCK_PATTERN
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
111 static const MBtab MB_P [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 {INTRA|QUANT, 6}, {CODED|QUANT, 5}, {MC|CODED|QUANT, 5}, {INTRA, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113 {MC, 3}, {MC, 3}, {MC, 3}, {MC, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114 {CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115 {CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
116 {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
117 {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
118 {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
119 {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
120 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
121
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
122 #define FWD MACROBLOCK_MOTION_FORWARD
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123 #define BWD MACROBLOCK_MOTION_BACKWARD
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
124 #define INTER MACROBLOCK_MOTION_FORWARD|MACROBLOCK_MOTION_BACKWARD
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
126 static const MBtab MB_B [] = {
27572
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
127 {0, 6}, {INTRA|QUANT, 6},
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128 {BWD|CODED|QUANT, 6}, {FWD|CODED|QUANT, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129 {INTER|CODED|QUANT, 5}, {INTER|CODED|QUANT, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 {INTRA, 5}, {INTRA, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131 {FWD, 4}, {FWD, 4}, {FWD, 4}, {FWD, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132 {FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134 {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135 {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136 {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137 {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142 {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143 {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
144 {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
145 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
146
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
147 #undef INTRA
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148 #undef QUANT
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149 #undef MC
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150 #undef CODED
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
151 #undef FWD
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152 #undef BWD
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153 #undef INTER
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
154
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
155
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
156 static const MVtab MV_4 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
157 { 3, 6}, { 2, 4}, { 1, 3}, { 1, 3}, { 0, 2}, { 0, 2}, { 0, 2}, { 0, 2}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
158 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
159
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
160 static const MVtab MV_10 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
161 { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
162 { 0,10}, { 0,10}, { 0,10}, { 0,10}, {15,10}, {14,10}, {13,10}, {12,10},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
163 {11,10}, {10,10}, { 9, 9}, { 9, 9}, { 8, 9}, { 8, 9}, { 7, 9}, { 7, 9},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
164 { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
165 { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
166 { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
167 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
168
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
169
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
170 static const DMVtab DMV_2 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
171 { 0, 1}, { 0, 1}, { 1, 2}, {-1, 2}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
172 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
173
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
174
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
175 static const CBPtab CBP_7 [] = {
12932
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
176 {0x11, 7}, {0x12, 7}, {0x14, 7}, {0x18, 7},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
177 {0x21, 7}, {0x22, 7}, {0x24, 7}, {0x28, 7},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
178 {0x3f, 6}, {0x3f, 6}, {0x30, 6}, {0x30, 6},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
179 {0x09, 6}, {0x09, 6}, {0x06, 6}, {0x06, 6},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
180 {0x1f, 5}, {0x1f, 5}, {0x1f, 5}, {0x1f, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
181 {0x10, 5}, {0x10, 5}, {0x10, 5}, {0x10, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
182 {0x2f, 5}, {0x2f, 5}, {0x2f, 5}, {0x2f, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
183 {0x20, 5}, {0x20, 5}, {0x20, 5}, {0x20, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
184 {0x07, 5}, {0x07, 5}, {0x07, 5}, {0x07, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
185 {0x0b, 5}, {0x0b, 5}, {0x0b, 5}, {0x0b, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
186 {0x0d, 5}, {0x0d, 5}, {0x0d, 5}, {0x0d, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
187 {0x0e, 5}, {0x0e, 5}, {0x0e, 5}, {0x0e, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
188 {0x05, 5}, {0x05, 5}, {0x05, 5}, {0x05, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
189 {0x0a, 5}, {0x0a, 5}, {0x0a, 5}, {0x0a, 5},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
190 {0x03, 5}, {0x03, 5}, {0x03, 5}, {0x03, 5},
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
191 {0x0c, 5}, {0x0c, 5}, {0x0c, 5}, {0x0c, 5},
12932
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
192 {0x01, 4}, {0x01, 4}, {0x01, 4}, {0x01, 4},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
193 {0x01, 4}, {0x01, 4}, {0x01, 4}, {0x01, 4},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
194 {0x02, 4}, {0x02, 4}, {0x02, 4}, {0x02, 4},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
195 {0x02, 4}, {0x02, 4}, {0x02, 4}, {0x02, 4},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
196 {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
197 {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4},
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
198 {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
199 {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4},
12932
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
200 {0x0f, 3}, {0x0f, 3}, {0x0f, 3}, {0x0f, 3},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
201 {0x0f, 3}, {0x0f, 3}, {0x0f, 3}, {0x0f, 3},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
202 {0x0f, 3}, {0x0f, 3}, {0x0f, 3}, {0x0f, 3},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
203 {0x0f, 3}, {0x0f, 3}, {0x0f, 3}, {0x0f, 3}
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
204 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
205
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
206 static const CBPtab CBP_9 [] = {
27572
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
207 {0, 9}, {0x00, 9}, {0x39, 9}, {0x36, 9},
12932
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
208 {0x37, 9}, {0x3b, 9}, {0x3d, 9}, {0x3e, 9},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
209 {0x17, 8}, {0x17, 8}, {0x1b, 8}, {0x1b, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
210 {0x1d, 8}, {0x1d, 8}, {0x1e, 8}, {0x1e, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
211 {0x27, 8}, {0x27, 8}, {0x2b, 8}, {0x2b, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
212 {0x2d, 8}, {0x2d, 8}, {0x2e, 8}, {0x2e, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
213 {0x19, 8}, {0x19, 8}, {0x16, 8}, {0x16, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
214 {0x29, 8}, {0x29, 8}, {0x26, 8}, {0x26, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
215 {0x35, 8}, {0x35, 8}, {0x3a, 8}, {0x3a, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
216 {0x33, 8}, {0x33, 8}, {0x3c, 8}, {0x3c, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
217 {0x15, 8}, {0x15, 8}, {0x1a, 8}, {0x1a, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
218 {0x13, 8}, {0x13, 8}, {0x1c, 8}, {0x1c, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
219 {0x25, 8}, {0x25, 8}, {0x2a, 8}, {0x2a, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
220 {0x23, 8}, {0x23, 8}, {0x2c, 8}, {0x2c, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
221 {0x31, 8}, {0x31, 8}, {0x32, 8}, {0x32, 8},
d0a8810e155c Importing libmpeg2 from mpeg2dec-0.4.0b
henry
parents: 9852
diff changeset
222 {0x34, 8}, {0x34, 8}, {0x38, 8}, {0x38, 8}
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
223 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
224
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
225
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
226 static const DCtab DC_lum_5 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
227 {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
228 {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
229 {0, 3}, {0, 3}, {0, 3}, {0, 3}, {3, 3}, {3, 3}, {3, 3}, {3, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
230 {4, 3}, {4, 3}, {4, 3}, {4, 3}, {5, 4}, {5, 4}, {6, 5}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
231 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
232
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
233 static const DCtab DC_chrom_5 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
234 {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
235 {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
236 {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
237 {3, 3}, {3, 3}, {3, 3}, {3, 3}, {4, 4}, {4, 4}, {5, 5}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
238 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
239
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
240 static const DCtab DC_long [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
241 {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, { 6, 5}, { 6, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
242 {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, { 6, 5}, { 6, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
243 {7, 6}, {7, 6}, {7, 6}, {7, 6}, {7, 6}, {7, 6}, { 7, 6}, { 7, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
244 {8, 7}, {8, 7}, {8, 7}, {8, 7}, {9, 8}, {9, 8}, {10, 9}, {11, 9}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
245 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
246
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
247
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
248 static const DCTtab DCT_16 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
249 {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
250 {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
251 {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
252 {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
253 { 2,18, 0}, { 2,17, 0}, { 2,16, 0}, { 2,15, 0},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
254 { 7, 3, 0}, { 17, 2, 0}, { 16, 2, 0}, { 15, 2, 0},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
255 { 14, 2, 0}, { 13, 2, 0}, { 12, 2, 0}, { 32, 1, 0},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
256 { 31, 1, 0}, { 30, 1, 0}, { 29, 1, 0}, { 28, 1, 0}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
257 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
258
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
259 static const DCTtab DCT_15 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
260 { 1,40,15}, { 1,39,15}, { 1,38,15}, { 1,37,15},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
261 { 1,36,15}, { 1,35,15}, { 1,34,15}, { 1,33,15},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
262 { 1,32,15}, { 2,14,15}, { 2,13,15}, { 2,12,15},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
263 { 2,11,15}, { 2,10,15}, { 2, 9,15}, { 2, 8,15},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
264 { 1,31,14}, { 1,31,14}, { 1,30,14}, { 1,30,14},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
265 { 1,29,14}, { 1,29,14}, { 1,28,14}, { 1,28,14},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
266 { 1,27,14}, { 1,27,14}, { 1,26,14}, { 1,26,14},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
267 { 1,25,14}, { 1,25,14}, { 1,24,14}, { 1,24,14},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
268 { 1,23,14}, { 1,23,14}, { 1,22,14}, { 1,22,14},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
269 { 1,21,14}, { 1,21,14}, { 1,20,14}, { 1,20,14},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
270 { 1,19,14}, { 1,19,14}, { 1,18,14}, { 1,18,14},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
271 { 1,17,14}, { 1,17,14}, { 1,16,14}, { 1,16,14}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
272 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
273
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
274 static const DCTtab DCT_13 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
275 { 11, 2,13}, { 10, 2,13}, { 6, 3,13}, { 4, 4,13},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
276 { 3, 5,13}, { 2, 7,13}, { 2, 6,13}, { 1,15,13},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
277 { 1,14,13}, { 1,13,13}, { 1,12,13}, { 27, 1,13},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
278 { 26, 1,13}, { 25, 1,13}, { 24, 1,13}, { 23, 1,13},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
279 { 1,11,12}, { 1,11,12}, { 9, 2,12}, { 9, 2,12},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
280 { 5, 3,12}, { 5, 3,12}, { 1,10,12}, { 1,10,12},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
281 { 3, 4,12}, { 3, 4,12}, { 8, 2,12}, { 8, 2,12},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
282 { 22, 1,12}, { 22, 1,12}, { 21, 1,12}, { 21, 1,12},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
283 { 1, 9,12}, { 1, 9,12}, { 20, 1,12}, { 20, 1,12},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
284 { 19, 1,12}, { 19, 1,12}, { 2, 5,12}, { 2, 5,12},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
285 { 4, 3,12}, { 4, 3,12}, { 1, 8,12}, { 1, 8,12},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
286 { 7, 2,12}, { 7, 2,12}, { 18, 1,12}, { 18, 1,12}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
287 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
288
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
289 static const DCTtab DCT_B14_10 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
290 { 17, 1,10}, { 6, 2,10}, { 1, 7,10}, { 3, 3,10},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
291 { 2, 4,10}, { 16, 1,10}, { 15, 1,10}, { 5, 2,10}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
292 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
293
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
294 static const DCTtab DCT_B14_8 [] = {
27572
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
295 { 65, 0,12}, { 65, 0,12}, { 65, 0,12}, { 65, 0,12},
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
296 { 3, 2, 7}, { 3, 2, 7}, { 10, 1, 7}, { 10, 1, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
297 { 1, 4, 7}, { 1, 4, 7}, { 9, 1, 7}, { 9, 1, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
298 { 8, 1, 6}, { 8, 1, 6}, { 8, 1, 6}, { 8, 1, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
299 { 7, 1, 6}, { 7, 1, 6}, { 7, 1, 6}, { 7, 1, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
300 { 2, 2, 6}, { 2, 2, 6}, { 2, 2, 6}, { 2, 2, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
301 { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
302 { 14, 1, 8}, { 1, 6, 8}, { 13, 1, 8}, { 12, 1, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
303 { 4, 2, 8}, { 2, 3, 8}, { 1, 5, 8}, { 11, 1, 8}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
304 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
305
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
306 static const DCTtab DCT_B14AC_5 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
307 { 1, 3, 5}, { 5, 1, 5}, { 4, 1, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
308 { 1, 2, 4}, { 1, 2, 4}, { 3, 1, 4}, { 3, 1, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
309 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
310 {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
311 {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
312 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
313 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
314 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
315
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
316 static const DCTtab DCT_B14DC_5 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
317 { 1, 3, 5}, { 5, 1, 5}, { 4, 1, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
318 { 1, 2, 4}, { 1, 2, 4}, { 3, 1, 4}, { 3, 1, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
319 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
320 { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
321 { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
322 { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
323 { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
324 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
325
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
326 static const DCTtab DCT_B15_10 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
327 { 6, 2, 9}, { 6, 2, 9}, { 15, 1, 9}, { 15, 1, 9},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
328 { 3, 4,10}, { 17, 1,10}, { 16, 1, 9}, { 16, 1, 9}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
329 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
330
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
331 static const DCTtab DCT_B15_8 [] = {
27572
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
332 { 65, 0,12}, { 65, 0,12}, { 65, 0,12}, { 65, 0,12},
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
333 { 8, 1, 7}, { 8, 1, 7}, { 9, 1, 7}, { 9, 1, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
334 { 7, 1, 7}, { 7, 1, 7}, { 3, 2, 7}, { 3, 2, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
335 { 1, 7, 6}, { 1, 7, 6}, { 1, 7, 6}, { 1, 7, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
336 { 1, 6, 6}, { 1, 6, 6}, { 1, 6, 6}, { 1, 6, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
337 { 5, 1, 6}, { 5, 1, 6}, { 5, 1, 6}, { 5, 1, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
338 { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
339 { 2, 5, 8}, { 12, 1, 8}, { 1,11, 8}, { 1,10, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
340 { 14, 1, 8}, { 13, 1, 8}, { 4, 2, 8}, { 2, 4, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
341 { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
342 { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
343 { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
344 { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
345 { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
346 { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
347 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
348 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
349 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
350 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
351 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
352 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
353 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
354 { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
355 {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
356 {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
357 {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
358 {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
359 { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
360 { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
361 { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
362 { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
363 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
364 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
365 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
366 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
367 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
368 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
369 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
370 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
371 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
372 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
373 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
374 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
375 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
376 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
377 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
378 { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
379 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
380 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
381 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
382 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
383 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
384 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
385 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
386 { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
387 { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
388 { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
389 { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
390 { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
391 { 10, 1, 7}, { 10, 1, 7}, { 2, 3, 7}, { 2, 3, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
392 { 11, 1, 7}, { 11, 1, 7}, { 1, 8, 7}, { 1, 8, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
393 { 1, 9, 7}, { 1, 9, 7}, { 1,12, 8}, { 1,13, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
394 { 3, 3, 8}, { 5, 2, 8}, { 1,14, 8}, { 1,15, 8}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
395 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
396
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
397
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
398 static const MBAtab MBA_5 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
399 {6, 5}, {5, 5}, {4, 4}, {4, 4}, {3, 4}, {3, 4},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
400 {2, 3}, {2, 3}, {2, 3}, {2, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
401 {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
402 {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
403 };
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
404
9852
47984e3f54ce Importing libmpeg2 from mpeg2dec-0.3.1
arpi
parents: 36
diff changeset
405 static const MBAtab MBA_11 [] = {
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
406 {32, 11}, {31, 11}, {30, 11}, {29, 11},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
407 {28, 11}, {27, 11}, {26, 11}, {25, 11},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
408 {24, 11}, {23, 11}, {22, 11}, {21, 11},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
409 {20, 10}, {20, 10}, {19, 10}, {19, 10},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
410 {18, 10}, {18, 10}, {17, 10}, {17, 10},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
411 {16, 10}, {16, 10}, {15, 10}, {15, 10},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
412 {14, 8}, {14, 8}, {14, 8}, {14, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
413 {14, 8}, {14, 8}, {14, 8}, {14, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
414 {13, 8}, {13, 8}, {13, 8}, {13, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
415 {13, 8}, {13, 8}, {13, 8}, {13, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
416 {12, 8}, {12, 8}, {12, 8}, {12, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
417 {12, 8}, {12, 8}, {12, 8}, {12, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
418 {11, 8}, {11, 8}, {11, 8}, {11, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
419 {11, 8}, {11, 8}, {11, 8}, {11, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
420 {10, 8}, {10, 8}, {10, 8}, {10, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
421 {10, 8}, {10, 8}, {10, 8}, {10, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
422 { 9, 8}, { 9, 8}, { 9, 8}, { 9, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
423 { 9, 8}, { 9, 8}, { 9, 8}, { 9, 8},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
424 { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
425 { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
426 { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
427 { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
428 { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
429 { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
430 { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7},
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
431 { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
432 };
27572
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
433
da2271c341ee Update internal libmpeg2 copy to version 0.5.1.
diego
parents: 12932
diff changeset
434 #endif /* LIBMPEG2_VLC_H */