Parent Directory | Revision Log
Revision 1.9 - (view) (download)
1 : | edgomez | 1.7 | /***************************************************************************** |
2 : | * | ||
3 : | * XVID MPEG-4 VIDEO CODEC | ||
4 : | * - Vector Length Coding tables - | ||
5 : | * | ||
6 : | * Copyright(C) 2002 Michael Militzer | ||
7 : | * | ||
8 : | * | ||
9 : | * This program is an implementation of a part of one or more MPEG-4 | ||
10 : | * Video tools as specified in ISO/IEC 14496-2 standard. Those intending | ||
11 : | * to use this software module in hardware or software products are | ||
12 : | * advised that its use may infringe existing patents or copyrights, and | ||
13 : | * any such use would be at such party's own risk. The original | ||
14 : | * developer of this software module and his/her company, and subsequent | ||
15 : | * editors and their companies, will have no liability for use of this | ||
16 : | * software or modifications or derivatives thereof. | ||
17 : | * | ||
18 : | * This program is free software; you can redistribute it and/or modify | ||
19 : | * it under the terms of the GNU General Public License as published by | ||
20 : | * the Free Software Foundation; either version 2 of the License, or | ||
21 : | * (at your option) any later version. | ||
22 : | * | ||
23 : | * This program is distributed in the hope that it will be useful, | ||
24 : | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
25 : | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
26 : | * GNU General Public License for more details. | ||
27 : | * | ||
28 : | * You should have received a copy of the GNU General Public License | ||
29 : | * along with this program; if not, write to the Free Software | ||
30 : | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
31 : | * | ||
32 : | edgomez | 1.9 | * $Id: vlc_codes.h,v 1.8 2002/09/08 15:37:42 edgomez Exp $ |
33 : | edgomez | 1.7 | * |
34 : | ****************************************************************************/ | ||
35 : | |||
36 : | Isibaar | 1.1 | #ifndef _VLC_CODES_H_ |
37 : | #define _VLC_CODES_H_ | ||
38 : | |||
39 : | #include "../portab.h" | ||
40 : | Isibaar | 1.5 | #include "mbcoding.h" |
41 : | Isibaar | 1.1 | |
42 : | #define VLC_ERROR (-1) | ||
43 : | Isibaar | 1.5 | #define ESCAPE 7167 |
44 : | Isibaar | 1.1 | |
45 : | edgomez | 1.7 | /***************************************************************************** |
46 : | * The Vector Length Coding structure | ||
47 : | ****************************************************************************/ | ||
48 : | |||
49 : | Isibaar | 1.1 | typedef struct |
50 : | { | ||
51 : | uint32_t code; | ||
52 : | int8_t len; | ||
53 : | edgomez | 1.6 | } |
54 : | VLC; | ||
55 : | Isibaar | 1.1 | |
56 : | Isibaar | 1.5 | static VLC *DCT3D[2]; |
57 : | |||
58 : | Isibaar | 1.1 | |
59 : | edgomez | 1.7 | /***************************************************************************** |
60 : | * common tables between encoder/decoder | ||
61 : | ****************************************************************************/ | ||
62 : | Isibaar | 1.1 | |
63 : | /* constants taken from momusys/vm_common/inlcude/max_level.h */ | ||
64 : | static char max_level[4][64] = { | ||
65 : | edgomez | 1.7 | /* intra, last = 0 */ |
66 : | { | ||
67 : | edgomez | 1.6 | 27, 10, 5, 4, 3, 3, 3, 3, |
68 : | 2, 2, 1, 1, 1, 1, 1, 0, | ||
69 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
70 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
71 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
72 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
73 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
74 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
75 : | edgomez | 1.6 | }, |
76 : | |||
77 : | edgomez | 1.7 | /* intra, last = 1 */ |
78 : | { | ||
79 : | edgomez | 1.6 | 8, 3, 2, 2, 2, 2, 2, 1, |
80 : | 1, 1, 1, 1, 1, 1, 1, 1, | ||
81 : | 1, 1, 1, 1, 1, 0, 0, 0, | ||
82 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
83 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
84 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
85 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
86 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
87 : | edgomez | 1.6 | }, |
88 : | |||
89 : | edgomez | 1.7 | /* inter, last = 0 */ |
90 : | { | ||
91 : | edgomez | 1.6 | 12, 6, 4, 3, 3, 3, 3, 2, |
92 : | 2, 2, 2, 1, 1, 1, 1, 1, | ||
93 : | 1, 1, 1, 1, 1, 1, 1, 1, | ||
94 : | 1, 1, 1, 0, 0, 0, 0, 0, | ||
95 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
96 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
97 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
98 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
99 : | edgomez | 1.6 | }, |
100 : | |||
101 : | edgomez | 1.7 | /* inter, last = 1 */ |
102 : | { | ||
103 : | edgomez | 1.6 | 3, 2, 1, 1, 1, 1, 1, 1, |
104 : | 1, 1, 1, 1, 1, 1, 1, 1, | ||
105 : | 1, 1, 1, 1, 1, 1, 1, 1, | ||
106 : | 1, 1, 1, 1, 1, 1, 1, 1, | ||
107 : | 1, 1, 1, 1, 1, 1, 1, 1, | ||
108 : | 1, 0, 0, 0, 0, 0, 0, 0, | ||
109 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
110 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
111 : | edgomez | 1.6 | } |
112 : | Isibaar | 1.1 | }; |
113 : | |||
114 : | static char max_run[4][256] = { | ||
115 : | edgomez | 1.7 | /* intra, last = 0 */ |
116 : | { | ||
117 : | edgomez | 1.6 | 0, 14, 9, 7, 3, 2, 1, 1, |
118 : | 1, 1, 1, 0, 0, 0, 0, 0, | ||
119 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
120 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
121 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
122 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
123 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
124 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
125 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
126 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
127 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
128 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
129 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
130 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
131 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
132 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
133 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
134 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
135 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
136 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
137 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
138 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
139 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
140 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
141 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
142 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
143 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
144 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
145 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
146 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
147 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
148 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
149 : | edgomez | 1.6 | }, |
150 : | |||
151 : | edgomez | 1.7 | /* intra, last = 1 */ |
152 : | { | ||
153 : | edgomez | 1.6 | 0, 20, 6, 1, 0, 0, 0, 0, |
154 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
155 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
156 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
157 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
158 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
159 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
160 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
161 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
162 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
163 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
164 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
165 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
166 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
167 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
168 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
169 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
170 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
171 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
172 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
173 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
174 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
175 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
176 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
177 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
178 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
179 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
180 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
181 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
182 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
183 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
184 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
185 : | edgomez | 1.6 | }, |
186 : | |||
187 : | edgomez | 1.7 | /* inter, last = 0 */ |
188 : | { | ||
189 : | edgomez | 1.6 | 0, 26, 10, 6, 2, 1, 1, 0, |
190 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
191 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
192 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
193 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
194 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
195 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
196 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
197 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
198 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
199 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
200 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
201 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
202 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
203 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
204 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
205 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
206 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
207 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
208 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
209 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
210 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
211 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
212 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
213 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
214 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
215 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
216 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
217 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
218 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
219 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
220 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
221 : | edgomez | 1.6 | }, |
222 : | |||
223 : | edgomez | 1.7 | /* inter, last = 1 */ |
224 : | { | ||
225 : | edgomez | 1.6 | 0, 40, 1, 0, 0, 0, 0, 0, |
226 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
227 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
228 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
229 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
230 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
231 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
232 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
233 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
234 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
235 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
236 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
237 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
238 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
239 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
240 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
241 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
242 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
243 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
244 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
245 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
246 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
247 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
248 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
249 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
250 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
251 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
252 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
253 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
254 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
255 : | 0, 0, 0, 0, 0, 0, 0, 0, | ||
256 : | edgomez | 1.7 | 0, 0, 0, 0, 0, 0, 0, 0 |
257 : | edgomez | 1.6 | } |
258 : | Isibaar | 1.1 | }; |
259 : | |||
260 : | |||
261 : | /****************************************************************** | ||
262 : | edgomez | 1.2 | * encoder tables * |
263 : | ******************************************************************/ | ||
264 : | Isibaar | 1.1 | |
265 : | /* DCT coefficients. Four tables, two for last = 0, two for last = 1. | ||
266 : | the sign bit must be added afterwards. */ | ||
267 : | |||
268 : | /* first part of coeffs for last = 0. Indexed by [run][level-1] */ | ||
269 : | |||
270 : | static VLC coeff_tab0[2][12] = { | ||
271 : | edgomez | 1.7 | /* run = 0 */ |
272 : | edgomez | 1.3 | { |
273 : | edgomez | 1.7 | {0x02, 2}, {0x0f, 4}, {0x15, 6}, {0x17, 7}, |
274 : | {0x1f, 8}, {0x25, 9}, {0x24, 9}, {0x21, 10}, | ||
275 : | {0x20, 10}, {0x07, 11}, {0x06, 11}, {0x20, 11} | ||
276 : | }, | ||
277 : | |||
278 : | /* run = 1 */ | ||
279 : | { | ||
280 : | {0x06, 3}, {0x14, 6}, {0x1e, 8}, {0x0f, 10}, | ||
281 : | {0x21, 11}, {0x50, 12}, {0x00, 0}, {0x00, 0}, | ||
282 : | {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0} | ||
283 : | } | ||
284 : | Isibaar | 1.1 | }; |
285 : | |||
286 : | /* rest of coeffs for last = 0. indexing by [run-2][level-1] */ | ||
287 : | |||
288 : | static VLC coeff_tab1[25][4] = { | ||
289 : | edgomez | 1.7 | /* First row is run=2, then each row is run 2 + index */ |
290 : | {{0x0e, 4}, {0x1d, 8}, {0x0e, 10}, {0x51, 12}}, | ||
291 : | {{0x0d, 5}, {0x23, 9}, {0x0d, 10}, {0x00, 0}}, | ||
292 : | {{0x0c, 5}, {0x22, 9}, {0x52, 12}, {0x00, 0}}, | ||
293 : | {{0x0b, 5}, {0x0c, 10}, {0x53, 12}, {0x00, 0}}, | ||
294 : | {{0x13, 6}, {0x0b, 10}, {0x54, 12}, {0x00, 0}}, | ||
295 : | {{0x12, 6}, {0x0a, 10}, {0x00, 0}, {0x00, 0}}, | ||
296 : | {{0x11, 6}, {0x09, 10}, {0x00, 0}, {0x00, 0}}, | ||
297 : | {{0x10, 6}, {0x08, 10}, {0x00, 0}, {0x00, 0}}, | ||
298 : | {{0x16, 7}, {0x55, 12}, {0x00, 0}, {0x00, 0}}, | ||
299 : | {{0x15, 7}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
300 : | {{0x14, 7}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
301 : | {{0x1c, 8}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
302 : | {{0x1b, 8}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
303 : | {{0x21, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
304 : | {{0x20, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
305 : | {{0x1f, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
306 : | {{0x1e, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
307 : | {{0x1d, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
308 : | {{0x1c, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
309 : | {{0x1b, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
310 : | {{0x1a, 9}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
311 : | {{0x22, 11}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
312 : | {{0x23, 11}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
313 : | {{0x56, 12}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
314 : | {{0x57, 12}, {0x00, 0}, {0x00, 0}, {0x00, 0}} | ||
315 : | |||
316 : | Isibaar | 1.1 | }; |
317 : | |||
318 : | /* first coeffs of last = 1. indexing by [run][level-1] */ | ||
319 : | |||
320 : | static VLC coeff_tab2[2][3] = { | ||
321 : | edgomez | 1.7 | /* run = 0 */ |
322 : | {{0x07, 4}, {0x19, 9}, {0x05, 11}}, | ||
323 : | /* run = 1 */ | ||
324 : | {{0x0f, 6}, {0x04, 11}, {0x00, 0}} | ||
325 : | Isibaar | 1.1 | }; |
326 : | |||
327 : | /* rest of coeffs for last = 1. indexing by [run-2] */ | ||
328 : | |||
329 : | static VLC coeff_tab3[40][1] = { | ||
330 : | edgomez | 1.7 | {{0x0e, 6}}, {{0x0d, 6}}, {{0x0c, 6}}, {{0x13, 7}}, |
331 : | {{0x12, 7}}, {{0x11, 7}}, {{0x10, 7}}, {{0x1a, 8}}, | ||
332 : | {{0x19, 8}}, {{0x18, 8}}, {{0x17, 8}}, {{0x16, 8}}, | ||
333 : | {{0x15, 8}}, {{0x14, 8}}, {{0x13, 8}}, {{0x18, 9}}, | ||
334 : | {{0x17, 9}}, {{0x16, 9}}, {{0x15, 9}}, {{0x14, 9}}, | ||
335 : | {{0x13, 9}}, {{0x12, 9}}, {{0x11, 9}}, {{0x07, 10}}, | ||
336 : | {{0x06, 10}}, {{0x05, 10}}, {{0x04, 10}}, {{0x24, 11}}, | ||
337 : | {{0x25, 11}}, {{0x26, 11}}, {{0x27, 11}}, {{0x58, 12}}, | ||
338 : | {{0x59, 12}}, {{0x5a, 12}}, {{0x5b, 12}}, {{0x5c, 12}}, | ||
339 : | {{0x5d, 12}}, {{0x5e, 12}}, {{0x5f, 12}}, {{0x00, 0}} | ||
340 : | }; | ||
341 : | |||
342 : | /* | ||
343 : | * New tables for Intra luminance coefficients. Same codewords, | ||
344 : | * different meaning | ||
345 : | */ | ||
346 : | Isibaar | 1.1 | |
347 : | /* Coeffs for last = 0, run = 0. Indexed by [level-1] */ | ||
348 : | |||
349 : | static VLC coeff_tab4[27] = { | ||
350 : | edgomez | 1.7 | /* run = 0 */ |
351 : | {0x02, 2}, {0x06, 3}, {0x0f, 4}, | ||
352 : | {0x0d, 5}, {0x0c, 5}, {0x15, 6}, | ||
353 : | edgomez | 1.9 | {0x13, 6}, {0x12, 6}, {0x17, 7}, |
354 : | edgomez | 1.7 | {0x1f, 8}, {0x1e, 8}, {0x1d, 8}, |
355 : | {0x25, 9}, {0x24, 9}, {0x23, 9}, | ||
356 : | edgomez | 1.9 | {0x21, 9}, {0x21, 10}, {0x20, 10}, |
357 : | edgomez | 1.7 | {0x0f, 10}, {0x0e, 10}, {0x07, 11}, |
358 : | {0x06, 11}, {0x20, 11}, {0x21, 11}, | ||
359 : | edgomez | 1.3 | {0x50, 12}, {0x51, 12}, {0x52, 12} |
360 : | Isibaar | 1.1 | }; |
361 : | |||
362 : | /* Coeffs for last = 0, run = 1. Indexed by [level-1] */ | ||
363 : | |||
364 : | static VLC coeff_tab5[10] = { | ||
365 : | edgomez | 1.7 | {0x0e, 4}, {0x14, 6}, {0x16, 7}, {0x1c, 8}, {0x20, 9}, |
366 : | {0x1f, 9}, {0x0d, 10}, {0x22, 11}, {0x53, 12}, {0x55, 12} | ||
367 : | Isibaar | 1.1 | }; |
368 : | |||
369 : | /* Coeffs for last = 0, run = 2 -> 9. Indexed by [run-2][level-1] */ | ||
370 : | |||
371 : | static VLC coeff_tab6[8][5] = { | ||
372 : | edgomez | 1.7 | /* run = 2 */ |
373 : | {{0x0b, 5}, {0x15, 7}, {0x1e, 9}, {0x0c, 10}, {0x56, 12}}, | ||
374 : | |||
375 : | /* run = 3 */ | ||
376 : | {{0x11, 6}, {0x1b, 8}, {0x1d, 9}, {0x0b, 10}, {0x00, 0}}, | ||
377 : | |||
378 : | /* run = 4 */ | ||
379 : | {{0x10, 6}, {0x22, 9}, {0x0a, 10}, {0x00, 0}, {0x00, 0}}, | ||
380 : | |||
381 : | /* run = 5 */ | ||
382 : | {{0x0d, 6}, {0x1c, 9}, {0x08, 10}, {0x00, 0}, {0x00, 0}}, | ||
383 : | |||
384 : | /* run = 6 */ | ||
385 : | {{0x12, 7}, {0x1b, 9}, {0x54, 12}, {0x00, 0}, {0x00, 0}}, | ||
386 : | |||
387 : | /* run = 7 */ | ||
388 : | {{0x14, 7}, {0x1a, 9}, {0x57, 12}, {0x00, 0}, {0x00, 0}}, | ||
389 : | |||
390 : | /* run = 8 */ | ||
391 : | {{0x19, 8}, {0x09, 10}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, | ||
392 : | |||
393 : | /* run = 9 */ | ||
394 : | {{0x18, 8}, {0x23, 11}, {0x00, 0}, {0x00, 0}, {0x00, 0}} | ||
395 : | Isibaar | 1.1 | }; |
396 : | |||
397 : | /* Coeffs for last = 0, run = 10 -> 14. Indexed by [run-10] */ | ||
398 : | |||
399 : | static VLC coeff_tab7[5][1] = { | ||
400 : | edgomez | 1.7 | {{0x17, 8}}, |
401 : | {{0x19, 9}}, | ||
402 : | {{0x18, 9}}, | ||
403 : | {{0x07, 10}}, | ||
404 : | edgomez | 1.3 | {{0x58, 12}} |
405 : | Isibaar | 1.1 | }; |
406 : | |||
407 : | /* Coeffs for last = 1, run = 0. Indexed by [level-1] */ | ||
408 : | |||
409 : | static VLC coeff_tab8[8] = { | ||
410 : | edgomez | 1.7 | {0x07, 4}, {0x0c, 6}, {0x16, 8}, {0x17, 9}, |
411 : | edgomez | 1.3 | {0x06, 10}, {0x05, 11}, {0x04, 11}, {0x59, 12} |
412 : | Isibaar | 1.1 | }; |
413 : | |||
414 : | /* Coeffs for last = 1, run = 1 -> 6. Indexed by [run-1][level-1] */ | ||
415 : | |||
416 : | static VLC coeff_tab9[6][3] = { | ||
417 : | edgomez | 1.7 | /* run = 1 */ |
418 : | {{0x0f, 6}, {0x16, 9}, {0x05, 10}}, | ||
419 : | |||
420 : | /* run = 2 */ | ||
421 : | {{0x0e, 6}, {0x04, 10}, {0x00, 0}}, | ||
422 : | |||
423 : | /* run = 3 */ | ||
424 : | {{0x11, 7}, {0x24, 11}, {0x00, 0}}, | ||
425 : | |||
426 : | /* run = 4 */ | ||
427 : | {{0x10, 7}, {0x25, 11}, {0x00, 0}}, | ||
428 : | |||
429 : | /* run = 5 */ | ||
430 : | {{0x13, 7}, {0x5a, 12}, {0x00, 0}}, | ||
431 : | |||
432 : | /* run = 6 */ | ||
433 : | {{0x15, 8}, {0x5b, 12}, {0x00, 0}} | ||
434 : | Isibaar | 1.1 | }; |
435 : | |||
436 : | /* Coeffs for last = 1, run = 7 -> 20. Indexed by [run-7] */ | ||
437 : | |||
438 : | static VLC coeff_tab10[14][1] = { | ||
439 : | edgomez | 1.7 | {{0x14, 8}}, |
440 : | {{0x13, 8}}, | ||
441 : | {{0x1a, 8}}, | ||
442 : | {{0x15, 9}}, | ||
443 : | {{0x14, 9}}, | ||
444 : | {{0x13, 9}}, | ||
445 : | {{0x12, 9}}, | ||
446 : | {{0x11, 9}}, | ||
447 : | {{0x26, 11}}, | ||
448 : | {{0x27, 11}}, | ||
449 : | {{0x5c, 12}}, | ||
450 : | {{0x5d, 12}}, | ||
451 : | {{0x5e, 12}}, | ||
452 : | {{0x5f, 12}} | ||
453 : | Isibaar | 1.1 | }; |
454 : | |||
455 : | |||
456 : | static VLC *coeff_intra_last0[15] = { | ||
457 : | edgomez | 1.3 | coeff_tab4, |
458 : | coeff_tab5, | ||
459 : | coeff_tab6[0], | ||
460 : | coeff_tab6[1], | ||
461 : | coeff_tab6[2], | ||
462 : | coeff_tab6[3], | ||
463 : | coeff_tab6[4], | ||
464 : | coeff_tab6[5], | ||
465 : | coeff_tab6[6], | ||
466 : | coeff_tab6[7], | ||
467 : | coeff_tab7[0], | ||
468 : | coeff_tab7[1], | ||
469 : | coeff_tab7[2], | ||
470 : | coeff_tab7[3], | ||
471 : | coeff_tab7[4] | ||
472 : | Isibaar | 1.1 | }; |
473 : | |||
474 : | static VLC *coeff_intra_last1[21] = { | ||
475 : | coeff_tab8, | ||
476 : | coeff_tab9[0], | ||
477 : | coeff_tab9[1], | ||
478 : | coeff_tab9[2], | ||
479 : | coeff_tab9[3], | ||
480 : | coeff_tab9[4], | ||
481 : | coeff_tab9[5], | ||
482 : | coeff_tab10[0], | ||
483 : | coeff_tab10[1], | ||
484 : | coeff_tab10[2], | ||
485 : | coeff_tab10[3], | ||
486 : | coeff_tab10[4], | ||
487 : | coeff_tab10[5], | ||
488 : | coeff_tab10[6], | ||
489 : | coeff_tab10[7], | ||
490 : | coeff_tab10[8], | ||
491 : | coeff_tab10[9], | ||
492 : | coeff_tab10[10], | ||
493 : | coeff_tab10[11], | ||
494 : | coeff_tab10[12], | ||
495 : | coeff_tab10[13], | ||
496 : | }; | ||
497 : | |||
498 : | static VLC *coeff_inter_last0[27] = { | ||
499 : | coeff_tab0[0], | ||
500 : | coeff_tab0[1], | ||
501 : | coeff_tab1[0], | ||
502 : | coeff_tab1[1], | ||
503 : | coeff_tab1[2], | ||
504 : | coeff_tab1[3], | ||
505 : | coeff_tab1[4], | ||
506 : | coeff_tab1[5], | ||
507 : | coeff_tab1[6], | ||
508 : | coeff_tab1[7], | ||
509 : | coeff_tab1[8], | ||
510 : | coeff_tab1[9], | ||
511 : | coeff_tab1[10], | ||
512 : | coeff_tab1[11], | ||
513 : | coeff_tab1[12], | ||
514 : | coeff_tab1[13], | ||
515 : | coeff_tab1[14], | ||
516 : | coeff_tab1[15], | ||
517 : | coeff_tab1[16], | ||
518 : | coeff_tab1[17], | ||
519 : | coeff_tab1[18], | ||
520 : | coeff_tab1[19], | ||
521 : | coeff_tab1[20], | ||
522 : | coeff_tab1[21], | ||
523 : | coeff_tab1[22], | ||
524 : | coeff_tab1[23], | ||
525 : | coeff_tab1[24], | ||
526 : | }; | ||
527 : | |||
528 : | static VLC *coeff_inter_last1[42] = { | ||
529 : | coeff_tab2[0], | ||
530 : | coeff_tab2[1], | ||
531 : | coeff_tab3[0], | ||
532 : | coeff_tab3[1], | ||
533 : | coeff_tab3[2], | ||
534 : | coeff_tab3[3], | ||
535 : | coeff_tab3[4], | ||
536 : | coeff_tab3[5], | ||
537 : | coeff_tab3[6], | ||
538 : | coeff_tab3[7], | ||
539 : | coeff_tab3[8], | ||
540 : | coeff_tab3[9], | ||
541 : | coeff_tab3[10], | ||
542 : | coeff_tab3[11], | ||
543 : | coeff_tab3[12], | ||
544 : | coeff_tab3[13], | ||
545 : | coeff_tab3[14], | ||
546 : | coeff_tab3[15], | ||
547 : | coeff_tab3[16], | ||
548 : | coeff_tab3[17], | ||
549 : | coeff_tab3[18], | ||
550 : | coeff_tab3[19], | ||
551 : | coeff_tab3[20], | ||
552 : | coeff_tab3[21], | ||
553 : | coeff_tab3[22], | ||
554 : | coeff_tab3[23], | ||
555 : | coeff_tab3[24], | ||
556 : | coeff_tab3[25], | ||
557 : | coeff_tab3[26], | ||
558 : | coeff_tab3[27], | ||
559 : | coeff_tab3[28], | ||
560 : | coeff_tab3[29], | ||
561 : | coeff_tab3[30], | ||
562 : | coeff_tab3[31], | ||
563 : | coeff_tab3[32], | ||
564 : | coeff_tab3[33], | ||
565 : | coeff_tab3[34], | ||
566 : | coeff_tab3[35], | ||
567 : | coeff_tab3[36], | ||
568 : | coeff_tab3[37], | ||
569 : | coeff_tab3[38], | ||
570 : | coeff_tab3[39], | ||
571 : | }; | ||
572 : | |||
573 : | static VLC **coeff_vlc[4] = { | ||
574 : | coeff_intra_last0, | ||
575 : | coeff_intra_last1, | ||
576 : | coeff_inter_last0, | ||
577 : | coeff_inter_last1, | ||
578 : | }; | ||
579 : | |||
580 : | edgomez | 1.7 | /* |
581 : | * MCBPC Indexing by cbpc in first two bits, mode in last two. | ||
582 : | * CBPC as in table 4/H.263, MB type (mode): 3 = 01, 4 = 10. | ||
583 : | * Example: cbpc = 01 and mode = 4 gives index = 0110 = 6. | ||
584 : | */ | ||
585 : | Isibaar | 1.1 | |
586 : | Isibaar | 1.4 | static VLC mcbpc_intra_tab[15] = { |
587 : | edgomez | 1.6 | {0x01, 9}, {0x01, 1}, {0x01, 4}, {0x00, 0}, |
588 : | {0x00, 0}, {0x01, 3}, {0x01, 6}, {0x00, 0}, | ||
589 : | {0x00, 0}, {0x02, 3}, {0x02, 6}, {0x00, 0}, | ||
590 : | {0x00, 0}, {0x03, 3}, {0x03, 6} | ||
591 : | Isibaar | 1.1 | }; |
592 : | |||
593 : | Isibaar | 1.4 | /* MCBPC inter. |
594 : | Addressing: 5 bit ccmmm (cc = CBPC, mmm = mode (1-4 binary)) */ | ||
595 : | Isibaar | 1.1 | |
596 : | Isibaar | 1.4 | static VLC mcbpc_inter_tab[29] = { |
597 : | edgomez | 1.6 | {1, 1}, {3, 3}, {2, 3}, {3, 5}, {4, 6}, {1, 9}, {0, 0}, {0, 0}, |
598 : | {3, 4}, {7, 7}, {5, 7}, {4, 8}, {4, 9}, {0, 0}, {0, 0}, {0, 0}, | ||
599 : | {2, 4}, {6, 7}, {4, 7}, {3, 8}, {3, 9}, {0, 0}, {0, 0}, {0, 0}, | ||
600 : | {5, 6}, {5, 9}, {5, 8}, {3, 7}, {2, 9} | ||
601 : | Isibaar | 1.1 | }; |
602 : | |||
603 : | static const VLC cbpy_tab[16] = { | ||
604 : | edgomez | 1.6 | {3, 4}, {5, 5}, {4, 5}, {9, 4}, {3, 5}, {7, 4}, {2, 6}, {11, 4}, |
605 : | {2, 5}, {3, 6}, {5, 4}, {10, 4}, {4, 4}, {8, 4}, {6, 4}, {3, 2} | ||
606 : | Isibaar | 1.1 | }; |
607 : | |||
608 : | static const VLC dcy_tab[511] = { | ||
609 : | edgomez | 1.3 | {0x100, 15}, {0x101, 15}, {0x102, 15}, {0x103, 15}, |
610 : | {0x104, 15}, {0x105, 15}, {0x106, 15}, {0x107, 15}, | ||
611 : | {0x108, 15}, {0x109, 15}, {0x10a, 15}, {0x10b, 15}, | ||
612 : | {0x10c, 15}, {0x10d, 15}, {0x10e, 15}, {0x10f, 15}, | ||
613 : | {0x110, 15}, {0x111, 15}, {0x112, 15}, {0x113, 15}, | ||
614 : | {0x114, 15}, {0x115, 15}, {0x116, 15}, {0x117, 15}, | ||
615 : | {0x118, 15}, {0x119, 15}, {0x11a, 15}, {0x11b, 15}, | ||
616 : | {0x11c, 15}, {0x11d, 15}, {0x11e, 15}, {0x11f, 15}, | ||
617 : | {0x120, 15}, {0x121, 15}, {0x122, 15}, {0x123, 15}, | ||
618 : | {0x124, 15}, {0x125, 15}, {0x126, 15}, {0x127, 15}, | ||
619 : | {0x128, 15}, {0x129, 15}, {0x12a, 15}, {0x12b, 15}, | ||
620 : | {0x12c, 15}, {0x12d, 15}, {0x12e, 15}, {0x12f, 15}, | ||
621 : | {0x130, 15}, {0x131, 15}, {0x132, 15}, {0x133, 15}, | ||
622 : | {0x134, 15}, {0x135, 15}, {0x136, 15}, {0x137, 15}, | ||
623 : | {0x138, 15}, {0x139, 15}, {0x13a, 15}, {0x13b, 15}, | ||
624 : | {0x13c, 15}, {0x13d, 15}, {0x13e, 15}, {0x13f, 15}, | ||
625 : | {0x140, 15}, {0x141, 15}, {0x142, 15}, {0x143, 15}, | ||
626 : | {0x144, 15}, {0x145, 15}, {0x146, 15}, {0x147, 15}, | ||
627 : | {0x148, 15}, {0x149, 15}, {0x14a, 15}, {0x14b, 15}, | ||
628 : | {0x14c, 15}, {0x14d, 15}, {0x14e, 15}, {0x14f, 15}, | ||
629 : | {0x150, 15}, {0x151, 15}, {0x152, 15}, {0x153, 15}, | ||
630 : | {0x154, 15}, {0x155, 15}, {0x156, 15}, {0x157, 15}, | ||
631 : | {0x158, 15}, {0x159, 15}, {0x15a, 15}, {0x15b, 15}, | ||
632 : | {0x15c, 15}, {0x15d, 15}, {0x15e, 15}, {0x15f, 15}, | ||
633 : | {0x160, 15}, {0x161, 15}, {0x162, 15}, {0x163, 15}, | ||
634 : | {0x164, 15}, {0x165, 15}, {0x166, 15}, {0x167, 15}, | ||
635 : | {0x168, 15}, {0x169, 15}, {0x16a, 15}, {0x16b, 15}, | ||
636 : | {0x16c, 15}, {0x16d, 15}, {0x16e, 15}, {0x16f, 15}, | ||
637 : | {0x170, 15}, {0x171, 15}, {0x172, 15}, {0x173, 15}, | ||
638 : | {0x174, 15}, {0x175, 15}, {0x176, 15}, {0x177, 15}, | ||
639 : | {0x178, 15}, {0x179, 15}, {0x17a, 15}, {0x17b, 15}, | ||
640 : | {0x17c, 15}, {0x17d, 15}, {0x17e, 15}, {0x17f, 15}, | ||
641 : | {0x80, 13}, {0x81, 13}, {0x82, 13}, {0x83, 13}, | ||
642 : | {0x84, 13}, {0x85, 13}, {0x86, 13}, {0x87, 13}, | ||
643 : | {0x88, 13}, {0x89, 13}, {0x8a, 13}, {0x8b, 13}, | ||
644 : | {0x8c, 13}, {0x8d, 13}, {0x8e, 13}, {0x8f, 13}, | ||
645 : | {0x90, 13}, {0x91, 13}, {0x92, 13}, {0x93, 13}, | ||
646 : | {0x94, 13}, {0x95, 13}, {0x96, 13}, {0x97, 13}, | ||
647 : | {0x98, 13}, {0x99, 13}, {0x9a, 13}, {0x9b, 13}, | ||
648 : | {0x9c, 13}, {0x9d, 13}, {0x9e, 13}, {0x9f, 13}, | ||
649 : | {0xa0, 13}, {0xa1, 13}, {0xa2, 13}, {0xa3, 13}, | ||
650 : | {0xa4, 13}, {0xa5, 13}, {0xa6, 13}, {0xa7, 13}, | ||
651 : | {0xa8, 13}, {0xa9, 13}, {0xaa, 13}, {0xab, 13}, | ||
652 : | {0xac, 13}, {0xad, 13}, {0xae, 13}, {0xaf, 13}, | ||
653 : | {0xb0, 13}, {0xb1, 13}, {0xb2, 13}, {0xb3, 13}, | ||
654 : | {0xb4, 13}, {0xb5, 13}, {0xb6, 13}, {0xb7, 13}, | ||
655 : | {0xb8, 13}, {0xb9, 13}, {0xba, 13}, {0xbb, 13}, | ||
656 : | {0xbc, 13}, {0xbd, 13}, {0xbe, 13}, {0xbf, 13}, | ||
657 : | {0x40, 11}, {0x41, 11}, {0x42, 11}, {0x43, 11}, | ||
658 : | {0x44, 11}, {0x45, 11}, {0x46, 11}, {0x47, 11}, | ||
659 : | {0x48, 11}, {0x49, 11}, {0x4a, 11}, {0x4b, 11}, | ||
660 : | {0x4c, 11}, {0x4d, 11}, {0x4e, 11}, {0x4f, 11}, | ||
661 : | {0x50, 11}, {0x51, 11}, {0x52, 11}, {0x53, 11}, | ||
662 : | {0x54, 11}, {0x55, 11}, {0x56, 11}, {0x57, 11}, | ||
663 : | {0x58, 11}, {0x59, 11}, {0x5a, 11}, {0x5b, 11}, | ||
664 : | {0x5c, 11}, {0x5d, 11}, {0x5e, 11}, {0x5f, 11}, | ||
665 : | {0x20, 9}, {0x21, 9}, {0x22, 9}, {0x23, 9}, | ||
666 : | {0x24, 9}, {0x25, 9}, {0x26, 9}, {0x27, 9}, | ||
667 : | {0x28, 9}, {0x29, 9}, {0x2a, 9}, {0x2b, 9}, | ||
668 : | {0x2c, 9}, {0x2d, 9}, {0x2e, 9}, {0x2f, 9}, | ||
669 : | {0x10, 7}, {0x11, 7}, {0x12, 7}, {0x13, 7}, | ||
670 : | {0x14, 7}, {0x15, 7}, {0x16, 7}, {0x17, 7}, | ||
671 : | {0x10, 6}, {0x11, 6}, {0x12, 6}, {0x13, 6}, | ||
672 : | {0x08, 4}, {0x09, 4}, {0x06, 3}, {0x03, 3}, | ||
673 : | {0x07, 3}, {0x0a, 4}, {0x0b, 4}, {0x14, 6}, | ||
674 : | {0x15, 6}, {0x16, 6}, {0x17, 6}, {0x18, 7}, | ||
675 : | {0x19, 7}, {0x1a, 7}, {0x1b, 7}, {0x1c, 7}, | ||
676 : | {0x1d, 7}, {0x1e, 7}, {0x1f, 7}, {0x30, 9}, | ||
677 : | {0x31, 9}, {0x32, 9}, {0x33, 9}, {0x34, 9}, | ||
678 : | {0x35, 9}, {0x36, 9}, {0x37, 9}, {0x38, 9}, | ||
679 : | {0x39, 9}, {0x3a, 9}, {0x3b, 9}, {0x3c, 9}, | ||
680 : | {0x3d, 9}, {0x3e, 9}, {0x3f, 9}, {0x60, 11}, | ||
681 : | {0x61, 11}, {0x62, 11}, {0x63, 11}, {0x64, 11}, | ||
682 : | {0x65, 11}, {0x66, 11}, {0x67, 11}, {0x68, 11}, | ||
683 : | {0x69, 11}, {0x6a, 11}, {0x6b, 11}, {0x6c, 11}, | ||
684 : | {0x6d, 11}, {0x6e, 11}, {0x6f, 11}, {0x70, 11}, | ||
685 : | {0x71, 11}, {0x72, 11}, {0x73, 11}, {0x74, 11}, | ||
686 : | {0x75, 11}, {0x76, 11}, {0x77, 11}, {0x78, 11}, | ||
687 : | {0x79, 11}, {0x7a, 11}, {0x7b, 11}, {0x7c, 11}, | ||
688 : | {0x7d, 11}, {0x7e, 11}, {0x7f, 11}, {0xc0, 13}, | ||
689 : | {0xc1, 13}, {0xc2, 13}, {0xc3, 13}, {0xc4, 13}, | ||
690 : | {0xc5, 13}, {0xc6, 13}, {0xc7, 13}, {0xc8, 13}, | ||
691 : | {0xc9, 13}, {0xca, 13}, {0xcb, 13}, {0xcc, 13}, | ||
692 : | {0xcd, 13}, {0xce, 13}, {0xcf, 13}, {0xd0, 13}, | ||
693 : | {0xd1, 13}, {0xd2, 13}, {0xd3, 13}, {0xd4, 13}, | ||
694 : | {0xd5, 13}, {0xd6, 13}, {0xd7, 13}, {0xd8, 13}, | ||
695 : | {0xd9, 13}, {0xda, 13}, {0xdb, 13}, {0xdc, 13}, | ||
696 : | {0xdd, 13}, {0xde, 13}, {0xdf, 13}, {0xe0, 13}, | ||
697 : | {0xe1, 13}, {0xe2, 13}, {0xe3, 13}, {0xe4, 13}, | ||
698 : | {0xe5, 13}, {0xe6, 13}, {0xe7, 13}, {0xe8, 13}, | ||
699 : | {0xe9, 13}, {0xea, 13}, {0xeb, 13}, {0xec, 13}, | ||
700 : | {0xed, 13}, {0xee, 13}, {0xef, 13}, {0xf0, 13}, | ||
701 : | {0xf1, 13}, {0xf2, 13}, {0xf3, 13}, {0xf4, 13}, | ||
702 : | {0xf5, 13}, {0xf6, 13}, {0xf7, 13}, {0xf8, 13}, | ||
703 : | {0xf9, 13}, {0xfa, 13}, {0xfb, 13}, {0xfc, 13}, | ||
704 : | {0xfd, 13}, {0xfe, 13}, {0xff, 13}, {0x180, 15}, | ||
705 : | {0x181, 15}, {0x182, 15}, {0x183, 15}, {0x184, 15}, | ||
706 : | {0x185, 15}, {0x186, 15}, {0x187, 15}, {0x188, 15}, | ||
707 : | {0x189, 15}, {0x18a, 15}, {0x18b, 15}, {0x18c, 15}, | ||
708 : | {0x18d, 15}, {0x18e, 15}, {0x18f, 15}, {0x190, 15}, | ||
709 : | {0x191, 15}, {0x192, 15}, {0x193, 15}, {0x194, 15}, | ||
710 : | {0x195, 15}, {0x196, 15}, {0x197, 15}, {0x198, 15}, | ||
711 : | {0x199, 15}, {0x19a, 15}, {0x19b, 15}, {0x19c, 15}, | ||
712 : | {0x19d, 15}, {0x19e, 15}, {0x19f, 15}, {0x1a0, 15}, | ||
713 : | {0x1a1, 15}, {0x1a2, 15}, {0x1a3, 15}, {0x1a4, 15}, | ||
714 : | {0x1a5, 15}, {0x1a6, 15}, {0x1a7, 15}, {0x1a8, 15}, | ||
715 : | {0x1a9, 15}, {0x1aa, 15}, {0x1ab, 15}, {0x1ac, 15}, | ||
716 : | {0x1ad, 15}, {0x1ae, 15}, {0x1af, 15}, {0x1b0, 15}, | ||
717 : | {0x1b1, 15}, {0x1b2, 15}, {0x1b3, 15}, {0x1b4, 15}, | ||
718 : | {0x1b5, 15}, {0x1b6, 15}, {0x1b7, 15}, {0x1b8, 15}, | ||
719 : | {0x1b9, 15}, {0x1ba, 15}, {0x1bb, 15}, {0x1bc, 15}, | ||
720 : | {0x1bd, 15}, {0x1be, 15}, {0x1bf, 15}, {0x1c0, 15}, | ||
721 : | {0x1c1, 15}, {0x1c2, 15}, {0x1c3, 15}, {0x1c4, 15}, | ||
722 : | {0x1c5, 15}, {0x1c6, 15}, {0x1c7, 15}, {0x1c8, 15}, | ||
723 : | {0x1c9, 15}, {0x1ca, 15}, {0x1cb, 15}, {0x1cc, 15}, | ||
724 : | {0x1cd, 15}, {0x1ce, 15}, {0x1cf, 15}, {0x1d0, 15}, | ||
725 : | {0x1d1, 15}, {0x1d2, 15}, {0x1d3, 15}, {0x1d4, 15}, | ||
726 : | {0x1d5, 15}, {0x1d6, 15}, {0x1d7, 15}, {0x1d8, 15}, | ||
727 : | {0x1d9, 15}, {0x1da, 15}, {0x1db, 15}, {0x1dc, 15}, | ||
728 : | {0x1dd, 15}, {0x1de, 15}, {0x1df, 15}, {0x1e0, 15}, | ||
729 : | {0x1e1, 15}, {0x1e2, 15}, {0x1e3, 15}, {0x1e4, 15}, | ||
730 : | {0x1e5, 15}, {0x1e6, 15}, {0x1e7, 15}, {0x1e8, 15}, | ||
731 : | {0x1e9, 15}, {0x1ea, 15}, {0x1eb, 15}, {0x1ec, 15}, | ||
732 : | {0x1ed, 15}, {0x1ee, 15}, {0x1ef, 15}, {0x1f0, 15}, | ||
733 : | {0x1f1, 15}, {0x1f2, 15}, {0x1f3, 15}, {0x1f4, 15}, | ||
734 : | {0x1f5, 15}, {0x1f6, 15}, {0x1f7, 15}, {0x1f8, 15}, | ||
735 : | {0x1f9, 15}, {0x1fa, 15}, {0x1fb, 15}, {0x1fc, 15}, | ||
736 : | {0x1fd, 15}, {0x1fe, 15}, {0x1ff, 15}, | ||
737 : | Isibaar | 1.1 | }; |
738 : | |||
739 : | static const VLC dcc_tab[511] = { | ||
740 : | edgomez | 1.3 | {0x100, 16}, {0x101, 16}, {0x102, 16}, {0x103, 16}, |
741 : | {0x104, 16}, {0x105, 16}, {0x106, 16}, {0x107, 16}, | ||
742 : | {0x108, 16}, {0x109, 16}, {0x10a, 16}, {0x10b, 16}, | ||
743 : | {0x10c, 16}, {0x10d, 16}, {0x10e, 16}, {0x10f, 16}, | ||
744 : | {0x110, 16}, {0x111, 16}, {0x112, 16}, {0x113, 16}, | ||
745 : | {0x114, 16}, {0x115, 16}, {0x116, 16}, {0x117, 16}, | ||
746 : | {0x118, 16}, {0x119, 16}, {0x11a, 16}, {0x11b, 16}, | ||
747 : | {0x11c, 16}, {0x11d, 16}, {0x11e, 16}, {0x11f, 16}, | ||
748 : | {0x120, 16}, {0x121, 16}, {0x122, 16}, {0x123, 16}, | ||
749 : | {0x124, 16}, {0x125, 16}, {0x126, 16}, {0x127, 16}, | ||
750 : | {0x128, 16}, {0x129, 16}, {0x12a, 16}, {0x12b, 16}, | ||
751 : | {0x12c, 16}, {0x12d, 16}, {0x12e, 16}, {0x12f, 16}, | ||
752 : | {0x130, 16}, {0x131, 16}, {0x132, 16}, {0x133, 16}, | ||
753 : | {0x134, 16}, {0x135, 16}, {0x136, 16}, {0x137, 16}, | ||
754 : | {0x138, 16}, {0x139, 16}, {0x13a, 16}, {0x13b, 16}, | ||
755 : | {0x13c, 16}, {0x13d, 16}, {0x13e, 16}, {0x13f, 16}, | ||
756 : | {0x140, 16}, {0x141, 16}, {0x142, 16}, {0x143, 16}, | ||
757 : | {0x144, 16}, {0x145, 16}, {0x146, 16}, {0x147, 16}, | ||
758 : | {0x148, 16}, {0x149, 16}, {0x14a, 16}, {0x14b, 16}, | ||
759 : | {0x14c, 16}, {0x14d, 16}, {0x14e, 16}, {0x14f, 16}, | ||
760 : | {0x150, 16}, {0x151, 16}, {0x152, 16}, {0x153, 16}, | ||
761 : | {0x154, 16}, {0x155, 16}, {0x156, 16}, {0x157, 16}, | ||
762 : | {0x158, 16}, {0x159, 16}, {0x15a, 16}, {0x15b, 16}, | ||
763 : | {0x15c, 16}, {0x15d, 16}, {0x15e, 16}, {0x15f, 16}, | ||
764 : | {0x160, 16}, {0x161, 16}, {0x162, 16}, {0x163, 16}, | ||
765 : | {0x164, 16}, {0x165, 16}, {0x166, 16}, {0x167, 16}, | ||
766 : | {0x168, 16}, {0x169, 16}, {0x16a, 16}, {0x16b, 16}, | ||
767 : | {0x16c, 16}, {0x16d, 16}, {0x16e, 16}, {0x16f, 16}, | ||
768 : | {0x170, 16}, {0x171, 16}, {0x172, 16}, {0x173, 16}, | ||
769 : | {0x174, 16}, {0x175, 16}, {0x176, 16}, {0x177, 16}, | ||
770 : | {0x178, 16}, {0x179, 16}, {0x17a, 16}, {0x17b, 16}, | ||
771 : | {0x17c, 16}, {0x17d, 16}, {0x17e, 16}, {0x17f, 16}, | ||
772 : | {0x80, 14}, {0x81, 14}, {0x82, 14}, {0x83, 14}, | ||
773 : | {0x84, 14}, {0x85, 14}, {0x86, 14}, {0x87, 14}, | ||
774 : | {0x88, 14}, {0x89, 14}, {0x8a, 14}, {0x8b, 14}, | ||
775 : | {0x8c, 14}, {0x8d, 14}, {0x8e, 14}, {0x8f, 14}, | ||
776 : | {0x90, 14}, {0x91, 14}, {0x92, 14}, {0x93, 14}, | ||
777 : | {0x94, 14}, {0x95, 14}, {0x96, 14}, {0x97, 14}, | ||
778 : | {0x98, 14}, {0x99, 14}, {0x9a, 14}, {0x9b, 14}, | ||
779 : | {0x9c, 14}, {0x9d, 14}, {0x9e, 14}, {0x9f, 14}, | ||
780 : | {0xa0, 14}, {0xa1, 14}, {0xa2, 14}, {0xa3, 14}, | ||
781 : | {0xa4, 14}, {0xa5, 14}, {0xa6, 14}, {0xa7, 14}, | ||
782 : | {0xa8, 14}, {0xa9, 14}, {0xaa, 14}, {0xab, 14}, | ||
783 : | {0xac, 14}, {0xad, 14}, {0xae, 14}, {0xaf, 14}, | ||
784 : | {0xb0, 14}, {0xb1, 14}, {0xb2, 14}, {0xb3, 14}, | ||
785 : | {0xb4, 14}, {0xb5, 14}, {0xb6, 14}, {0xb7, 14}, | ||
786 : | {0xb8, 14}, {0xb9, 14}, {0xba, 14}, {0xbb, 14}, | ||
787 : | {0xbc, 14}, {0xbd, 14}, {0xbe, 14}, {0xbf, 14}, | ||
788 : | {0x40, 12}, {0x41, 12}, {0x42, 12}, {0x43, 12}, | ||
789 : | {0x44, 12}, {0x45, 12}, {0x46, 12}, {0x47, 12}, | ||
790 : | {0x48, 12}, {0x49, 12}, {0x4a, 12}, {0x4b, 12}, | ||
791 : | {0x4c, 12}, {0x4d, 12}, {0x4e, 12}, {0x4f, 12}, | ||
792 : | {0x50, 12}, {0x51, 12}, {0x52, 12}, {0x53, 12}, | ||
793 : | {0x54, 12}, {0x55, 12}, {0x56, 12}, {0x57, 12}, | ||
794 : | {0x58, 12}, {0x59, 12}, {0x5a, 12}, {0x5b, 12}, | ||
795 : | {0x5c, 12}, {0x5d, 12}, {0x5e, 12}, {0x5f, 12}, | ||
796 : | {0x20, 10}, {0x21, 10}, {0x22, 10}, {0x23, 10}, | ||
797 : | {0x24, 10}, {0x25, 10}, {0x26, 10}, {0x27, 10}, | ||
798 : | {0x28, 10}, {0x29, 10}, {0x2a, 10}, {0x2b, 10}, | ||
799 : | {0x2c, 10}, {0x2d, 10}, {0x2e, 10}, {0x2f, 10}, | ||
800 : | {0x10, 8}, {0x11, 8}, {0x12, 8}, {0x13, 8}, | ||
801 : | {0x14, 8}, {0x15, 8}, {0x16, 8}, {0x17, 8}, | ||
802 : | {0x08, 6}, {0x09, 6}, {0x0a, 6}, {0x0b, 6}, | ||
803 : | {0x04, 4}, {0x05, 4}, {0x04, 3}, {0x03, 2}, | ||
804 : | {0x05, 3}, {0x06, 4}, {0x07, 4}, {0x0c, 6}, | ||
805 : | {0x0d, 6}, {0x0e, 6}, {0x0f, 6}, {0x18, 8}, | ||
806 : | {0x19, 8}, {0x1a, 8}, {0x1b, 8}, {0x1c, 8}, | ||
807 : | {0x1d, 8}, {0x1e, 8}, {0x1f, 8}, {0x30, 10}, | ||
808 : | {0x31, 10}, {0x32, 10}, {0x33, 10}, {0x34, 10}, | ||
809 : | {0x35, 10}, {0x36, 10}, {0x37, 10}, {0x38, 10}, | ||
810 : | {0x39, 10}, {0x3a, 10}, {0x3b, 10}, {0x3c, 10}, | ||
811 : | {0x3d, 10}, {0x3e, 10}, {0x3f, 10}, {0x60, 12}, | ||
812 : | {0x61, 12}, {0x62, 12}, {0x63, 12}, {0x64, 12}, | ||
813 : | {0x65, 12}, {0x66, 12}, {0x67, 12}, {0x68, 12}, | ||
814 : | {0x69, 12}, {0x6a, 12}, {0x6b, 12}, {0x6c, 12}, | ||
815 : | {0x6d, 12}, {0x6e, 12}, {0x6f, 12}, {0x70, 12}, | ||
816 : | {0x71, 12}, {0x72, 12}, {0x73, 12}, {0x74, 12}, | ||
817 : | {0x75, 12}, {0x76, 12}, {0x77, 12}, {0x78, 12}, | ||
818 : | {0x79, 12}, {0x7a, 12}, {0x7b, 12}, {0x7c, 12}, | ||
819 : | {0x7d, 12}, {0x7e, 12}, {0x7f, 12}, {0xc0, 14}, | ||
820 : | {0xc1, 14}, {0xc2, 14}, {0xc3, 14}, {0xc4, 14}, | ||
821 : | {0xc5, 14}, {0xc6, 14}, {0xc7, 14}, {0xc8, 14}, | ||
822 : | {0xc9, 14}, {0xca, 14}, {0xcb, 14}, {0xcc, 14}, | ||
823 : | {0xcd, 14}, {0xce, 14}, {0xcf, 14}, {0xd0, 14}, | ||
824 : | {0xd1, 14}, {0xd2, 14}, {0xd3, 14}, {0xd4, 14}, | ||
825 : | {0xd5, 14}, {0xd6, 14}, {0xd7, 14}, {0xd8, 14}, | ||
826 : | {0xd9, 14}, {0xda, 14}, {0xdb, 14}, {0xdc, 14}, | ||
827 : | {0xdd, 14}, {0xde, 14}, {0xdf, 14}, {0xe0, 14}, | ||
828 : | {0xe1, 14}, {0xe2, 14}, {0xe3, 14}, {0xe4, 14}, | ||
829 : | {0xe5, 14}, {0xe6, 14}, {0xe7, 14}, {0xe8, 14}, | ||
830 : | {0xe9, 14}, {0xea, 14}, {0xeb, 14}, {0xec, 14}, | ||
831 : | {0xed, 14}, {0xee, 14}, {0xef, 14}, {0xf0, 14}, | ||
832 : | {0xf1, 14}, {0xf2, 14}, {0xf3, 14}, {0xf4, 14}, | ||
833 : | {0xf5, 14}, {0xf6, 14}, {0xf7, 14}, {0xf8, 14}, | ||
834 : | {0xf9, 14}, {0xfa, 14}, {0xfb, 14}, {0xfc, 14}, | ||
835 : | {0xfd, 14}, {0xfe, 14}, {0xff, 14}, {0x180, 16}, | ||
836 : | {0x181, 16}, {0x182, 16}, {0x183, 16}, {0x184, 16}, | ||
837 : | {0x185, 16}, {0x186, 16}, {0x187, 16}, {0x188, 16}, | ||
838 : | {0x189, 16}, {0x18a, 16}, {0x18b, 16}, {0x18c, 16}, | ||
839 : | {0x18d, 16}, {0x18e, 16}, {0x18f, 16}, {0x190, 16}, | ||
840 : | {0x191, 16}, {0x192, 16}, {0x193, 16}, {0x194, 16}, | ||
841 : | {0x195, 16}, {0x196, 16}, {0x197, 16}, {0x198, 16}, | ||
842 : | {0x199, 16}, {0x19a, 16}, {0x19b, 16}, {0x19c, 16}, | ||
843 : | {0x19d, 16}, {0x19e, 16}, {0x19f, 16}, {0x1a0, 16}, | ||
844 : | {0x1a1, 16}, {0x1a2, 16}, {0x1a3, 16}, {0x1a4, 16}, | ||
845 : | {0x1a5, 16}, {0x1a6, 16}, {0x1a7, 16}, {0x1a8, 16}, | ||
846 : | {0x1a9, 16}, {0x1aa, 16}, {0x1ab, 16}, {0x1ac, 16}, | ||
847 : | {0x1ad, 16}, {0x1ae, 16}, {0x1af, 16}, {0x1b0, 16}, | ||
848 : | {0x1b1, 16}, {0x1b2, 16}, {0x1b3, 16}, {0x1b4, 16}, | ||
849 : | {0x1b5, 16}, {0x1b6, 16}, {0x1b7, 16}, {0x1b8, 16}, | ||
850 : | {0x1b9, 16}, {0x1ba, 16}, {0x1bb, 16}, {0x1bc, 16}, | ||
851 : | {0x1bd, 16}, {0x1be, 16}, {0x1bf, 16}, {0x1c0, 16}, | ||
852 : | {0x1c1, 16}, {0x1c2, 16}, {0x1c3, 16}, {0x1c4, 16}, | ||
853 : | {0x1c5, 16}, {0x1c6, 16}, {0x1c7, 16}, {0x1c8, 16}, | ||
854 : | {0x1c9, 16}, {0x1ca, 16}, {0x1cb, 16}, {0x1cc, 16}, | ||
855 : | {0x1cd, 16}, {0x1ce, 16}, {0x1cf, 16}, {0x1d0, 16}, | ||
856 : | {0x1d1, 16}, {0x1d2, 16}, {0x1d3, 16}, {0x1d4, 16}, | ||
857 : | {0x1d5, 16}, {0x1d6, 16}, {0x1d7, 16}, {0x1d8, 16}, | ||
858 : | {0x1d9, 16}, {0x1da, 16}, {0x1db, 16}, {0x1dc, 16}, | ||
859 : | {0x1dd, 16}, {0x1de, 16}, {0x1df, 16}, {0x1e0, 16}, | ||
860 : | {0x1e1, 16}, {0x1e2, 16}, {0x1e3, 16}, {0x1e4, 16}, | ||
861 : | {0x1e5, 16}, {0x1e6, 16}, {0x1e7, 16}, {0x1e8, 16}, | ||
862 : | {0x1e9, 16}, {0x1ea, 16}, {0x1eb, 16}, {0x1ec, 16}, | ||
863 : | {0x1ed, 16}, {0x1ee, 16}, {0x1ef, 16}, {0x1f0, 16}, | ||
864 : | {0x1f1, 16}, {0x1f2, 16}, {0x1f3, 16}, {0x1f4, 16}, | ||
865 : | {0x1f5, 16}, {0x1f6, 16}, {0x1f7, 16}, {0x1f8, 16}, | ||
866 : | {0x1f9, 16}, {0x1fa, 16}, {0x1fb, 16}, {0x1fc, 16}, | ||
867 : | {0x1fd, 16}, {0x1fe, 16}, {0x1ff, 16}, | ||
868 : | Isibaar | 1.1 | }; |
869 : | |||
870 : | |||
871 : | static const VLC mb_motion_table[65] = { | ||
872 : | edgomez | 1.6 | {0x05, 13}, {0x07, 13}, {0x05, 12}, {0x07, 12}, |
873 : | {0x09, 12}, {0x0b, 12}, {0x0d, 12}, {0x0f, 12}, | ||
874 : | {0x09, 11}, {0x0b, 11}, {0x0d, 11}, {0x0f, 11}, | ||
875 : | {0x11, 11}, {0x13, 11}, {0x15, 11}, {0x17, 11}, | ||
876 : | {0x19, 11}, {0x1b, 11}, {0x1d, 11}, {0x1f, 11}, | ||
877 : | {0x21, 11}, {0x23, 11}, {0x13, 10}, {0x15, 10}, | ||
878 : | {0x17, 10}, {0x07, 8}, {0x09, 8}, {0x0b, 8}, | ||
879 : | {0x07, 7}, {0x03, 5}, {0x03, 4}, {0x03, 3}, | ||
880 : | {0x01, 1}, {0x02, 3}, {0x02, 4}, {0x02, 5}, | ||
881 : | {0x06, 7}, {0x0a, 8}, {0x08, 8}, {0x06, 8}, | ||
882 : | {0x16, 10}, {0x14, 10}, {0x12, 10}, {0x22, 11}, | ||
883 : | {0x20, 11}, {0x1e, 11}, {0x1c, 11}, {0x1a, 11}, | ||
884 : | {0x18, 11}, {0x16, 11}, {0x14, 11}, {0x12, 11}, | ||
885 : | {0x10, 11}, {0x0e, 11}, {0x0c, 11}, {0x0a, 11}, | ||
886 : | {0x08, 11}, {0x0e, 12}, {0x0c, 12}, {0x0a, 12}, | ||
887 : | {0x08, 12}, {0x06, 12}, {0x04, 12}, {0x06, 13}, | ||
888 : | edgomez | 1.3 | {0x04, 13} |
889 : | Isibaar | 1.1 | }; |
890 : | |||
891 : | |||
892 : | /****************************************************************** | ||
893 : | edgomez | 1.2 | * decoder tables * |
894 : | ******************************************************************/ | ||
895 : | Isibaar | 1.1 | |
896 : | static const VLC mcbpc_intra_table[64] = { | ||
897 : | edgomez | 1.7 | {-1, 0}, {20, 6}, {36, 6}, {52, 6}, {4, 4}, {4, 4}, {4, 4}, {4, 4}, |
898 : | {19, 3}, {19, 3}, {19, 3}, {19, 3}, {19, 3}, {19, 3}, {19, 3}, {19, 3}, | ||
899 : | {35, 3}, {35, 3}, {35, 3}, {35, 3}, {35, 3}, {35, 3}, {35, 3}, {35, 3}, | ||
900 : | {51, 3}, {51, 3}, {51, 3}, {51, 3}, {51, 3}, {51, 3}, {51, 3}, {51, 3}, | ||
901 : | edgomez | 1.9 | {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, |
902 : | {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, | ||
903 : | edgomez | 1.7 | {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, |
904 : | {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1}, {3, 1} | ||
905 : | Isibaar | 1.1 | }; |
906 : | |||
907 : | |||
908 : | static const VLC mcbpc_inter_table[257] = { | ||
909 : | edgomez | 1.7 | {VLC_ERROR, 0}, {255, 9}, {52, 9}, {36, 9}, {20, 9}, {49, 9}, {35, 8}, {35, 8}, |
910 : | {19, 8}, {19, 8}, {50, 8}, {50, 8}, {51, 7}, {51, 7}, {51, 7}, {51, 7}, | ||
911 : | {34, 7}, {34, 7}, {34, 7}, {34, 7}, {18, 7}, {18, 7}, {18, 7}, {18, 7}, | ||
912 : | {33, 7}, {33, 7}, {33, 7}, {33, 7}, {17, 7}, {17, 7}, {17, 7}, {17, 7}, | ||
913 : | edgomez | 1.9 | {4, 6}, {4, 6}, {4, 6}, {4, 6}, {4, 6}, {4, 6}, {4, 6}, {4, 6}, |
914 : | edgomez | 1.7 | {48, 6}, {48, 6}, {48, 6}, {48, 6}, {48, 6}, {48, 6}, {48, 6}, {48, 6}, |
915 : | edgomez | 1.9 | {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, |
916 : | edgomez | 1.7 | {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, {3, 5}, |
917 : | {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, | ||
918 : | edgomez | 1.6 | {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, |
919 : | {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, | ||
920 : | {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, {32, 4}, | ||
921 : | edgomez | 1.9 | {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, |
922 : | {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, | ||
923 : | edgomez | 1.6 | {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, |
924 : | {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, {16, 4}, | ||
925 : | edgomez | 1.7 | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, |
926 : | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, | ||
927 : | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, | ||
928 : | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, | ||
929 : | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, | ||
930 : | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, | ||
931 : | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, | ||
932 : | {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, | ||
933 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
934 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
935 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
936 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
937 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
938 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
939 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
940 : | {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, | ||
941 : | {0, 1} | ||
942 : | edgomez | 1.6 | }; |
943 : | |||
944 : | static const VLC cbpy_table[64] = { | ||
945 : | edgomez | 1.7 | {-1, 0}, {-1, 0}, {6, 6}, {9, 6}, {8, 5}, {8, 5}, {4, 5}, {4, 5}, |
946 : | {2, 5}, {2, 5}, {1, 5}, {1, 5}, {0, 4}, {0, 4}, {0, 4}, {0, 4}, | ||
947 : | edgomez | 1.6 | {12, 4}, {12, 4}, {12, 4}, {12, 4}, {10, 4}, {10, 4}, {10, 4}, {10, 4}, |
948 : | edgomez | 1.7 | {14, 4}, {14, 4}, {14, 4}, {14, 4}, {5, 4}, {5, 4}, {5, 4}, {5, 4}, |
949 : | {13, 4}, {13, 4}, {13, 4}, {13, 4}, {3, 4}, {3, 4}, {3, 4}, {3, 4}, | ||
950 : | {11, 4}, {11, 4}, {11, 4}, {11, 4}, {7, 4}, {7, 4}, {7, 4}, {7, 4}, | ||
951 : | {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2}, | ||
952 : | {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2}, {15, 2} | ||
953 : | Isibaar | 1.1 | }; |
954 : | |||
955 : | |||
956 : | VLC TMNMVtab0[] = { | ||
957 : | edgomez | 1.7 | {3, 4}, {-3, 4}, {2, 3}, {2, 3}, {-2, 3}, {-2, 3}, {1, 2}, |
958 : | {1, 2}, {1, 2}, {1, 2}, {-1, 2}, {-1, 2}, {-1, 2}, {-1, 2} | ||
959 : | Isibaar | 1.1 | }; |
960 : | |||
961 : | VLC TMNMVtab1[] = { | ||
962 : | edgomez | 1.7 | {12, 10}, {-12, 10}, {11, 10}, {-11, 10}, |
963 : | {10, 9}, {10, 9}, {-10, 9}, {-10, 9}, | ||
964 : | {9, 9}, {9, 9}, {-9, 9}, {-9, 9}, | ||
965 : | {8, 9}, {8, 9}, {-8, 9}, {-8, 9}, | ||
966 : | edgomez | 1.9 | {7, 7}, {7, 7}, {7, 7}, {7, 7}, |
967 : | edgomez | 1.7 | {7, 7}, {7, 7}, {7, 7}, {7, 7}, |
968 : | {-7, 7}, {-7, 7}, {-7, 7}, {-7, 7}, | ||
969 : | {-7, 7}, {-7, 7}, {-7, 7}, {-7, 7}, | ||
970 : | {6, 7}, {6, 7}, {6, 7}, {6, 7}, | ||
971 : | edgomez | 1.9 | {6, 7}, {6, 7}, {6, 7}, {6, 7}, |
972 : | edgomez | 1.7 | {-6, 7}, {-6, 7}, {-6, 7}, {-6, 7}, |
973 : | {-6, 7}, {-6, 7}, {-6, 7}, {-6, 7}, | ||
974 : | {5, 7}, {5, 7}, {5, 7}, {5, 7}, | ||
975 : | {5, 7}, {5, 7}, {5, 7}, {5, 7}, | ||
976 : | {-5, 7}, {-5, 7}, {-5, 7}, {-5, 7}, | ||
977 : | {-5, 7}, {-5, 7}, {-5, 7}, {-5, 7}, | ||
978 : | {4, 6}, {4, 6}, {4, 6}, {4, 6}, | ||
979 : | {4, 6}, {4, 6}, {4, 6}, {4, 6}, | ||
980 : | {4, 6}, {4, 6}, {4, 6}, {4, 6}, | ||
981 : | edgomez | 1.9 | {4, 6}, {4, 6}, {4, 6}, {4, 6}, |
982 : | edgomez | 1.7 | {-4, 6}, {-4, 6}, {-4, 6}, {-4, 6}, |
983 : | {-4, 6}, {-4, 6}, {-4, 6}, {-4, 6}, | ||
984 : | {-4, 6}, {-4, 6}, {-4, 6}, {-4, 6}, | ||
985 : | edgomez | 1.9 | {-4, 6}, {-4, 6}, {-4, 6}, {-4, 6} |
986 : | Isibaar | 1.1 | }; |
987 : | |||
988 : | VLC TMNMVtab2[] = { | ||
989 : | edgomez | 1.7 | {32, 12}, {-32, 12}, {31, 12}, {-31, 12}, |
990 : | {30, 11}, {30, 11}, {-30, 11}, {-30, 11}, | ||
991 : | {29, 11}, {29, 11}, {-29, 11}, {-29, 11}, | ||
992 : | {28, 11}, {28, 11}, {-28, 11}, {-28, 11}, | ||
993 : | {27, 11}, {27, 11}, {-27, 11}, {-27, 11}, | ||
994 : | {26, 11}, {26, 11}, {-26, 11}, {-26, 11}, | ||
995 : | {25, 11}, {25, 11}, {-25, 11}, {-25, 11}, | ||
996 : | {24, 10}, {24, 10}, {24, 10}, {24, 10}, | ||
997 : | {-24, 10}, {-24, 10}, {-24, 10}, {-24, 10}, | ||
998 : | {23, 10}, {23, 10}, {23, 10}, {23, 10}, | ||
999 : | {-23, 10}, {-23, 10}, {-23, 10}, {-23, 10}, | ||
1000 : | {22, 10}, {22, 10}, {22, 10}, {22, 10}, | ||
1001 : | {-22, 10}, {-22, 10}, {-22, 10}, {-22, 10}, | ||
1002 : | {21, 10}, {21, 10}, {21, 10}, {21, 10}, | ||
1003 : | {-21, 10}, {-21, 10}, {-21, 10}, {-21, 10}, | ||
1004 : | {20, 10}, {20, 10}, {20, 10}, {20, 10}, | ||
1005 : | {-20, 10}, {-20, 10}, {-20, 10}, {-20, 10}, | ||
1006 : | {19, 10}, {19, 10}, {19, 10}, {19, 10}, | ||
1007 : | {-19, 10}, {-19, 10}, {-19, 10}, {-19, 10}, | ||
1008 : | {18, 10}, {18, 10}, {18, 10}, {18, 10}, | ||
1009 : | {-18, 10}, {-18, 10}, {-18, 10}, {-18, 10}, | ||
1010 : | {17, 10}, {17, 10}, {17, 10}, {17, 10}, | ||
1011 : | {-17, 10}, {-17, 10}, {-17, 10}, {-17, 10}, | ||
1012 : | {16, 10}, {16, 10}, {16, 10}, {16, 10}, | ||
1013 : | {-16, 10}, {-16, 10}, {-16, 10}, {-16, 10}, | ||
1014 : | {15, 10}, {15, 10}, {15, 10}, {15, 10}, | ||
1015 : | {-15, 10}, {-15, 10}, {-15, 10}, {-15, 10}, | ||
1016 : | {14, 10}, {14, 10}, {14, 10}, {14, 10}, | ||
1017 : | {-14, 10}, {-14, 10}, {-14, 10}, {-14, 10}, | ||
1018 : | {13, 10}, {13, 10}, {13, 10}, {13, 10}, | ||
1019 : | edgomez | 1.6 | {-13, 10}, {-13, 10}, {-13, 10}, {-13, 10} |
1020 : | Isibaar | 1.1 | }; |
1021 : | |||
1022 : | |||
1023 : | VLC DCT3Dtab0[] = { | ||
1024 : | edgomez | 1.6 | {4225, 7}, {4209, 7}, {4193, 7}, {4177, 7}, {193, 7}, {177, 7}, |
1025 : | {161, 7}, {4, 7}, {4161, 6}, {4161, 6}, {4145, 6}, {4145, 6}, | ||
1026 : | {4129, 6}, {4129, 6}, {4113, 6}, {4113, 6}, {145, 6}, {145, 6}, | ||
1027 : | {129, 6}, {129, 6}, {113, 6}, {113, 6}, {97, 6}, {97, 6}, | ||
1028 : | {18, 6}, {18, 6}, {3, 6}, {3, 6}, {81, 5}, {81, 5}, | ||
1029 : | {81, 5}, {81, 5}, {65, 5}, {65, 5}, {65, 5}, {65, 5}, | ||
1030 : | {49, 5}, {49, 5}, {49, 5}, {49, 5}, {4097, 4}, {4097, 4}, | ||
1031 : | {4097, 4}, {4097, 4}, {4097, 4}, {4097, 4}, {4097, 4}, {4097, 4}, | ||
1032 : | {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, | ||
1033 : | {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, | ||
1034 : | {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, | ||
1035 : | {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, | ||
1036 : | {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, | ||
1037 : | {1, 2}, {1, 2}, {17, 3}, {17, 3}, {17, 3}, {17, 3}, | ||
1038 : | {17, 3}, {17, 3}, {17, 3}, {17, 3}, {17, 3}, {17, 3}, | ||
1039 : | {17, 3}, {17, 3}, {17, 3}, {17, 3}, {17, 3}, {17, 3}, | ||
1040 : | {33, 4}, {33, 4}, {33, 4}, {33, 4}, {33, 4}, {33, 4}, | ||
1041 : | {33, 4}, {33, 4}, {2, 4}, {2, 4}, {2, 4}, {2, 4}, | ||
1042 : | {2, 4}, {2, 4}, {2, 4}, {2, 4} | ||
1043 : | Isibaar | 1.1 | }; |
1044 : | |||
1045 : | |||
1046 : | VLC DCT3Dtab1[] = { | ||
1047 : | edgomez | 1.6 | {9, 10}, {8, 10}, {4481, 9}, {4481, 9}, {4465, 9}, {4465, 9}, |
1048 : | {4449, 9}, {4449, 9}, {4433, 9}, {4433, 9}, {4417, 9}, {4417, 9}, | ||
1049 : | {4401, 9}, {4401, 9}, {4385, 9}, {4385, 9}, {4369, 9}, {4369, 9}, | ||
1050 : | {4098, 9}, {4098, 9}, {353, 9}, {353, 9}, {337, 9}, {337, 9}, | ||
1051 : | {321, 9}, {321, 9}, {305, 9}, {305, 9}, {289, 9}, {289, 9}, | ||
1052 : | {273, 9}, {273, 9}, {257, 9}, {257, 9}, {241, 9}, {241, 9}, | ||
1053 : | {66, 9}, {66, 9}, {50, 9}, {50, 9}, {7, 9}, {7, 9}, | ||
1054 : | {6, 9}, {6, 9}, {4353, 8}, {4353, 8}, {4353, 8}, {4353, 8}, | ||
1055 : | {4337, 8}, {4337, 8}, {4337, 8}, {4337, 8}, {4321, 8}, {4321, 8}, | ||
1056 : | {4321, 8}, {4321, 8}, {4305, 8}, {4305, 8}, {4305, 8}, {4305, 8}, | ||
1057 : | {4289, 8}, {4289, 8}, {4289, 8}, {4289, 8}, {4273, 8}, {4273, 8}, | ||
1058 : | {4273, 8}, {4273, 8}, {4257, 8}, {4257, 8}, {4257, 8}, {4257, 8}, | ||
1059 : | {4241, 8}, {4241, 8}, {4241, 8}, {4241, 8}, {225, 8}, {225, 8}, | ||
1060 : | {225, 8}, {225, 8}, {209, 8}, {209, 8}, {209, 8}, {209, 8}, | ||
1061 : | {34, 8}, {34, 8}, {34, 8}, {34, 8}, {19, 8}, {19, 8}, | ||
1062 : | {19, 8}, {19, 8}, {5, 8}, {5, 8}, {5, 8}, {5, 8} | ||
1063 : | Isibaar | 1.1 | }; |
1064 : | |||
1065 : | VLC DCT3Dtab2[] = { | ||
1066 : | edgomez | 1.6 | {4114, 11}, {4114, 11}, {4099, 11}, {4099, 11}, {11, 11}, {11, 11}, |
1067 : | {10, 11}, {10, 11}, {4545, 10}, {4545, 10}, {4545, 10}, {4545, 10}, | ||
1068 : | {4529, 10}, {4529, 10}, {4529, 10}, {4529, 10}, {4513, 10}, {4513, 10}, | ||
1069 : | {4513, 10}, {4513, 10}, {4497, 10}, {4497, 10}, {4497, 10}, {4497, 10}, | ||
1070 : | {146, 10}, {146, 10}, {146, 10}, {146, 10}, {130, 10}, {130, 10}, | ||
1071 : | {130, 10}, {130, 10}, {114, 10}, {114, 10}, {114, 10}, {114, 10}, | ||
1072 : | {98, 10}, {98, 10}, {98, 10}, {98, 10}, {82, 10}, {82, 10}, | ||
1073 : | {82, 10}, {82, 10}, {51, 10}, {51, 10}, {51, 10}, {51, 10}, | ||
1074 : | {35, 10}, {35, 10}, {35, 10}, {35, 10}, {20, 10}, {20, 10}, | ||
1075 : | {20, 10}, {20, 10}, {12, 11}, {12, 11}, {21, 11}, {21, 11}, | ||
1076 : | {369, 11}, {369, 11}, {385, 11}, {385, 11}, {4561, 11}, {4561, 11}, | ||
1077 : | {4577, 11}, {4577, 11}, {4593, 11}, {4593, 11}, {4609, 11}, {4609, 11}, | ||
1078 : | {22, 12}, {36, 12}, {67, 12}, {83, 12}, {99, 12}, {162, 12}, | ||
1079 : | {401, 12}, {417, 12}, {4625, 12}, {4641, 12}, {4657, 12}, {4673, 12}, | ||
1080 : | {4689, 12}, {4705, 12}, {4721, 12}, {4737, 12}, {7167, 7}, | ||
1081 : | {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, | ||
1082 : | {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, | ||
1083 : | {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, | ||
1084 : | {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, | ||
1085 : | {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, {7167, 7}, | ||
1086 : | {7167, 7} | ||
1087 : | edgomez | 1.3 | }; |
1088 : | Isibaar | 1.1 | |
1089 : | |||
1090 : | /* New tables for Intra luminance blocks */ | ||
1091 : | |||
1092 : | VLC DCT3Dtab3[] = { | ||
1093 : | edgomez | 1.3 | {0x10401, 7}, {0x10301, 7}, {0x00601, 7}, {0x10501, 7}, |
1094 : | {0x00701, 7}, {0x00202, 7}, {0x00103, 7}, {0x00009, 7}, | ||
1095 : | edgomez | 1.6 | {0x10002, 6}, {0x10002, 6}, {0x00501, 6}, {0x00501, 6}, |
1096 : | edgomez | 1.3 | {0x10201, 6}, {0x10201, 6}, {0x10101, 6}, {0x10101, 6}, |
1097 : | {0x00401, 6}, {0x00401, 6}, {0x00301, 6}, {0x00301, 6}, | ||
1098 : | edgomez | 1.6 | {0x00008, 6}, {0x00008, 6}, {0x00007, 6}, {0x00007, 6}, |
1099 : | edgomez | 1.3 | {0x00102, 6}, {0x00102, 6}, {0x00006, 6}, {0x00006, 6}, |
1100 : | {0x00201, 5}, {0x00201, 5}, {0x00201, 5}, {0x00201, 5}, | ||
1101 : | edgomez | 1.6 | {0x00005, 5}, {0x00005, 5}, {0x00005, 5}, {0x00005, 5}, |
1102 : | {0x00004, 5}, {0x00004, 5}, {0x00004, 5}, {0x00004, 5}, | ||
1103 : | edgomez | 1.3 | {0x10001, 4}, {0x10001, 4}, {0x10001, 4}, {0x10001, 4}, |
1104 : | {0x10001, 4}, {0x10001, 4}, {0x10001, 4}, {0x10001, 4}, | ||
1105 : | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, | ||
1106 : | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, | ||
1107 : | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, | ||
1108 : | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, | ||
1109 : | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, | ||
1110 : | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, | ||
1111 : | edgomez | 1.6 | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, |
1112 : | {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, {0x00001, 2}, | ||
1113 : | {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, | ||
1114 : | {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, | ||
1115 : | edgomez | 1.3 | {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, |
1116 : | {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, {0x00002, 3}, | ||
1117 : | {0x00101, 4}, {0x00101, 4}, {0x00101, 4}, {0x00101, 4}, | ||
1118 : | {0x00101, 4}, {0x00101, 4}, {0x00101, 4}, {0x00101, 4}, | ||
1119 : | {0x00003, 4}, {0x00003, 4}, {0x00003, 4}, {0x00003, 4}, | ||
1120 : | {0x00003, 4}, {0x00003, 4}, {0x00003, 4}, {0x00003, 4} | ||
1121 : | Isibaar | 1.1 | }; |
1122 : | |||
1123 : | |||
1124 : | VLC DCT3Dtab4[] = { | ||
1125 : | edgomez | 1.6 | {0x00012, 10}, {0x00011, 10}, {0x10e01, 9}, {0x10e01, 9}, |
1126 : | edgomez | 1.3 | {0x10d01, 9}, {0x10d01, 9}, {0x10c01, 9}, {0x10c01, 9}, |
1127 : | edgomez | 1.6 | {0x10b01, 9}, {0x10b01, 9}, {0x10a01, 9}, {0x10a01, 9}, |
1128 : | edgomez | 1.3 | {0x10102, 9}, {0x10102, 9}, {0x10004, 9}, {0x10004, 9}, |
1129 : | {0x00c01, 9}, {0x00c01, 9}, {0x00b01, 9}, {0x00b01, 9}, | ||
1130 : | edgomez | 1.6 | {0x00702, 9}, {0x00702, 9}, {0x00602, 9}, {0x00602, 9}, |
1131 : | edgomez | 1.3 | {0x00502, 9}, {0x00502, 9}, {0x00303, 9}, {0x00303, 9}, |
1132 : | {0x00203, 9}, {0x00203, 9}, {0x00106, 9}, {0x00106, 9}, | ||
1133 : | edgomez | 1.6 | {0x00105, 9}, {0x00105, 9}, {0x00010, 9}, {0x00010, 9}, |
1134 : | edgomez | 1.3 | {0x00402, 9}, {0x00402, 9}, {0x0000f, 9}, {0x0000f, 9}, |
1135 : | {0x0000e, 9}, {0x0000e, 9}, {0x0000d, 9}, {0x0000d, 9}, | ||
1136 : | edgomez | 1.6 | {0x10801, 8}, {0x10801, 8}, {0x10801, 8}, {0x10801, 8}, |
1137 : | edgomez | 1.3 | {0x10701, 8}, {0x10701, 8}, {0x10701, 8}, {0x10701, 8}, |
1138 : | {0x10601, 8}, {0x10601, 8}, {0x10601, 8}, {0x10601, 8}, | ||
1139 : | edgomez | 1.6 | {0x10003, 8}, {0x10003, 8}, {0x10003, 8}, {0x10003, 8}, |
1140 : | edgomez | 1.3 | {0x00a01, 8}, {0x00a01, 8}, {0x00a01, 8}, {0x00a01, 8}, |
1141 : | {0x00901, 8}, {0x00901, 8}, {0x00901, 8}, {0x00901, 8}, | ||
1142 : | edgomez | 1.6 | {0x00801, 8}, {0x00801, 8}, {0x00801, 8}, {0x00801, 8}, |
1143 : | edgomez | 1.3 | {0x10901, 8}, {0x10901, 8}, {0x10901, 8}, {0x10901, 8}, |
1144 : | {0x00302, 8}, {0x00302, 8}, {0x00302, 8}, {0x00302, 8}, | ||
1145 : | edgomez | 1.6 | {0x00104, 8}, {0x00104, 8}, {0x00104, 8}, {0x00104, 8}, |
1146 : | edgomez | 1.3 | {0x0000c, 8}, {0x0000c, 8}, {0x0000c, 8}, {0x0000c, 8}, |
1147 : | {0x0000b, 8}, {0x0000b, 8}, {0x0000b, 8}, {0x0000b, 8}, | ||
1148 : | edgomez | 1.6 | {0x0000a, 8}, {0x0000a, 8}, {0x0000a, 8}, {0x0000a, 8} |
1149 : | Isibaar | 1.1 | }; |
1150 : | |||
1151 : | VLC DCT3Dtab5[] = { | ||
1152 : | edgomez | 1.6 | {0x10007, 11}, {0x10007, 11}, {0x10006, 11}, {0x10006, 11}, |
1153 : | {0x00016, 11}, {0x00016, 11}, {0x00015, 11}, {0x00015, 11}, | ||
1154 : | {0x10202, 10}, {0x10202, 10}, {0x10202, 10}, {0x10202, 10}, | ||
1155 : | {0x10103, 10}, {0x10103, 10}, {0x10103, 10}, {0x10103, 10}, | ||
1156 : | {0x10005, 10}, {0x10005, 10}, {0x10005, 10}, {0x10005, 10}, | ||
1157 : | {0x00d01, 10}, {0x00d01, 10}, {0x00d01, 10}, {0x00d01, 10}, | ||
1158 : | {0x00503, 10}, {0x00503, 10}, {0x00503, 10}, {0x00503, 10}, | ||
1159 : | {0x00802, 10}, {0x00802, 10}, {0x00802, 10}, {0x00802, 10}, | ||
1160 : | {0x00403, 10}, {0x00403, 10}, {0x00403, 10}, {0x00403, 10}, | ||
1161 : | {0x00304, 10}, {0x00304, 10}, {0x00304, 10}, {0x00304, 10}, | ||
1162 : | {0x00204, 10}, {0x00204, 10}, {0x00204, 10}, {0x00204, 10}, | ||
1163 : | {0x00107, 10}, {0x00107, 10}, {0x00107, 10}, {0x00107, 10}, | ||
1164 : | {0x00014, 10}, {0x00014, 10}, {0x00014, 10}, {0x00014, 10}, | ||
1165 : | {0x00013, 10}, {0x00013, 10}, {0x00013, 10}, {0x00013, 10}, | ||
1166 : | {0x00017, 11}, {0x00017, 11}, {0x00018, 11}, {0x00018, 11}, | ||
1167 : | {0x00108, 11}, {0x00108, 11}, {0x00902, 11}, {0x00902, 11}, | ||
1168 : | {0x10302, 11}, {0x10302, 11}, {0x10402, 11}, {0x10402, 11}, | ||
1169 : | {0x10f01, 11}, {0x10f01, 11}, {0x11001, 11}, {0x11001, 11}, | ||
1170 : | {0x00019, 12}, {0x0001a, 12}, {0x0001b, 12}, {0x00109, 12}, | ||
1171 : | {0x00603, 12}, {0x0010a, 12}, {0x00205, 12}, {0x00703, 12}, | ||
1172 : | {0x00e01, 12}, {0x10008, 12}, {0x10502, 12}, {0x10602, 12}, | ||
1173 : | {0x11101, 12}, {0x11201, 12}, {0x11301, 12}, {0x11401, 12}, | ||
1174 : | edgomez | 1.3 | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, |
1175 : | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, | ||
1176 : | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, | ||
1177 : | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, | ||
1178 : | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, | ||
1179 : | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, | ||
1180 : | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, | ||
1181 : | {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7}, {0x01bff, 7} | ||
1182 : | Isibaar | 1.1 | }; |
1183 : | |||
1184 : | VLC ERRtab[] = { | ||
1185 : | {VLC_ERROR, 0}, {VLC_ERROR, 0}, {VLC_ERROR, 0}, | ||
1186 : | {VLC_ERROR, 0}, {VLC_ERROR, 0}, {VLC_ERROR, 0}, | ||
1187 : | {VLC_ERROR, 0}, {VLC_ERROR, 0}, {VLC_ERROR, 0}, | ||
1188 : | {VLC_ERROR, 0}, {VLC_ERROR, 0}, {VLC_ERROR, 0}, | ||
1189 : | edgomez | 1.3 | {VLC_ERROR, 0}, {VLC_ERROR, 0}, {VLC_ERROR, 0} |
1190 : | Isibaar | 1.1 | }; |
1191 : | |||
1192 : | static const VLC dc_lum_tab[] = { | ||
1193 : | edgomez | 1.7 | {0, 0}, {4, 3}, {3, 3}, {0, 3}, |
1194 : | Isibaar | 1.1 | {2, 2}, {2, 2}, {1, 2}, {1, 2}, |
1195 : | }; | ||
1196 : | |||
1197 : | edgomez | 1.7 | #endif /* _VLC_CODES_H */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |