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_1.h,v 1.3 2003/09/09 18:12:01 menno Exp $
28 /* 2-step huffman table HCB_1 */
34 * Used to find offset into 2nd step table and number of extra bits to get
36 static hcb hcb1_1
[] = {
64 { /* 11001 */ 13, 2 },
65 { /* 11010 */ 17, 2 },
66 { /* 11011 */ 21, 2 },
67 { /* 11100 */ 25, 2 },
68 { /* 11101 */ 29, 2 },
71 { /* 11110 */ 33, 4 },
73 /* 9/10/11 bit codewords */
79 * Gives size of codeword and actual data (x,y,v,w)
81 static hcb_2_quad hcb1_2
[] = {
96 /* first 5 bits: 11000 */
101 /* first 5 bits: 11001 */
106 /* first 5 bits: 11010 */
111 /* first 5 bits: 11011 */
116 /* first 5 bits: 11100 */
121 /* first 5 bits: 11101 */
128 /* first 5 bits: 11110 */
146 /* 9/10/11 bit codewords */
147 /* first 5 bits: 11111 */
148 /* 9 bit: reading 11 bits -> 2 too much so 4 entries for each codeword */
149 { 9, -1, 1, 0, -1 }, { 9, -1, 1, 0, -1 }, { 9, -1, 1, 0, -1 }, { 9, -1, 1, 0, -1 },
150 { 9, -1, -1, -1, 0 }, { 9, -1, -1, -1, 0 }, { 9, -1, -1, -1, 0 }, { 9, -1, -1, -1, 0 },
151 { 9, 0, -1, -1, -1 }, { 9, 0, -1, -1, -1 }, { 9, 0, -1, -1, -1 }, { 9, 0, -1, -1, -1 },
152 { 9, 0, 1, 1, 1 }, { 9, 0, 1, 1, 1 }, { 9, 0, 1, 1, 1 }, { 9, 0, 1, 1, 1 },
153 { 9, 1, 0, 1, -1 }, { 9, 1, 0, 1, -1 }, { 9, 1, 0, 1, -1 }, { 9, 1, 0, 1, -1 },
154 { 9, 1, 1, 0, 1 }, { 9, 1, 1, 0, 1 }, { 9, 1, 1, 0, 1 }, { 9, 1, 1, 0, 1 },
155 { 9, -1, 1, 0, 1 }, { 9, -1, 1, 0, 1 }, { 9, -1, 1, 0, 1 }, { 9, -1, 1, 0, 1 },
156 { 9, 1, 1, 1, 0 }, { 9, 1, 1, 1, 0 }, { 9, 1, 1, 1, 0 }, { 9, 1, 1, 1, 0 },
157 /* 10 bit: reading 11 bits -> 1 too much so 2 entries for each codeword */
158 { 10, -1, -1, 0, 1 }, { 10, -1, -1, 0, 1 },
159 { 10, -1, 0, -1, -1 }, { 10, -1, 0, -1, -1 },
160 { 10, 1, 1, 0, -1 }, { 10, 1, 1, 0, -1 },
161 { 10, 1, 0, -1, -1 }, { 10, 1, 0, -1, -1 },
162 { 10, -1, 0, -1, 1 }, { 10, -1, 0, -1, 1 },
163 { 10, -1, -1, 0, -1 }, { 10, -1, -1, 0, -1 },
164 { 10, -1, 0, 1, 1 }, { 10, -1, 0, 1, 1 },
165 { 10, 1, 0, 1, 1 }, { 10, 1, 0, 1, 1 },
167 { 11, 1, -1, 1, -1 },
168 { 11, -1, 1, -1, 1 },
169 { 11, -1, 1, 1, -1 },
170 { 11, 1, -1, -1, 1 },
172 { 11, -1, -1, 1, 1 },
173 { 11, 1, 1, -1, -1 },
174 { 11, -1, -1, 1, -1 },
175 { 11, -1, -1, -1, -1 },
179 { 11, -1, 1, -1, -1 },
180 { 11, -1, -1, -1, 1 },
181 { 11, 1, -1, -1, -1 },