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_10.h,v 1.3 2003/09/09 18:12:01 menno Exp $
28 /* 2-step huffman table HCB_10 */
34 * Used to find offset into 2nd step table and number of extra bits to get
36 static hcb hcb10_1
[] = {
38 { /* 000000 */ 0, 0 },
42 { /* 000100 */ 1, 0 },
46 { /* 001000 */ 2, 0 },
51 { /* 001100 */ 3, 0 },
53 { /* 001110 */ 4, 0 },
55 { /* 010000 */ 5, 0 },
57 { /* 010010 */ 6, 0 },
59 { /* 010100 */ 7, 0 },
61 { /* 010110 */ 8, 0 },
63 { /* 011000 */ 9, 0 },
65 { /* 011010 */ 10, 0 },
68 { /* 011100 */ 11, 0 },
69 { /* 011101 */ 12, 0 },
70 { /* 011110 */ 13, 0 },
71 { /* 011111 */ 14, 0 },
72 { /* 100000 */ 15, 0 },
73 { /* 100001 */ 16, 0 },
74 { /* 100010 */ 17, 0 },
75 { /* 100011 */ 18, 0 },
76 { /* 100100 */ 19, 0 },
77 { /* 100101 */ 20, 0 },
78 { /* 100110 */ 21, 0 },
79 { /* 100111 */ 22, 0 },
80 { /* 101000 */ 23, 0 },
81 { /* 101001 */ 24, 0 },
83 { /* 101010 */ 25, 1 },
84 { /* 101011 */ 27, 1 },
85 { /* 101100 */ 29, 1 },
86 { /* 101101 */ 31, 1 },
87 { /* 101110 */ 33, 1 },
88 { /* 101111 */ 35, 1 },
89 { /* 110000 */ 37, 1 },
90 { /* 110001 */ 39, 1 },
91 /* 7/8 bit codewords */
92 { /* 110010 */ 41, 2 },
94 { /* 110011 */ 45, 2 },
95 { /* 110100 */ 49, 2 },
96 { /* 110101 */ 53, 2 },
97 { /* 110110 */ 57, 2 },
98 { /* 110111 */ 61, 2 },
99 /* 8/9 bit codewords */
100 { /* 111000 */ 65, 3 },
101 /* 9 bit codewords */
102 { /* 111001 */ 73, 3 },
103 { /* 111010 */ 81, 3 },
104 { /* 111011 */ 89, 3 },
105 /* 9/10 bit codewords */
106 { /* 111100 */ 97, 4 },
107 /* 10 bit codewords */
108 { /* 111101 */ 113, 4 },
109 { /* 111110 */ 129, 4 },
110 /* 10/11/12 bit codewords */
111 { /* 111111 */ 145, 6 }
116 * Gives size of codeword and actual data (x,y,v,w)
118 static hcb_2_pair hcb10_2
[] = {
119 /* 4 bit codewords */
124 /* 5 bit codewords */
134 /* 6 bit codewords */
150 /* 7 bit codewords */
168 /* 7/8 bit codewords */
169 { 7, 4, 6 }, { 7, 4, 6 },
173 /* 8 bit codewords */
195 /* 8/9 bit codewords */
196 { 8, 5, 7 }, { 8, 5, 7 },
197 { 8, 8, 5 }, { 8, 8, 5 },
198 { 8, 5, 8 }, { 8, 5, 8 },
202 /* 9 bit codewords */
228 /* 9/10 bit codewords */
229 { 9, 6, 9 }, { 9, 6, 9 },
230 { 9, 8, 0 }, { 9, 8, 0 },
231 { 9, 4, 10 }, { 9, 4, 10 },
232 { 9, 7, 0 }, { 9, 7, 0 },
233 { 9, 11, 2 }, { 9, 11, 2 },
241 /* 10 bit codewords */
275 /* 10/11/12 bit codewords */
276 { 10, 12, 6 }, { 10, 12, 6 }, { 10, 12, 6 }, { 10, 12, 6 },
277 { 10, 2, 12 }, { 10, 2, 12 }, { 10, 2, 12 }, { 10, 2, 12 },
278 { 10, 8, 10 }, { 10, 8, 10 }, { 10, 8, 10 }, { 10, 8, 10 },
279 { 11, 9, 10 }, { 11, 9, 10 },
280 { 11, 1, 12 }, { 11, 1, 12 },
281 { 11, 11, 8 }, { 11, 11, 8 },
282 { 11, 12, 7 }, { 11, 12, 7 },
283 { 11, 7, 11 }, { 11, 7, 11 },
284 { 11, 5, 12 }, { 11, 5, 12 },
285 { 11, 6, 12 }, { 11, 6, 12 },
286 { 11, 10, 9 }, { 11, 10, 9 },
287 { 11, 8, 11 }, { 11, 8, 11 },
288 { 11, 12, 8 }, { 11, 12, 8 },
289 { 11, 0, 10 }, { 11, 0, 10 },
290 { 11, 7, 12 }, { 11, 7, 12 },
291 { 11, 11, 0 }, { 11, 11, 0 },
292 { 11, 10, 10 }, { 11, 10, 10 },
293 { 11, 11, 9 }, { 11, 11, 9 },
294 { 11, 11, 10 }, { 11, 11, 10 },
295 { 11, 0, 11 }, { 11, 0, 11 },
296 { 11, 11, 11 }, { 11, 11, 11 },
297 { 11, 9, 11 }, { 11, 9, 11 },
298 { 11, 10, 11 }, { 11, 10, 11 },
299 { 11, 12, 0 }, { 11, 12, 0 },
300 { 11, 8, 12 }, { 11, 8, 12 },