Mercurial > mplayer.hg
annotate libfaad2/codebook/hcb_1.h @ 13620:db051195ad68
modified outdated message which was still referring to ALSA 0.5 and 0.9
author | aurel |
---|---|
date | Tue, 12 Oct 2004 16:13:38 +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_1.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_1 */ | |
31 | |
32 | |
33 /* 1st step: 5 bits | |
34 * 2^5 = 32 entries | |
35 * | |
36 * Used to find offset into 2nd step table and number of extra bits to get | |
37 */ | |
38 static hcb hcb1_1[] = { | |
39 { /* 00000 */ 0, 0 }, | |
40 { /* */ 0, 0 }, | |
41 { /* */ 0, 0 }, | |
42 { /* */ 0, 0 }, | |
43 { /* */ 0, 0 }, | |
44 { /* */ 0, 0 }, | |
45 { /* */ 0, 0 }, | |
46 { /* */ 0, 0 }, | |
47 { /* */ 0, 0 }, | |
48 { /* */ 0, 0 }, | |
49 { /* */ 0, 0 }, | |
50 { /* */ 0, 0 }, | |
51 { /* */ 0, 0 }, | |
52 { /* */ 0, 0 }, | |
53 { /* */ 0, 0 }, | |
54 { /* */ 0, 0 }, | |
55 { /* 10000 */ 1, 0 }, | |
56 { /* 10001 */ 2, 0 }, | |
57 { /* 10010 */ 3, 0 }, | |
58 { /* 10011 */ 4, 0 }, | |
59 { /* 10100 */ 5, 0 }, | |
60 { /* 10101 */ 6, 0 }, | |
61 { /* 10110 */ 7, 0 }, | |
62 { /* 10111 */ 8, 0 }, | |
63 | |
64 /* 7 bit codewords */ | |
65 { /* 11000 */ 9, 2 }, | |
66 { /* 11001 */ 13, 2 }, | |
67 { /* 11010 */ 17, 2 }, | |
68 { /* 11011 */ 21, 2 }, | |
69 { /* 11100 */ 25, 2 }, | |
70 { /* 11101 */ 29, 2 }, | |
71 | |
72 /* 9 bit codewords */ | |
73 { /* 11110 */ 33, 4 }, | |
74 | |
75 /* 9/10/11 bit codewords */ | |
76 { /* 11111 */ 49, 6 } | |
77 }; | |
78 | |
79 /* 2nd step table | |
80 * | |
81 * Gives size of codeword and actual data (x,y,v,w) | |
82 */ | |
83 static hcb_2_quad hcb1_2[] = { | |
84 /* 1 bit codeword */ | |
85 { 1, 0, 0, 0, 0 }, | |
86 | |
87 /* 5 bit codewords */ | |
88 { 5, 1, 0, 0, 0 }, | |
89 { 5, -1, 0, 0, 0 }, | |
90 { 5, 0, 0, 0, -1 }, | |
91 { 5, 0, 1, 0, 0 }, | |
92 { 5, 0, 0, 0, 1 }, | |
93 { 5, 0, 0, -1, 0 }, | |
94 { 5, 0, 0, 1, 0 }, | |
95 { 5, 0, -1, 0, 0 }, | |
96 | |
97 /* 7 bit codewords */ | |
98 /* first 5 bits: 11000 */ | |
99 { 7, 1, -1, 0, 0 }, | |
100 { 7, -1, 1, 0, 0 }, | |
101 { 7, 0, 0, -1, 1 }, | |
102 { 7, 0, 1, -1, 0 }, | |
103 /* first 5 bits: 11001 */ | |
104 { 7, 0, -1, 1, 0 }, | |
105 { 7, 0, 0, 1, -1 }, | |
106 { 7, 1, 1, 0, 0 }, | |
107 { 7, 0, 0, -1, -1 }, | |
108 /* first 5 bits: 11010 */ | |
109 { 7, -1, -1, 0, 0 }, | |
110 { 7, 0, -1, -1, 0 }, | |
111 { 7, 1, 0, -1, 0 }, | |
112 { 7, 0, 1, 0, -1 }, | |
113 /* first 5 bits: 11011 */ | |
114 { 7, -1, 0, 1, 0 }, | |
115 { 7, 0, 0, 1, 1 }, | |
116 { 7, 1, 0, 1, 0 }, | |
117 { 7, 0, -1, 0, 1 }, | |
118 /* first 5 bits: 11100 */ | |
119 { 7, 0, 1, 1, 0 }, | |
120 { 7, 0, 1, 0, 1 }, | |
121 { 7, -1, 0, -1, 0 }, | |
122 { 7, 1, 0, 0, 1 }, | |
123 /* first 5 bits: 11101 */ | |
124 { 7, -1, 0, 0, -1 }, | |
125 { 7, 1, 0, 0, -1 }, | |
126 { 7, -1, 0, 0, 1 }, | |
127 { 7, 0, -1, 0, -1 }, | |
128 | |
129 /* 9 bit codeword */ | |
130 /* first 5 bits: 11110 */ | |
131 { 9, 1, 1, -1, 0 }, | |
132 { 9, -1, 1, -1, 0 }, | |
133 { 9, 1, -1, 1, 0 }, | |
134 { 9, 0, 1, 1, -1 }, | |
135 { 9, 0, 1, -1, 1 }, | |
136 { 9, 0, -1, 1, 1 }, | |
137 { 9, 0, -1, 1, -1 }, | |
138 { 9, 1, -1, -1, 0 }, | |
139 { 9, 1, 0, -1, 1 }, | |
140 { 9, 0, 1, -1, -1 }, | |
141 { 9, -1, 1, 1, 0 }, | |
142 { 9, -1, 0, 1, -1 }, | |
143 { 9, -1, -1, 1, 0 }, | |
144 { 9, 0, -1, -1, 1 }, | |
145 { 9, 1, -1, 0, 1 }, | |
146 { 9, 1, -1, 0, -1 }, | |
147 | |
148 /* 9/10/11 bit codewords */ | |
149 /* first 5 bits: 11111 */ | |
150 /* 9 bit: reading 11 bits -> 2 too much so 4 entries for each codeword */ | |
151 { 9, -1, 1, 0, -1 }, { 9, -1, 1, 0, -1 }, { 9, -1, 1, 0, -1 }, { 9, -1, 1, 0, -1 }, | |
152 { 9, -1, -1, -1, 0 }, { 9, -1, -1, -1, 0 }, { 9, -1, -1, -1, 0 }, { 9, -1, -1, -1, 0 }, | |
153 { 9, 0, -1, -1, -1 }, { 9, 0, -1, -1, -1 }, { 9, 0, -1, -1, -1 }, { 9, 0, -1, -1, -1 }, | |
154 { 9, 0, 1, 1, 1 }, { 9, 0, 1, 1, 1 }, { 9, 0, 1, 1, 1 }, { 9, 0, 1, 1, 1 }, | |
155 { 9, 1, 0, 1, -1 }, { 9, 1, 0, 1, -1 }, { 9, 1, 0, 1, -1 }, { 9, 1, 0, 1, -1 }, | |
156 { 9, 1, 1, 0, 1 }, { 9, 1, 1, 0, 1 }, { 9, 1, 1, 0, 1 }, { 9, 1, 1, 0, 1 }, | |
157 { 9, -1, 1, 0, 1 }, { 9, -1, 1, 0, 1 }, { 9, -1, 1, 0, 1 }, { 9, -1, 1, 0, 1 }, | |
158 { 9, 1, 1, 1, 0 }, { 9, 1, 1, 1, 0 }, { 9, 1, 1, 1, 0 }, { 9, 1, 1, 1, 0 }, | |
159 /* 10 bit: reading 11 bits -> 1 too much so 2 entries for each codeword */ | |
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, 1, 0, -1 }, { 10, 1, 1, 0, -1 }, | |
163 { 10, 1, 0, -1, -1 }, { 10, 1, 0, -1, -1 }, | |
164 { 10, -1, 0, -1, 1 }, { 10, -1, 0, -1, 1 }, | |
165 { 10, -1, -1, 0, -1 }, { 10, -1, -1, 0, -1 }, | |
166 { 10, -1, 0, 1, 1 }, { 10, -1, 0, 1, 1 }, | |
167 { 10, 1, 0, 1, 1 }, { 10, 1, 0, 1, 1 }, | |
168 /* 11 bit */ | |
169 { 11, 1, -1, 1, -1 }, | |
170 { 11, -1, 1, -1, 1 }, | |
171 { 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 }, | |
176 { 11, -1, -1, 1, -1 }, | |
177 { 11, -1, -1, -1, -1 }, | |
178 { 11, 1, 1, -1, 1 }, | |
179 { 11, 1, -1, 1, 1 }, | |
180 { 11, -1, 1, 1, 1 }, | |
181 { 11, -1, 1, -1, -1 }, | |
182 { 11, -1, -1, -1, 1 }, | |
183 { 11, 1, -1, -1, -1 }, | |
184 { 11, 1, 1, 1, -1 } | |
185 }; |