Mercurial > mplayer.hg
annotate libfaad2/codebook/hcb_6.h @ 14461:1363bbf9d5cc
Call subcp_close when closing the demuxer
author | reimar |
---|---|
date | Tue, 11 Jan 2005 18:32:49 +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_6.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_6 */ | |
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 hcb6_1[] = { | |
39 /* 4 bit codewords */ | |
40 { /* 00000 */ 0, 0 }, | |
41 { /* */ 0, 0 }, | |
42 { /* 00010 */ 1, 0 }, | |
43 { /* */ 1, 0 }, | |
44 { /* 00100 */ 2, 0 }, | |
45 { /* */ 2, 0 }, | |
46 { /* 00110 */ 3, 0 }, | |
47 { /* */ 3, 0 }, | |
48 { /* 01000 */ 4, 0 }, | |
49 { /* */ 4, 0 }, | |
50 { /* 01010 */ 5, 0 }, | |
51 { /* */ 5, 0 }, | |
52 { /* 01100 */ 6, 0 }, | |
53 { /* */ 6, 0 }, | |
54 { /* 01110 */ 7, 0 }, | |
55 { /* */ 7, 0 }, | |
56 { /* 10000 */ 8, 0 }, | |
57 { /* */ 8, 0 }, | |
58 | |
59 /* 6 bit codewords */ | |
60 { /* 10010 */ 9, 1 }, | |
61 { /* 10011 */ 11, 1 }, | |
62 { /* 10100 */ 13, 1 }, | |
63 { /* 10101 */ 15, 1 }, | |
64 { /* 10110 */ 17, 1 }, | |
65 { /* 10111 */ 19, 1 }, | |
66 { /* 11000 */ 21, 1 }, | |
67 { /* 11001 */ 23, 1 }, | |
68 | |
69 /* 7 bit codewords */ | |
70 { /* 11010 */ 25, 2 }, | |
71 { /* 11011 */ 29, 2 }, | |
72 { /* 11100 */ 33, 2 }, | |
73 | |
74 /* 7/8 bit codewords */ | |
75 { /* 11101 */ 37, 3 }, | |
76 | |
77 /* 8/9 bit codewords */ | |
78 { /* 11110 */ 45, 4 }, | |
79 | |
80 /* 9/10/11 bit codewords */ | |
81 { /* 11111 */ 61, 6 } | |
82 }; | |
83 | |
84 /* 2nd step table | |
85 * | |
86 * Gives size of codeword and actual data (x,y,v,w) | |
87 */ | |
88 static hcb_2_pair hcb6_2[] = { | |
89 /* 4 bit codewords */ | |
90 { 4, 0, 0 }, | |
91 { 4, 1, 0 }, | |
92 { 4, 0, -1 }, | |
93 { 4, 0, 1 }, | |
94 { 4, -1, 0 }, | |
95 { 4, 1, 1 }, | |
96 { 4, -1, 1 }, | |
97 { 4, 1, -1 }, | |
98 { 4, -1, -1 }, | |
99 | |
100 /* 6 bit codewords */ | |
101 { 6, 2, -1 }, | |
102 { 6, 2, 1 }, | |
103 { 6, -2, 1 }, | |
104 { 6, -2, -1 }, | |
105 { 6, -2, 0 }, | |
106 { 6, -1, 2 }, | |
107 { 6, 2, 0 }, | |
108 { 6, 1, -2 }, | |
109 { 6, 1, 2 }, | |
110 { 6, 0, -2 }, | |
111 { 6, -1, -2 }, | |
112 { 6, 0, 2 }, | |
113 { 6, 2, -2 }, | |
114 { 6, -2, 2 }, | |
115 { 6, -2, -2 }, | |
116 { 6, 2, 2 }, | |
117 | |
118 /* 7 bit codewords */ | |
119 { 7, -3, 1 }, | |
120 { 7, 3, 1 }, | |
121 { 7, 3, -1 }, | |
122 { 7, -1, 3 }, | |
123 { 7, -3, -1 }, | |
124 { 7, 1, 3 }, | |
125 { 7, 1, -3 }, | |
126 { 7, -1, -3 }, | |
127 { 7, 3, 0 }, | |
128 { 7, -3, 0 }, | |
129 { 7, 0, -3 }, | |
130 { 7, 0, 3 }, | |
131 | |
132 /* 7/8 bit codewords */ | |
133 { 7, 3, 2 }, { 7, 3, 2 }, | |
134 { 8, -3, -2 }, | |
135 { 8, -2, 3 }, | |
136 { 8, 2, 3 }, | |
137 { 8, 3, -2 }, | |
138 { 8, 2, -3 }, | |
139 { 8, -2, -3 }, | |
140 | |
141 /* 8 bit codewords */ | |
142 { 8, -3, 2 }, { 8, -3, 2 }, | |
143 { 8, 3, 3 }, { 8, 3, 3 }, | |
144 { 9, 3, -3 }, | |
145 { 9, -3, -3 }, | |
146 { 9, -3, 3 }, | |
147 { 9, 1, -4 }, | |
148 { 9, -1, -4 }, | |
149 { 9, 4, 1 }, | |
150 { 9, -4, 1 }, | |
151 { 9, -4, -1 }, | |
152 { 9, 1, 4 }, | |
153 { 9, 4, -1 }, | |
154 { 9, -1, 4 }, | |
155 { 9, 0, -4 }, | |
156 | |
157 /* 9/10/11 bit codewords */ | |
158 { 9, -4, 2 }, { 9, -4, 2 }, { 9, -4, 2 }, { 9, -4, 2 }, | |
159 { 9, -4, -2 }, { 9, -4, -2 }, { 9, -4, -2 }, { 9, -4, -2 }, | |
160 { 9, 2, 4 }, { 9, 2, 4 }, { 9, 2, 4 }, { 9, 2, 4 }, | |
161 { 9, -2, -4 }, { 9, -2, -4 }, { 9, -2, -4 }, { 9, -2, -4 }, | |
162 { 9, -4, 0 }, { 9, -4, 0 }, { 9, -4, 0 }, { 9, -4, 0 }, | |
163 { 9, 4, 2 }, { 9, 4, 2 }, { 9, 4, 2 }, { 9, 4, 2 }, | |
164 { 9, 4, -2 }, { 9, 4, -2 }, { 9, 4, -2 }, { 9, 4, -2 }, | |
165 { 9, -2, 4 }, { 9, -2, 4 }, { 9, -2, 4 }, { 9, -2, 4 }, | |
166 { 9, 4, 0 }, { 9, 4, 0 }, { 9, 4, 0 }, { 9, 4, 0 }, | |
167 { 9, 2, -4 }, { 9, 2, -4 }, { 9, 2, -4 }, { 9, 2, -4 }, | |
168 { 9, 0, 4 }, { 9, 0, 4 }, { 9, 0, 4 }, { 9, 0, 4 }, | |
169 { 10, -3, -4 }, { 10, -3, -4 }, | |
170 { 10, -3, 4 }, { 10, -3, 4 }, | |
171 { 10, 3, -4 }, { 10, 3, -4 }, | |
172 { 10, 4, -3 }, { 10, 4, -3 }, | |
173 { 10, 3, 4 }, { 10, 3, 4 }, | |
174 { 10, 4, 3 }, { 10, 4, 3 }, | |
175 { 10, -4, 3 }, { 10, -4, 3 }, | |
176 { 10, -4, -3 }, { 10, -4, -3 }, | |
177 { 11, 4, 4 }, | |
178 { 11, -4, 4 }, | |
179 { 11, -4, -4 }, | |
180 { 11, 4, -4 } | |
181 }; |