2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
3 ** Copyright (C) 2003-2005 M. Bakker, Nero 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 ** The "appropriate copyright message" mentioned in section 2c of the GPLv2
23 ** must read: "Code from FAAD2 is copyright (c) Nero AG, www.nero.com"
25 ** Commercial non-GPL licensing of this software is possible.
26 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
28 ** $Id: hcb_6.h,v 1.5 2007/11/01 12:34:11 menno Exp $
31 /* 2-step huffman table HCB_6 */
37 * Used to find offset into 2nd step table and number of extra bits to get
39 static hcb hcb6_1[] = {
62 { /* 10011 */ 11, 1 },
63 { /* 10100 */ 13, 1 },
64 { /* 10101 */ 15, 1 },
65 { /* 10110 */ 17, 1 },
66 { /* 10111 */ 19, 1 },
67 { /* 11000 */ 21, 1 },
68 { /* 11001 */ 23, 1 },
71 { /* 11010 */ 25, 2 },
72 { /* 11011 */ 29, 2 },
73 { /* 11100 */ 33, 2 },
75 /* 7/8 bit codewords */
76 { /* 11101 */ 37, 3 },
78 /* 8/9 bit codewords */
79 { /* 11110 */ 45, 4 },
81 /* 9/10/11 bit codewords */
87 * Gives size of codeword and actual data (x,y,v,w)
89 static hcb_2_pair hcb6_2[] = {
101 /* 6 bit codewords */
119 /* 7 bit codewords */
133 /* 7/8 bit codewords */
134 { 7, 3, 2 }, { 7, 3, 2 },
142 /* 8 bit codewords */
143 { 8, -3, 2 }, { 8, -3, 2 },
144 { 8, 3, 3 }, { 8, 3, 3 },
158 /* 9/10/11 bit codewords */
159 { 9, -4, 2 }, { 9, -4, 2 }, { 9, -4, 2 }, { 9, -4, 2 },
160 { 9, -4, -2 }, { 9, -4, -2 }, { 9, -4, -2 }, { 9, -4, -2 },
161 { 9, 2, 4 }, { 9, 2, 4 }, { 9, 2, 4 }, { 9, 2, 4 },
162 { 9, -2, -4 }, { 9, -2, -4 }, { 9, -2, -4 }, { 9, -2, -4 },
163 { 9, -4, 0 }, { 9, -4, 0 }, { 9, -4, 0 }, { 9, -4, 0 },
164 { 9, 4, 2 }, { 9, 4, 2 }, { 9, 4, 2 }, { 9, 4, 2 },
165 { 9, 4, -2 }, { 9, 4, -2 }, { 9, 4, -2 }, { 9, 4, -2 },
166 { 9, -2, 4 }, { 9, -2, 4 }, { 9, -2, 4 }, { 9, -2, 4 },
167 { 9, 4, 0 }, { 9, 4, 0 }, { 9, 4, 0 }, { 9, 4, 0 },
168 { 9, 2, -4 }, { 9, 2, -4 }, { 9, 2, -4 }, { 9, 2, -4 },
169 { 9, 0, 4 }, { 9, 0, 4 }, { 9, 0, 4 }, { 9, 0, 4 },
170 { 10, -3, -4 }, { 10, -3, -4 },
171 { 10, -3, 4 }, { 10, -3, 4 },
172 { 10, 3, -4 }, { 10, 3, -4 },
173 { 10, 4, -3 }, { 10, 4, -3 },
174 { 10, 3, 4 }, { 10, 3, 4 },
175 { 10, 4, 3 }, { 10, 4, 3 },
176 { 10, -4, 3 }, { 10, -4, 3 },
177 { 10, -4, -3 }, { 10, -4, -3 },