Mercurial > mplayer.hg
annotate libfaad2/codebook/hcb_10.h @ 13757:40c44e178073
1.132: MSGTR_EdlCantOpenForWrite updated
1.133: mp_msg transition of unmaintained audio output drivers (referring to date 2004/09/18!)
file isn't yet up to date, will continue updating in steps..
author | kraymer |
---|---|
date | Mon, 25 Oct 2004 16:31:50 +0000 |
parents | d81145997036 |
children | 1d5a49e6d9db |
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 ** | |
12625
d81145997036
More information about modifications to comply more closely with GPL 2a.
diego
parents:
10725
diff
changeset
|
25 ** Initially modified for use with MPlayer by Arpad Gereöffy on 2003/08/30 |
d81145997036
More information about modifications to comply more closely with GPL 2a.
diego
parents:
10725
diff
changeset
|
26 ** $Id: hcb_10.h,v 1.1 2003/08/30 22:30:28 arpi Exp $ |
d81145997036
More information about modifications to comply more closely with GPL 2a.
diego
parents:
10725
diff
changeset
|
27 ** detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/ |
10725 | 28 **/ |
29 | |
30 /* 2-step huffman table HCB_10 */ | |
31 | |
32 | |
33 /* 1st step: 6 bits | |
34 * 2^6 = 64 entries | |
35 * | |
36 * Used to find offset into 2nd step table and number of extra bits to get | |
37 */ | |
38 static hcb hcb10_1[] = { | |
39 /* 4 bit codewords */ | |
40 { /* 000000 */ 0, 0 }, | |
41 { /* */ 0, 0 }, | |
42 { /* */ 0, 0 }, | |
43 { /* */ 0, 0 }, | |
44 { /* 000100 */ 1, 0 }, | |
45 { /* */ 1, 0 }, | |
46 { /* */ 1, 0 }, | |
47 { /* */ 1, 0 }, | |
48 { /* 001000 */ 2, 0 }, | |
49 { /* */ 2, 0 }, | |
50 { /* */ 2, 0 }, | |
51 { /* */ 2, 0 }, | |
52 /* 5 bit codewords */ | |
53 { /* 001100 */ 3, 0 }, | |
54 { /* */ 3, 0 }, | |
55 { /* 001110 */ 4, 0 }, | |
56 { /* */ 4, 0 }, | |
57 { /* 010000 */ 5, 0 }, | |
58 { /* */ 5, 0 }, | |
59 { /* 010010 */ 6, 0 }, | |
60 { /* */ 6, 0 }, | |
61 { /* 010100 */ 7, 0 }, | |
62 { /* */ 7, 0 }, | |
63 { /* 010110 */ 8, 0 }, | |
64 { /* */ 8, 0 }, | |
65 { /* 011000 */ 9, 0 }, | |
66 { /* */ 9, 0 }, | |
67 { /* 011010 */ 10, 0 }, | |
68 { /* */ 10, 0 }, | |
69 /* 6 bit codewords */ | |
70 { /* 011100 */ 11, 0 }, | |
71 { /* 011101 */ 12, 0 }, | |
72 { /* 011110 */ 13, 0 }, | |
73 { /* 011111 */ 14, 0 }, | |
74 { /* 100000 */ 15, 0 }, | |
75 { /* 100001 */ 16, 0 }, | |
76 { /* 100010 */ 17, 0 }, | |
77 { /* 100011 */ 18, 0 }, | |
78 { /* 100100 */ 19, 0 }, | |
79 { /* 100101 */ 20, 0 }, | |
80 { /* 100110 */ 21, 0 }, | |
81 { /* 100111 */ 22, 0 }, | |
82 { /* 101000 */ 23, 0 }, | |
83 { /* 101001 */ 24, 0 }, | |
84 /* 7 bit codewords */ | |
85 { /* 101010 */ 25, 1 }, | |
86 { /* 101011 */ 27, 1 }, | |
87 { /* 101100 */ 29, 1 }, | |
88 { /* 101101 */ 31, 1 }, | |
89 { /* 101110 */ 33, 1 }, | |
90 { /* 101111 */ 35, 1 }, | |
91 { /* 110000 */ 37, 1 }, | |
92 { /* 110001 */ 39, 1 }, | |
93 /* 7/8 bit codewords */ | |
94 { /* 110010 */ 41, 2 }, | |
95 /* 8 bit codewords */ | |
96 { /* 110011 */ 45, 2 }, | |
97 { /* 110100 */ 49, 2 }, | |
98 { /* 110101 */ 53, 2 }, | |
99 { /* 110110 */ 57, 2 }, | |
100 { /* 110111 */ 61, 2 }, | |
101 /* 8/9 bit codewords */ | |
102 { /* 111000 */ 65, 3 }, | |
103 /* 9 bit codewords */ | |
104 { /* 111001 */ 73, 3 }, | |
105 { /* 111010 */ 81, 3 }, | |
106 { /* 111011 */ 89, 3 }, | |
107 /* 9/10 bit codewords */ | |
108 { /* 111100 */ 97, 4 }, | |
109 /* 10 bit codewords */ | |
110 { /* 111101 */ 113, 4 }, | |
111 { /* 111110 */ 129, 4 }, | |
112 /* 10/11/12 bit codewords */ | |
113 { /* 111111 */ 145, 6 } | |
114 }; | |
115 | |
116 /* 2nd step table | |
117 * | |
118 * Gives size of codeword and actual data (x,y,v,w) | |
119 */ | |
120 static hcb_2_pair hcb10_2[] = { | |
121 /* 4 bit codewords */ | |
122 { 4, 1, 1 }, | |
123 { 4, 1, 2 }, | |
124 { 4, 2, 1 }, | |
125 | |
126 /* 5 bit codewords */ | |
127 { 5, 2, 2 }, | |
128 { 5, 1, 0 }, | |
129 { 5, 0, 1 }, | |
130 { 5, 1, 3 }, | |
131 { 5, 3, 2 }, | |
132 { 5, 3, 1 }, | |
133 { 5, 2, 3 }, | |
134 { 5, 3, 3 }, | |
135 | |
136 /* 6 bit codewords */ | |
137 { 6, 2, 0 }, | |
138 { 6, 0, 2 }, | |
139 { 6, 2, 4 }, | |
140 { 6, 4, 2 }, | |
141 { 6, 1, 4 }, | |
142 { 6, 4, 1 }, | |
143 { 6, 0, 0 }, | |
144 { 6, 4, 3 }, | |
145 { 6, 3, 4 }, | |
146 { 6, 3, 0 }, | |
147 { 6, 0, 3 }, | |
148 { 6, 4, 4 }, | |
149 { 6, 2, 5 }, | |
150 { 6, 5, 2 }, | |
151 | |
152 /* 7 bit codewords */ | |
153 { 7, 1, 5 }, | |
154 { 7, 5, 1 }, | |
155 { 7, 5, 3 }, | |
156 { 7, 3, 5 }, | |
157 { 7, 5, 4 }, | |
158 { 7, 4, 5 }, | |
159 { 7, 6, 2 }, | |
160 { 7, 2, 6 }, | |
161 { 7, 6, 3 }, | |
162 { 7, 4, 0 }, | |
163 { 7, 6, 1 }, | |
164 { 7, 0, 4 }, | |
165 { 7, 1, 6 }, | |
166 { 7, 3, 6 }, | |
167 { 7, 5, 5 }, | |
168 { 7, 6, 4 }, | |
169 | |
170 /* 7/8 bit codewords */ | |
171 { 7, 4, 6 }, { 7, 4, 6 }, | |
172 { 8, 6, 5 }, | |
173 { 8, 7, 2 }, | |
174 | |
175 /* 8 bit codewords */ | |
176 { 8, 3, 7 }, | |
177 { 8, 2, 7 }, | |
178 { 8, 5, 6 }, | |
179 { 8, 8, 2 }, | |
180 { 8, 7, 3 }, | |
181 { 8, 5, 0 }, | |
182 { 8, 7, 1 }, | |
183 { 8, 0, 5 }, | |
184 { 8, 8, 1 }, | |
185 { 8, 1, 7 }, | |
186 { 8, 8, 3 }, | |
187 { 8, 7, 4 }, | |
188 { 8, 4, 7 }, | |
189 { 8, 2, 8 }, | |
190 { 8, 6, 6 }, | |
191 { 8, 7, 5 }, | |
192 { 8, 1, 8 }, | |
193 { 8, 3, 8 }, | |
194 { 8, 8, 4 }, | |
195 { 8, 4, 8 }, | |
196 | |
197 /* 8/9 bit codewords */ | |
198 { 8, 5, 7 }, { 8, 5, 7 }, | |
199 { 8, 8, 5 }, { 8, 8, 5 }, | |
200 { 8, 5, 8 }, { 8, 5, 8 }, | |
201 { 9, 7, 6 }, | |
202 { 9, 6, 7 }, | |
203 | |
204 /* 9 bit codewords */ | |
205 { 9, 9, 2 }, | |
206 { 9, 6, 0 }, | |
207 { 9, 6, 8 }, | |
208 { 9, 9, 3 }, | |
209 { 9, 3, 9 }, | |
210 { 9, 9, 1 }, | |
211 { 9, 2, 9 }, | |
212 { 9, 0, 6 }, | |
213 { 9, 8, 6 }, | |
214 { 9, 9, 4 }, | |
215 { 9, 4, 9 }, | |
216 { 9, 10, 2 }, | |
217 { 9, 1, 9 }, | |
218 { 9, 7, 7 }, | |
219 { 9, 8, 7 }, | |
220 { 9, 9, 5 }, | |
221 { 9, 7, 8 }, | |
222 { 9, 10, 3 }, | |
223 { 9, 5, 9 }, | |
224 { 9, 10, 4 }, | |
225 { 9, 2, 10 }, | |
226 { 9, 10, 1 }, | |
227 { 9, 3, 10 }, | |
228 { 9, 9, 6 }, | |
229 | |
230 /* 9/10 bit codewords */ | |
231 { 9, 6, 9 }, { 9, 6, 9 }, | |
232 { 9, 8, 0 }, { 9, 8, 0 }, | |
233 { 9, 4, 10 }, { 9, 4, 10 }, | |
234 { 9, 7, 0 }, { 9, 7, 0 }, | |
235 { 9, 11, 2 }, { 9, 11, 2 }, | |
236 { 10, 7, 9 }, | |
237 { 10, 11, 3 }, | |
238 { 10, 10, 6 }, | |
239 { 10, 1, 10 }, | |
240 { 10, 11, 1 }, | |
241 { 10, 9, 7 }, | |
242 | |
243 /* 10 bit codewords */ | |
244 { 10, 0, 7 }, | |
245 { 10, 8, 8 }, | |
246 { 10, 10, 5 }, | |
247 { 10, 3, 11 }, | |
248 { 10, 5, 10 }, | |
249 { 10, 8, 9 }, | |
250 { 10, 11, 5 }, | |
251 { 10, 0, 8 }, | |
252 { 10, 11, 4 }, | |
253 { 10, 2, 11 }, | |
254 { 10, 7, 10 }, | |
255 { 10, 6, 10 }, | |
256 { 10, 10, 7 }, | |
257 { 10, 4, 11 }, | |
258 { 10, 1, 11 }, | |
259 { 10, 12, 2 }, | |
260 { 10, 9, 8 }, | |
261 { 10, 12, 3 }, | |
262 { 10, 11, 6 }, | |
263 { 10, 5, 11 }, | |
264 { 10, 12, 4 }, | |
265 { 10, 11, 7 }, | |
266 { 10, 12, 5 }, | |
267 { 10, 3, 12 }, | |
268 { 10, 6, 11 }, | |
269 { 10, 9, 0 }, | |
270 { 10, 10, 8 }, | |
271 { 10, 10, 0 }, | |
272 { 10, 12, 1 }, | |
273 { 10, 0, 9 }, | |
274 { 10, 4, 12 }, | |
275 { 10, 9, 9 }, | |
276 | |
277 /* 10/11/12 bit codewords */ | |
278 { 10, 12, 6 }, { 10, 12, 6 }, { 10, 12, 6 }, { 10, 12, 6 }, | |
279 { 10, 2, 12 }, { 10, 2, 12 }, { 10, 2, 12 }, { 10, 2, 12 }, | |
280 { 10, 8, 10 }, { 10, 8, 10 }, { 10, 8, 10 }, { 10, 8, 10 }, | |
281 { 11, 9, 10 }, { 11, 9, 10 }, | |
282 { 11, 1, 12 }, { 11, 1, 12 }, | |
283 { 11, 11, 8 }, { 11, 11, 8 }, | |
284 { 11, 12, 7 }, { 11, 12, 7 }, | |
285 { 11, 7, 11 }, { 11, 7, 11 }, | |
286 { 11, 5, 12 }, { 11, 5, 12 }, | |
287 { 11, 6, 12 }, { 11, 6, 12 }, | |
288 { 11, 10, 9 }, { 11, 10, 9 }, | |
289 { 11, 8, 11 }, { 11, 8, 11 }, | |
290 { 11, 12, 8 }, { 11, 12, 8 }, | |
291 { 11, 0, 10 }, { 11, 0, 10 }, | |
292 { 11, 7, 12 }, { 11, 7, 12 }, | |
293 { 11, 11, 0 }, { 11, 11, 0 }, | |
294 { 11, 10, 10 }, { 11, 10, 10 }, | |
295 { 11, 11, 9 }, { 11, 11, 9 }, | |
296 { 11, 11, 10 }, { 11, 11, 10 }, | |
297 { 11, 0, 11 }, { 11, 0, 11 }, | |
298 { 11, 11, 11 }, { 11, 11, 11 }, | |
299 { 11, 9, 11 }, { 11, 9, 11 }, | |
300 { 11, 10, 11 }, { 11, 10, 11 }, | |
301 { 11, 12, 0 }, { 11, 12, 0 }, | |
302 { 11, 8, 12 }, { 11, 8, 12 }, | |
303 { 12, 12, 9 }, | |
304 { 12, 10, 12 }, | |
305 { 12, 9, 12 }, | |
306 { 12, 11, 12 }, | |
307 { 12, 12, 11 }, | |
308 { 12, 0, 12 }, | |
309 { 12, 12, 10 }, | |
310 { 12, 12, 12 } | |
311 }; |