1106
|
1 /**
|
|
2 * @file mpegaudio.h
|
|
3 * mpeg audio declarations for both encoder and decoder.
|
|
4 */
|
84
|
5
|
|
6 /* max frame size, in samples */
|
|
7 #define MPA_FRAME_SIZE 1152
|
0
|
8
|
|
9 /* max compressed frame size */
|
84
|
10 #define MPA_MAX_CODED_FRAME_SIZE 1792
|
0
|
11
|
|
12 #define MPA_MAX_CHANNELS 2
|
|
13
|
|
14 #define SBLIMIT 32 /* number of subbands */
|
84
|
15
|
|
16 #define MPA_STEREO 0
|
|
17 #define MPA_JSTEREO 1
|
|
18 #define MPA_DUAL 2
|
|
19 #define MPA_MONO 3
|
|
20
|
|
21 int l2_select_table(int bitrate, int nb_channels, int freq, int lsf);
|
1612
|
22 int mpa_decode_header(AVCodecContext *avctx, uint32_t head);
|
0
|
23
|
1064
|
24 extern const uint16_t mpa_bitrate_tab[2][3][15];
|
|
25 extern const uint16_t mpa_freq_tab[3];
|
84
|
26 extern const unsigned char *alloc_tables[5];
|
|
27 extern const double enwindow[512];
|
|
28 extern const int sblimit_table[5];
|
|
29 extern const int quant_steps[17];
|
|
30 extern const int quant_bits[17];
|
1064
|
31 extern const int32_t mpa_enwindow[257];
|