comparison ac3tab.h @ 2097:dd81e5be0c7a libavcodec

make the tables static
author alex
date Sat, 26 Jun 2004 10:08:49 +0000
parents 1e39f273ecd6
children ef2149182f1c
comparison
equal deleted inserted replaced
2096:83ab15bd1638 2097:dd81e5be0c7a
2 * @file ac3tab.h 2 * @file ac3tab.h
3 * tables taken directly from AC3 spec. 3 * tables taken directly from AC3 spec.
4 */ 4 */
5 5
6 /* possible frequencies */ 6 /* possible frequencies */
7 const uint16_t ac3_freqs[3] = { 48000, 44100, 32000 }; 7 static const uint16_t ac3_freqs[3] = { 48000, 44100, 32000 };
8 8
9 /* possible bitrates */ 9 /* possible bitrates */
10 const uint16_t ac3_bitratetab[19] = { 10 static const uint16_t ac3_bitratetab[19] = {
11 32, 40, 48, 56, 64, 80, 96, 112, 128, 11 32, 40, 48, 56, 64, 80, 96, 112, 128,
12 160, 192, 224, 256, 320, 384, 448, 512, 576, 640 12 160, 192, 224, 256, 320, 384, 448, 512, 576, 640
13 }; 13 };
14 14
15 /* AC3 MDCT window */ 15 /* AC3 MDCT window */
16 16
17 /* MDCT window */ 17 /* MDCT window */
18 const int16_t ac3_window[256] = { 18 static const int16_t ac3_window[256] = {
19 4, 7, 12, 16, 21, 28, 34, 42, 19 4, 7, 12, 16, 21, 28, 34, 42,
20 51, 61, 72, 84, 97, 111, 127, 145, 20 51, 61, 72, 84, 97, 111, 127, 145,
21 164, 184, 207, 231, 257, 285, 315, 347, 21 164, 184, 207, 231, 257, 285, 315, 347,
22 382, 419, 458, 500, 544, 591, 641, 694, 22 382, 419, 458, 500, 544, 591, 641, 694,
23 750, 810, 872, 937, 1007, 1079, 1155, 1235, 23 750, 810, 872, 937, 1007, 1079, 1155, 1235,
142 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 142 12, 12, 12, 13, 13, 13, 13, 14, 14, 14,
143 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 143 14, 14, 14, 14, 14, 15, 15, 15, 15, 15,
144 15, 15, 15, 15, 144 15, 15, 15, 15,
145 }; 145 };
146 146
147 const uint8_t sdecaytab[4]={ 147 static const uint8_t sdecaytab[4]={
148 0x0f, 0x11, 0x13, 0x15, 148 0x0f, 0x11, 0x13, 0x15,
149 }; 149 };
150 150
151 const uint8_t fdecaytab[4]={ 151 static const uint8_t fdecaytab[4]={
152 0x3f, 0x53, 0x67, 0x7b, 152 0x3f, 0x53, 0x67, 0x7b,
153 }; 153 };
154 154
155 const uint16_t sgaintab[4]= { 155 static const uint16_t sgaintab[4]= {
156 0x540, 0x4d8, 0x478, 0x410, 156 0x540, 0x4d8, 0x478, 0x410,
157 }; 157 };
158 158
159 const uint16_t dbkneetab[4]= { 159 static const uint16_t dbkneetab[4]= {
160 0x000, 0x700, 0x900, 0xb00, 160 0x000, 0x700, 0x900, 0xb00,
161 }; 161 };
162 162
163 const uint16_t floortab[8]= { 163 static const uint16_t floortab[8]= {
164 0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800, 164 0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
165 }; 165 };
166 166
167 const uint16_t fgaintab[8]= { 167 static const uint16_t fgaintab[8]= {
168 0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x400, 168 0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x400,
169 }; 169 };
170 170
171 static const uint8_t bndsz[50]={ 171 static const uint8_t bndsz[50]={
172 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 172 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,