Revision 6107fa87 libavcodec/ac3tab.h

View differences:

libavcodec/ac3tab.h
1 1
/* tables taken directly from AC3 spec */
2 2

  
3
/* possible frequencies */
4
const UINT16 ac3_freqs[3] = { 48000, 44100, 32000 };
5

  
3 6
/* possible bitrates */
4
static const UINT16 bitratetab[19] = {
7
const UINT16 ac3_bitratetab[19] = {
5 8
    32, 40, 48, 56, 64, 80, 96, 112, 128, 
6 9
    160, 192, 224, 256, 320, 384, 448, 512, 576, 640 
7 10
};
......
9 12
/* AC3 MDCT window */
10 13

  
11 14
/* MDCT window */
12
static const INT16 ac3_window[256]= {
15
const INT16 ac3_window[256] = {
13 16
    4,    7,   12,   16,   21,   28,   34,   42,
14 17
   51,   61,   72,   84,   97,  111,  127,  145,
15 18
  164,  184,  207,  231,  257,  285,  315,  347,
......
138 141
    15, 15, 15, 15,
139 142
};
140 143

  
141
static const UINT8 sdecaytab[4]={ 
144
const UINT8 sdecaytab[4]={ 
142 145
    0x0f, 0x11, 0x13, 0x15,
143 146
};
144 147

  
145
static const UINT8 fdecaytab[4]={ 
148
const UINT8 fdecaytab[4]={ 
146 149
    0x3f, 0x53, 0x67, 0x7b, 
147 150
};
148 151

  
149
static const UINT16 sgaintab[4]= { 
152
const UINT16 sgaintab[4]= { 
150 153
    0x540, 0x4d8, 0x478, 0x410,
151 154
};
152 155

  
153
static const UINT16 dbkneetab[4]= { 
156
const UINT16 dbkneetab[4]= { 
154 157
    0x000, 0x700, 0x900, 0xb00,
155 158
};
156 159

  
157
static const UINT16 floortab[8]= { 
160
const UINT16 floortab[8]= { 
158 161
    0x2f0, 0x2b0, 0x270, 0x230, 0x1f0, 0x170, 0x0f0, 0xf800,
159 162
};
160 163

  
161
static const UINT16 fgaintab[8]= {
164
const UINT16 fgaintab[8]= {
162 165
    0x080, 0x100, 0x180, 0x200, 0x280, 0x300, 0x380, 0x400,
163 166
};
164 167

  

Also available in: Unified diff