Mercurial > mplayer.hg
annotate libfaad2/codebook/hcb_10.h @ 20567:a45bc176a16d
paragraph about groff and UTF-8
author | diego |
---|---|
date | Wed, 01 Nov 2006 17:31:11 +0000 |
parents | 1d5a49e6d9db |
children | e83eef58b30a |
rev | line source |
---|---|
10725 | 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 ** | |
14726
1d5a49e6d9db
Remove modification notice from files that have not been locally modified.
diego
parents:
12625
diff
changeset
|
25 ** $Id: hcb_10.h,v 1.3 2003/09/09 18:12:01 menno Exp $ |
10725 | 26 **/ |
27 | |
28 /* 2-step huffman table HCB_10 */ | |
29 | |
30 | |
31 /* 1st step: 6 bits | |
32 * 2^6 = 64 entries | |
33 * | |
34 * Used to find offset into 2nd step table and number of extra bits to get | |
35 */ | |
36 static hcb hcb10_1[] = { | |
37 /* 4 bit codewords */ | |
38 { /* 000000 */ 0, 0 }, | |
39 { /* */ 0, 0 }, | |
40 { /* */ 0, 0 }, | |
41 { /* */ 0, 0 }, | |
42 { /* 000100 */ 1, 0 }, | |
43 { /* */ 1, 0 }, | |
44 { /* */ 1, 0 }, | |
45 { /* */ 1, 0 }, | |
46 { /* 001000 */ 2, 0 }, | |
47 { /* */ 2, 0 }, | |
48 { /* */ 2, 0 }, | |
49 { /* */ 2, 0 }, | |
50 /* 5 bit codewords */ | |
51 { /* 001100 */ 3, 0 }, | |
52 { /* */ 3, 0 }, | |
53 { /* 001110 */ 4, 0 }, | |
54 { /* */ 4, 0 }, | |
55 { /* 010000 */ 5, 0 }, | |
56 { /* */ 5, 0 }, | |
57 { /* 010010 */ 6, 0 }, | |
58 { /* */ 6, 0 }, | |
59 { /* 010100 */ 7, 0 }, | |
60 { /* */ 7, 0 }, | |
61 { /* 010110 */ 8, 0 }, | |
62 { /* */ 8, 0 }, | |
63 { /* 011000 */ 9, 0 }, | |
64 { /* */ 9, 0 }, | |
65 { /* 011010 */ 10, 0 }, | |
66 { /* */ 10, 0 }, | |
67 /* 6 bit codewords */ | |
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 }, | |
82 /* 7 bit codewords */ | |
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 }, | |
93 /* 8 bit codewords */ | |
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 } | |
112 }; | |
113 | |
114 /* 2nd step table | |
115 * | |
116 * Gives size of codeword and actual data (x,y,v,w) | |
117 */ | |
118 static hcb_2_pair hcb10_2[] = { | |
119 /* 4 bit codewords */ | |
120 { 4, 1, 1 }, | |
121 { 4, 1, 2 }, | |
122 { 4, 2, 1 }, | |
123 | |
124 /* 5 bit codewords */ | |
125 { 5, 2, 2 }, | |
126 { 5, 1, 0 }, | |
127 { 5, 0, 1 }, | |
128 { 5, 1, 3 }, | |
129 { 5, 3, 2 }, | |
130 { 5, 3, 1 }, | |
131 { 5, 2, 3 }, | |
132 { 5, 3, 3 }, | |
133 | |
134 /* 6 bit codewords */ | |
135 { 6, 2, 0 }, | |
136 { 6, 0, 2 }, | |
137 { 6, 2, 4 }, | |
138 { 6, 4, 2 }, | |
139 { 6, 1, 4 }, | |
140 { 6, 4, 1 }, | |
141 { 6, 0, 0 }, | |
142 { 6, 4, 3 }, | |
143 { 6, 3, 4 }, | |
144 { 6, 3, 0 }, | |
145 { 6, 0, 3 }, | |
146 { 6, 4, 4 }, | |
147 { 6, 2, 5 }, | |
148 { 6, 5, 2 }, | |
149 | |
150 /* 7 bit codewords */ | |
151 { 7, 1, 5 }, | |
152 { 7, 5, 1 }, | |
153 { 7, 5, 3 }, | |
154 { 7, 3, 5 }, | |
155 { 7, 5, 4 }, | |
156 { 7, 4, 5 }, | |
157 { 7, 6, 2 }, | |
158 { 7, 2, 6 }, | |
159 { 7, 6, 3 }, | |
160 { 7, 4, 0 }, | |
161 { 7, 6, 1 }, | |
162 { 7, 0, 4 }, | |
163 { 7, 1, 6 }, | |
164 { 7, 3, 6 }, | |
165 { 7, 5, 5 }, | |
166 { 7, 6, 4 }, | |
167 | |
168 /* 7/8 bit codewords */ | |
169 { 7, 4, 6 }, { 7, 4, 6 }, | |
170 { 8, 6, 5 }, | |
171 { 8, 7, 2 }, | |
172 | |
173 /* 8 bit codewords */ | |
174 { 8, 3, 7 }, | |
175 { 8, 2, 7 }, | |
176 { 8, 5, 6 }, | |
177 { 8, 8, 2 }, | |
178 { 8, 7, 3 }, | |
179 { 8, 5, 0 }, | |
180 { 8, 7, 1 }, | |
181 { 8, 0, 5 }, | |
182 { 8, 8, 1 }, | |
183 { 8, 1, 7 }, | |
184 { 8, 8, 3 }, | |
185 { 8, 7, 4 }, | |
186 { 8, 4, 7 }, | |
187 { 8, 2, 8 }, | |
188 { 8, 6, 6 }, | |
189 { 8, 7, 5 }, | |
190 { 8, 1, 8 }, | |
191 { 8, 3, 8 }, | |
192 { 8, 8, 4 }, | |
193 { 8, 4, 8 }, | |
194 | |
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 }, | |
199 { 9, 7, 6 }, | |
200 { 9, 6, 7 }, | |
201 | |
202 /* 9 bit codewords */ | |
203 { 9, 9, 2 }, | |
204 { 9, 6, 0 }, | |
205 { 9, 6, 8 }, | |
206 { 9, 9, 3 }, | |
207 { 9, 3, 9 }, | |
208 { 9, 9, 1 }, | |
209 { 9, 2, 9 }, | |
210 { 9, 0, 6 }, | |
211 { 9, 8, 6 }, | |
212 { 9, 9, 4 }, | |
213 { 9, 4, 9 }, | |
214 { 9, 10, 2 }, | |
215 { 9, 1, 9 }, | |
216 { 9, 7, 7 }, | |
217 { 9, 8, 7 }, | |
218 { 9, 9, 5 }, | |
219 { 9, 7, 8 }, | |
220 { 9, 10, 3 }, | |
221 { 9, 5, 9 }, | |
222 { 9, 10, 4 }, | |
223 { 9, 2, 10 }, | |
224 { 9, 10, 1 }, | |
225 { 9, 3, 10 }, | |
226 { 9, 9, 6 }, | |
227 | |
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 }, | |
234 { 10, 7, 9 }, | |
235 { 10, 11, 3 }, | |
236 { 10, 10, 6 }, | |
237 { 10, 1, 10 }, | |
238 { 10, 11, 1 }, | |
239 { 10, 9, 7 }, | |
240 | |
241 /* 10 bit codewords */ | |
242 { 10, 0, 7 }, | |
243 { 10, 8, 8 }, | |
244 { 10, 10, 5 }, | |
245 { 10, 3, 11 }, | |
246 { 10, 5, 10 }, | |
247 { 10, 8, 9 }, | |
248 { 10, 11, 5 }, | |
249 { 10, 0, 8 }, | |
250 { 10, 11, 4 }, | |
251 { 10, 2, 11 }, | |
252 { 10, 7, 10 }, | |
253 { 10, 6, 10 }, | |
254 { 10, 10, 7 }, | |
255 { 10, 4, 11 }, | |
256 { 10, 1, 11 }, | |
257 { 10, 12, 2 }, | |
258 { 10, 9, 8 }, | |
259 { 10, 12, 3 }, | |
260 { 10, 11, 6 }, | |
261 { 10, 5, 11 }, | |
262 { 10, 12, 4 }, | |
263 { 10, 11, 7 }, | |
264 { 10, 12, 5 }, | |
265 { 10, 3, 12 }, | |
266 { 10, 6, 11 }, | |
267 { 10, 9, 0 }, | |
268 { 10, 10, 8 }, | |
269 { 10, 10, 0 }, | |
270 { 10, 12, 1 }, | |
271 { 10, 0, 9 }, | |
272 { 10, 4, 12 }, | |
273 { 10, 9, 9 }, | |
274 | |
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 }, | |
301 { 12, 12, 9 }, | |
302 { 12, 10, 12 }, | |
303 { 12, 9, 12 }, | |
304 { 12, 11, 12 }, | |
305 { 12, 12, 11 }, | |
306 { 12, 0, 12 }, | |
307 { 12, 12, 10 }, | |
308 { 12, 12, 12 } | |
309 }; |