2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
3 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 ** Any non-GPL usage of this software or parts of this software is strictly
22 ** Commercial non-GPL licensing of this software is possible.
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
25 ** $Id: hcb_11.h,v 1.3 2003/09/09 18:12:01 menno Exp $
28 /* 2-step huffman table HCB_11 */
34 * Used to find offset into 2nd step table and number of extra bits to get
36 static hcb hcb11_1
[] = {
53 { /* 01011 */ 10, 1 },
54 { /* 01100 */ 12, 1 },
57 { /* 01101 */ 14, 2 },
60 { /* 01110 */ 18, 2 },
61 { /* 01111 */ 22, 2 },
62 { /* 10000 */ 26, 2 },
65 { /* 10001 */ 30, 3 },
68 { /* 10010 */ 38, 3 },
69 { /* 10011 */ 46, 3 },
70 { /* 10100 */ 54, 3 },
71 { /* 10101 */ 62, 3 },
72 { /* 10110 */ 70, 3 },
73 { /* 10111 */ 78, 3 },
76 { /* 11000 */ 86, 4 },
79 { /* 11001 */ 102, 4 },
80 { /* 11010 */ 118, 4 },
81 { /* 11011 */ 134, 4 },
84 { /* 11100 */ 150, 5 },
87 { /* 11101 */ 182, 5 },
88 { /* 11110 */ 214, 5 },
91 { /* 11111 */ 246, 7 }
96 * Gives size of codeword and actual data (x,y,v,w)
98 static hcb_2_pair hcb11_2
[] = {
120 { 6, 3, 3 }, { 6, 3, 3 },
139 { 7, 3, 5 }, { 7, 3, 5 },
140 { 7, 5, 4 }, { 7, 5, 4 },
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 },
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 },
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 },
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 },