Mercurial > mplayer.hg
annotate libfaad2/codebook/hcb_8.h @ 14579:aacd81655870
The test to check for working pthreads fails if the system can support
pthreads without any gcc options (for instance, Darwin).
patch by Alexander Strange <astrange at ithinksw dot com>
author | diego |
---|---|
date | Sat, 22 Jan 2005 18:30:23 +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_8.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_8 */ | |
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 hcb8_1[] = { | |
39 /* 3 bit codeword */ | |
40 { /* 00000 */ 0, 0 }, | |
41 { /* */ 0, 0 }, | |
42 { /* */ 0, 0 }, | |
43 { /* */ 0, 0 }, | |
44 | |
45 /* 4 bit codewords */ | |
46 { /* 00100 */ 1, 0 }, | |
47 { /* */ 1, 0 }, | |
48 { /* 00110 */ 2, 0 }, | |
49 { /* */ 2, 0 }, | |
50 { /* 01000 */ 3, 0 }, | |
51 { /* */ 3, 0 }, | |
52 { /* 01010 */ 4, 0 }, | |
53 { /* */ 4, 0 }, | |
54 { /* 01100 */ 5, 0 }, | |
55 { /* */ 5, 0 }, | |
56 | |
57 /* 5 bit codewords */ | |
58 { /* 01110 */ 6, 0 }, | |
59 { /* 01111 */ 7, 0 }, | |
60 { /* 10000 */ 8, 0 }, | |
61 { /* 10001 */ 9, 0 }, | |
62 { /* 10010 */ 10, 0 }, | |
63 { /* 10011 */ 11, 0 }, | |
64 { /* 10100 */ 12, 0 }, | |
65 | |
66 /* 6 bit codewords */ | |
67 { /* 10101 */ 13, 1 }, | |
68 { /* 10110 */ 15, 1 }, | |
69 { /* 10111 */ 17, 1 }, | |
70 { /* 11000 */ 19, 1 }, | |
71 { /* 11001 */ 21, 1 }, | |
72 | |
73 /* 7 bit codewords */ | |
74 { /* 11010 */ 23, 2 }, | |
75 { /* 11011 */ 27, 2 }, | |
76 { /* 11100 */ 31, 2 }, | |
77 | |
78 /* 7/8 bit codewords */ | |
79 { /* 11101 */ 35, 3 }, | |
80 | |
81 /* 8 bit codewords */ | |
82 { /* 11110 */ 43, 3 }, | |
83 | |
84 /* 8/9/10 bit codewords */ | |
85 { /* 11111 */ 51, 5 } | |
86 }; | |
87 | |
88 /* 2nd step table | |
89 * | |
90 * Gives size of codeword and actual data (x,y,v,w) | |
91 */ | |
92 static hcb_2_pair hcb8_2[] = { | |
93 /* 3 bit codeword */ | |
94 { 3, 1, 1 }, | |
95 | |
96 /* 4 bit codewords */ | |
97 { 4, 2, 1 }, | |
98 { 4, 1, 0 }, | |
99 { 4, 1, 2 }, | |
100 { 4, 0, 1 }, | |
101 { 4, 2, 2 }, | |
102 | |
103 /* 5 bit codewords */ | |
104 { 5, 0, 0 }, | |
105 { 5, 2, 0 }, | |
106 { 5, 0, 2 }, | |
107 { 5, 3, 1 }, | |
108 { 5, 1, 3 }, | |
109 { 5, 3, 2 }, | |
110 { 5, 2, 3 }, | |
111 | |
112 /* 6 bit codewords */ | |
113 { 6, 3, 3 }, | |
114 { 6, 4, 1 }, | |
115 { 6, 1, 4 }, | |
116 { 6, 4, 2 }, | |
117 { 6, 2, 4 }, | |
118 { 6, 3, 0 }, | |
119 { 6, 0, 3 }, | |
120 { 6, 4, 3 }, | |
121 { 6, 3, 4 }, | |
122 { 6, 5, 2 }, | |
123 | |
124 /* 7 bit codewords */ | |
125 { 7, 5, 1 }, | |
126 { 7, 2, 5 }, | |
127 { 7, 1, 5 }, | |
128 { 7, 5, 3 }, | |
129 { 7, 3, 5 }, | |
130 { 7, 4, 4 }, | |
131 { 7, 5, 4 }, | |
132 { 7, 0, 4 }, | |
133 { 7, 4, 5 }, | |
134 { 7, 4, 0 }, | |
135 { 7, 2, 6 }, | |
136 { 7, 6, 2 }, | |
137 | |
138 /* 7/8 bit codewords */ | |
139 { 7, 6, 1 }, { 7, 6, 1 }, | |
140 { 7, 1, 6 }, { 7, 1, 6 }, | |
141 { 8, 3, 6 }, | |
142 { 8, 6, 3 }, | |
143 { 8, 5, 5 }, | |
144 { 8, 5, 0 }, | |
145 | |
146 /* 8 bit codewords */ | |
147 { 8, 6, 4 }, | |
148 { 8, 0, 5 }, | |
149 { 8, 4, 6 }, | |
150 { 8, 7, 1 }, | |
151 { 8, 7, 2 }, | |
152 { 8, 2, 7 }, | |
153 { 8, 6, 5 }, | |
154 { 8, 7, 3 }, | |
155 | |
156 /* 8/9/10 bit codewords */ | |
157 { 8, 1, 7 }, { 8, 1, 7 }, { 8, 1, 7 }, { 8, 1, 7 }, | |
158 { 8, 5, 6 }, { 8, 5, 6 }, { 8, 5, 6 }, { 8, 5, 6 }, | |
159 { 8, 3, 7 }, { 8, 3, 7 }, { 8, 3, 7 }, { 8, 3, 7 }, | |
160 { 9, 6, 6 }, { 9, 6, 6 }, | |
161 { 9, 7, 4 }, { 9, 7, 4 }, | |
162 { 9, 6, 0 }, { 9, 6, 0 }, | |
163 { 9, 4, 7 }, { 9, 4, 7 }, | |
164 { 9, 0, 6 }, { 9, 0, 6 }, | |
165 { 9, 7, 5 }, { 9, 7, 5 }, | |
166 { 9, 7, 6 }, { 9, 7, 6 }, | |
167 { 9, 6, 7 }, { 9, 6, 7 }, | |
168 { 10, 5, 7 }, | |
169 { 10, 7, 0 }, | |
170 { 10, 0, 7 }, | |
171 { 10, 7, 7 } | |
172 }; |