Mercurial > audlegacy-plugins
comparison src/Input/aac/libfaad2/codebook/hcb_11.h @ 0:13389e613d67 trunk
[svn] - initial import of audacious-plugins tree (lots to do)
author | nenolod |
---|---|
date | Mon, 18 Sep 2006 01:11:49 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13389e613d67 |
---|---|
1 /* | |
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | |
3 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com | |
4 ** | |
5 ** This program is free software; you can redistribute it and/or modify | |
6 ** it under the terms of the GNU General Public License as published by | |
7 ** the Free Software Foundation; either version 2 of the License, or | |
8 ** (at your option) any later version. | |
9 ** | |
10 ** This program is distributed in the hope that it will be useful, | |
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 ** GNU General Public License for more details. | |
14 ** | |
15 ** You should have received a copy of the GNU General Public License | |
16 ** along with this program; if not, write to the Free Software | |
17 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
18 ** | |
19 ** Any non-GPL usage of this software or parts of this software is strictly | |
20 ** forbidden. | |
21 ** | |
22 ** Commercial non-GPL licensing of this software is possible. | |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | |
24 ** | |
25 ** $Id: hcb_11.h,v 1.3 2003/09/09 18:12:01 menno Exp $ | |
26 **/ | |
27 | |
28 /* 2-step huffman table HCB_11 */ | |
29 | |
30 | |
31 /* 1st step: 5 bits | |
32 * 2^5 = 32 entries | |
33 * | |
34 * Used to find offset into 2nd step table and number of extra bits to get | |
35 */ | |
36 static hcb hcb11_1[] = { | |
37 /* 4 bits */ | |
38 { /* 00000 */ 0, 0 }, | |
39 { /* */ 0, 0 }, | |
40 { /* 00010 */ 1, 0 }, | |
41 { /* */ 1, 0 }, | |
42 | |
43 /* 5 bits */ | |
44 { /* 00100 */ 2, 0 }, | |
45 { /* 00101 */ 3, 0 }, | |
46 { /* 00110 */ 4, 0 }, | |
47 { /* 00111 */ 5, 0 }, | |
48 { /* 01000 */ 6, 0 }, | |
49 { /* 01001 */ 7, 0 }, | |
50 | |
51 /* 6 bits */ | |
52 { /* 01010 */ 8, 1 }, | |
53 { /* 01011 */ 10, 1 }, | |
54 { /* 01100 */ 12, 1 }, | |
55 | |
56 /* 6/7 bits */ | |
57 { /* 01101 */ 14, 2 }, | |
58 | |
59 /* 7 bits */ | |
60 { /* 01110 */ 18, 2 }, | |
61 { /* 01111 */ 22, 2 }, | |
62 { /* 10000 */ 26, 2 }, | |
63 | |
64 /* 7/8 bits */ | |
65 { /* 10001 */ 30, 3 }, | |
66 | |
67 /* 8 bits */ | |
68 { /* 10010 */ 38, 3 }, | |
69 { /* 10011 */ 46, 3 }, | |
70 { /* 10100 */ 54, 3 }, | |
71 { /* 10101 */ 62, 3 }, | |
72 { /* 10110 */ 70, 3 }, | |
73 { /* 10111 */ 78, 3 }, | |
74 | |
75 /* 8/9 bits */ | |
76 { /* 11000 */ 86, 4 }, | |
77 | |
78 /* 9 bits */ | |
79 { /* 11001 */ 102, 4 }, | |
80 { /* 11010 */ 118, 4 }, | |
81 { /* 11011 */ 134, 4 }, | |
82 | |
83 /* 9/10 bits */ | |
84 { /* 11100 */ 150, 5 }, | |
85 | |
86 /* 10 bits */ | |
87 { /* 11101 */ 182, 5 }, | |
88 { /* 11110 */ 214, 5 }, | |
89 | |
90 /* 10/11/12 bits */ | |
91 { /* 11111 */ 246, 7 } | |
92 }; | |
93 | |
94 /* 2nd step table | |
95 * | |
96 * Gives size of codeword and actual data (x,y,v,w) | |
97 */ | |
98 static hcb_2_pair hcb11_2[] = { | |
99 /* 4 */ | |
100 { 4, 0, 0 }, | |
101 { 4, 1, 1 }, | |
102 | |
103 /* 5 */ | |
104 { 5, 16, 16 }, | |
105 { 5, 1, 0 }, | |
106 { 5, 0, 1 }, | |
107 { 5, 2, 1 }, | |
108 { 5, 1, 2 }, | |
109 { 5, 2, 2 }, | |
110 | |
111 /* 6 */ | |
112 { 6, 1, 3 }, | |
113 { 6, 3, 1 }, | |
114 { 6, 3, 2 }, | |
115 { 6, 2, 0 }, | |
116 { 6, 2, 3 }, | |
117 { 6, 0, 2 }, | |
118 | |
119 /* 6/7 */ | |
120 { 6, 3, 3 }, { 6, 3, 3 }, | |
121 { 7, 4, 1 }, | |
122 { 7, 1, 4 }, | |
123 | |
124 /* 7 */ | |
125 { 7, 4, 2 }, | |
126 { 7, 2, 4 }, | |
127 { 7, 4, 3 }, | |
128 { 7, 3, 4 }, | |
129 { 7, 3, 0 }, | |
130 { 7, 0, 3 }, | |
131 { 7, 5, 1 }, | |
132 { 7, 5, 2 }, | |
133 { 7, 2, 5 }, | |
134 { 7, 4, 4 }, | |
135 { 7, 1, 5 }, | |
136 { 7, 5, 3 }, | |
137 | |
138 /* 7/8 */ | |
139 { 7, 3, 5 }, { 7, 3, 5 }, | |
140 { 7, 5, 4 }, { 7, 5, 4 }, | |
141 { 8, 4, 5 }, | |
142 { 8, 6, 2 }, | |
143 { 8, 2, 6 }, | |
144 { 8, 6, 1 }, | |
145 | |
146 /* 8 */ | |
147 { 8, 6, 3 }, | |
148 { 8, 3, 6 }, | |
149 { 8, 1, 6 }, | |
150 { 8, 4, 16 }, | |
151 { 8, 3, 16 }, | |
152 { 8, 16, 5 }, | |
153 { 8, 16, 3 }, | |
154 { 8, 16, 4 }, | |
155 { 8, 6, 4 }, | |
156 { 8, 16, 6 }, | |
157 { 8, 4, 0 }, | |
158 { 8, 4, 6 }, | |
159 { 8, 0, 4 }, | |
160 { 8, 2, 16 }, | |
161 { 8, 5, 5 }, | |
162 { 8, 5, 16 }, | |
163 { 8, 16, 7 }, | |
164 { 8, 16, 2 }, | |
165 { 8, 16, 8 }, | |
166 { 8, 2, 7 }, | |
167 { 8, 7, 2 }, | |
168 { 8, 3, 7 }, | |
169 { 8, 6, 5 }, | |
170 { 8, 5, 6 }, | |
171 { 8, 6, 16 }, | |
172 { 8, 16, 10 }, | |
173 { 8, 7, 3 }, | |
174 { 8, 7, 1 }, | |
175 { 8, 16, 9 }, | |
176 { 8, 7, 16 }, | |
177 { 8, 1, 16 }, | |
178 { 8, 1, 7 }, | |
179 { 8, 4, 7 }, | |
180 { 8, 16, 11 }, | |
181 { 8, 7, 4 }, | |
182 { 8, 16, 12 }, | |
183 { 8, 8, 16 }, | |
184 { 8, 16, 1 }, | |
185 { 8, 6, 6 }, | |
186 { 8, 9, 16 }, | |
187 { 8, 2, 8 }, | |
188 { 8, 5, 7 }, | |
189 { 8, 10, 16 }, | |
190 { 8, 16, 13 }, | |
191 { 8, 8, 3 }, | |
192 { 8, 8, 2 }, | |
193 { 8, 3, 8 }, | |
194 { 8, 5, 0 }, | |
195 | |
196 /* 8/9 */ | |
197 { 8, 16, 14 }, { 8, 16, 14 }, | |
198 { 8, 11, 16 }, { 8, 11, 16 }, | |
199 { 8, 7, 5 }, { 8, 7, 5 }, | |
200 { 8, 4, 8 }, { 8, 4, 8 }, | |
201 { 8, 6, 7 }, { 8, 6, 7 }, | |
202 { 8, 7, 6 }, { 8, 7, 6 }, | |
203 { 8, 0, 5 }, { 8, 0, 5 }, | |
204 { 9, 8, 4 }, | |
205 { 9, 16, 15 }, | |
206 | |
207 /* 9 */ | |
208 { 9, 12, 16 }, | |
209 { 9, 1, 8 }, | |
210 { 9, 8, 1 }, | |
211 { 9, 14, 16 }, | |
212 { 9, 5, 8 }, | |
213 { 9, 13, 16 }, | |
214 { 9, 3, 9 }, | |
215 { 9, 8, 5 }, | |
216 { 9, 7, 7 }, | |
217 { 9, 2, 9 }, | |
218 { 9, 8, 6 }, | |
219 { 9, 9, 2 }, | |
220 { 9, 9, 3 }, | |
221 { 9, 15, 16 }, | |
222 { 9, 4, 9 }, | |
223 { 9, 6, 8 }, | |
224 { 9, 6, 0 }, | |
225 { 9, 9, 4 }, | |
226 { 9, 5, 9 }, | |
227 { 9, 8, 7 }, | |
228 { 9, 7, 8 }, | |
229 { 9, 1, 9 }, | |
230 { 9, 10, 3 }, | |
231 { 9, 0, 6 }, | |
232 { 9, 10, 2 }, | |
233 { 9, 9, 1 }, | |
234 { 9, 9, 5 }, | |
235 { 9, 4, 10 }, | |
236 { 9, 2, 10 }, | |
237 { 9, 9, 6 }, | |
238 { 9, 3, 10 }, | |
239 { 9, 6, 9 }, | |
240 { 9, 10, 4 }, | |
241 { 9, 8, 8 }, | |
242 { 9, 10, 5 }, | |
243 { 9, 9, 7 }, | |
244 { 9, 11, 3 }, | |
245 { 9, 1, 10 }, | |
246 { 9, 7, 0 }, | |
247 { 9, 10, 6 }, | |
248 { 9, 7, 9 }, | |
249 { 9, 3, 11 }, | |
250 { 9, 5, 10 }, | |
251 { 9, 10, 1 }, | |
252 { 9, 4, 11 }, | |
253 { 9, 11, 2 }, | |
254 { 9, 13, 2 }, | |
255 { 9, 6, 10 }, | |
256 | |
257 /* 9/10 */ | |
258 { 9, 13, 3 }, { 9, 13, 3 }, | |
259 { 9, 2, 11 }, { 9, 2, 11 }, | |
260 { 9, 16, 0 }, { 9, 16, 0 }, | |
261 { 9, 5, 11 }, { 9, 5, 11 }, | |
262 { 9, 11, 5 }, { 9, 11, 5 }, | |
263 { 10, 11, 4 }, | |
264 { 10, 9, 8 }, | |
265 { 10, 7, 10 }, | |
266 { 10, 8, 9 }, | |
267 { 10, 0, 16 }, | |
268 { 10, 4, 13 }, | |
269 { 10, 0, 7 }, | |
270 { 10, 3, 13 }, | |
271 { 10, 11, 6 }, | |
272 { 10, 13, 1 }, | |
273 { 10, 13, 4 }, | |
274 { 10, 12, 3 }, | |
275 { 10, 2, 13 }, | |
276 { 10, 13, 5 }, | |
277 { 10, 8, 10 }, | |
278 { 10, 6, 11 }, | |
279 { 10, 10, 8 }, | |
280 { 10, 10, 7 }, | |
281 { 10, 14, 2 }, | |
282 { 10, 12, 4 }, | |
283 { 10, 1, 11 }, | |
284 { 10, 4, 12 }, | |
285 | |
286 /* 10 */ | |
287 { 10, 11, 1 }, | |
288 { 10, 3, 12 }, | |
289 { 10, 1, 13 }, | |
290 { 10, 12, 2 }, | |
291 { 10, 7, 11 }, | |
292 { 10, 3, 14 }, | |
293 { 10, 5, 12 }, | |
294 { 10, 5, 13 }, | |
295 { 10, 14, 4 }, | |
296 { 10, 4, 14 }, | |
297 { 10, 11, 7 }, | |
298 { 10, 14, 3 }, | |
299 { 10, 12, 5 }, | |
300 { 10, 13, 6 }, | |
301 { 10, 12, 6 }, | |
302 { 10, 8, 0 }, | |
303 { 10, 11, 8 }, | |
304 { 10, 2, 12 }, | |
305 { 10, 9, 9 }, | |
306 { 10, 14, 5 }, | |
307 { 10, 6, 13 }, | |
308 { 10, 10, 10 }, | |
309 { 10, 15, 2 }, | |
310 { 10, 8, 11 }, | |
311 { 10, 9, 10 }, | |
312 { 10, 14, 6 }, | |
313 { 10, 10, 9 }, | |
314 { 10, 5, 14 }, | |
315 { 10, 11, 9 }, | |
316 { 10, 14, 1 }, | |
317 { 10, 2, 14 }, | |
318 { 10, 6, 12 }, | |
319 { 10, 1, 12 }, | |
320 { 10, 13, 8 }, | |
321 { 10, 0, 8 }, | |
322 { 10, 13, 7 }, | |
323 { 10, 7, 12 }, | |
324 { 10, 12, 7 }, | |
325 { 10, 7, 13 }, | |
326 { 10, 15, 3 }, | |
327 { 10, 12, 1 }, | |
328 { 10, 6, 14 }, | |
329 { 10, 2, 15 }, | |
330 { 10, 15, 5 }, | |
331 { 10, 15, 4 }, | |
332 { 10, 1, 14 }, | |
333 { 10, 9, 11 }, | |
334 { 10, 4, 15 }, | |
335 { 10, 14, 7 }, | |
336 { 10, 8, 13 }, | |
337 { 10, 13, 9 }, | |
338 { 10, 8, 12 }, | |
339 { 10, 5, 15 }, | |
340 { 10, 3, 15 }, | |
341 { 10, 10, 11 }, | |
342 { 10, 11, 10 }, | |
343 { 10, 12, 8 }, | |
344 { 10, 15, 6 }, | |
345 { 10, 15, 7 }, | |
346 { 10, 8, 14 }, | |
347 { 10, 15, 1 }, | |
348 { 10, 7, 14 }, | |
349 { 10, 9, 0 }, | |
350 { 10, 0, 9 }, | |
351 | |
352 /* 10/11/12 */ | |
353 { 10, 9, 13 }, { 10, 9, 13 }, { 10, 9, 13 }, { 10, 9, 13 }, | |
354 { 10, 9, 12 }, { 10, 9, 12 }, { 10, 9, 12 }, { 10, 9, 12 }, | |
355 { 10, 12, 9 }, { 10, 12, 9 }, { 10, 12, 9 }, { 10, 12, 9 }, | |
356 { 10, 14, 8 }, { 10, 14, 8 }, { 10, 14, 8 }, { 10, 14, 8 }, | |
357 { 10, 10, 13 }, { 10, 10, 13 }, { 10, 10, 13 }, { 10, 10, 13 }, | |
358 { 10, 14, 9 }, { 10, 14, 9 }, { 10, 14, 9 }, { 10, 14, 9 }, | |
359 { 10, 12, 10 }, { 10, 12, 10 }, { 10, 12, 10 }, { 10, 12, 10 }, | |
360 { 10, 6, 15 }, { 10, 6, 15 }, { 10, 6, 15 }, { 10, 6, 15 }, | |
361 { 10, 7, 15 }, { 10, 7, 15 }, { 10, 7, 15 }, { 10, 7, 15 }, | |
362 | |
363 { 11, 9, 14 }, { 11, 9, 14 }, | |
364 { 11, 15, 8 }, { 11, 15, 8 }, | |
365 { 11, 11, 11 }, { 11, 11, 11 }, | |
366 { 11, 11, 14 }, { 11, 11, 14 }, | |
367 { 11, 1, 15 }, { 11, 1, 15 }, | |
368 { 11, 10, 12 }, { 11, 10, 12 }, | |
369 { 11, 10, 14 }, { 11, 10, 14 }, | |
370 { 11, 13, 11 }, { 11, 13, 11 }, | |
371 { 11, 13, 10 }, { 11, 13, 10 }, | |
372 { 11, 11, 13 }, { 11, 11, 13 }, | |
373 { 11, 11, 12 }, { 11, 11, 12 }, | |
374 { 11, 8, 15 }, { 11, 8, 15 }, | |
375 { 11, 14, 11 }, { 11, 14, 11 }, | |
376 { 11, 13, 12 }, { 11, 13, 12 }, | |
377 { 11, 12, 13 }, { 11, 12, 13 }, | |
378 { 11, 15, 9 }, { 11, 15, 9 }, | |
379 { 11, 14, 10 }, { 11, 14, 10 }, | |
380 { 11, 10, 0 }, { 11, 10, 0 }, | |
381 { 11, 12, 11 }, { 11, 12, 11 }, | |
382 { 11, 9, 15 }, { 11, 9, 15 }, | |
383 { 11, 0, 10 }, { 11, 0, 10 }, | |
384 { 11, 12, 12 }, { 11, 12, 12 }, | |
385 { 11, 11, 0 }, { 11, 11, 0 }, | |
386 { 11, 12, 14 }, { 11, 12, 14 }, | |
387 { 11, 10, 15 }, { 11, 10, 15 }, | |
388 { 11, 13, 13 }, { 11, 13, 13 }, | |
389 { 11, 0, 13 }, { 11, 0, 13 }, | |
390 { 11, 14, 12 }, { 11, 14, 12 }, | |
391 { 11, 15, 10 }, { 11, 15, 10 }, | |
392 { 11, 15, 11 }, { 11, 15, 11 }, | |
393 { 11, 11, 15 }, { 11, 11, 15 }, | |
394 { 11, 14, 13 }, { 11, 14, 13 }, | |
395 { 11, 13, 0 }, { 11, 13, 0 }, | |
396 { 11, 0, 11 }, { 11, 0, 11 }, | |
397 { 11, 13, 14 }, { 11, 13, 14 }, | |
398 { 11, 15, 12 }, { 11, 15, 12 }, | |
399 { 11, 15, 13 }, { 11, 15, 13 }, | |
400 { 11, 12, 15 }, { 11, 12, 15 }, | |
401 { 11, 14, 0 }, { 11, 14, 0 }, | |
402 { 11, 14, 14 }, { 11, 14, 14 }, | |
403 { 11, 13, 15 }, { 11, 13, 15 }, | |
404 { 11, 12, 0 }, { 11, 12, 0 }, | |
405 { 11, 14, 15 }, { 11, 14, 15 }, | |
406 { 12, 0, 14 }, | |
407 { 12, 0, 12 }, | |
408 { 12, 15, 14 }, | |
409 { 12, 15, 0 }, | |
410 { 12, 0, 15 }, | |
411 { 12, 15, 15 } | |
412 }; |