2001-09-16 00:42:25 +02:00
|
|
|
/* mpeg audio declarations for both encoder and decoder */
|
|
|
|
|
|
|
|
/* max frame size, in samples */
|
|
|
|
#define MPA_FRAME_SIZE 1152
|
2001-07-22 16:18:56 +02:00
|
|
|
|
|
|
|
/* max compressed frame size */
|
2001-09-16 00:42:25 +02:00
|
|
|
#define MPA_MAX_CODED_FRAME_SIZE 1792
|
2001-07-22 16:18:56 +02:00
|
|
|
|
|
|
|
#define MPA_MAX_CHANNELS 2
|
|
|
|
|
|
|
|
#define SBLIMIT 32 /* number of subbands */
|
|
|
|
|
2001-09-16 00:42:25 +02:00
|
|
|
#define MPA_STEREO 0
|
|
|
|
#define MPA_JSTEREO 1
|
|
|
|
#define MPA_DUAL 2
|
|
|
|
#define MPA_MONO 3
|
|
|
|
|
|
|
|
int l2_select_table(int bitrate, int nb_channels, int freq, int lsf);
|
2001-07-22 16:18:56 +02:00
|
|
|
|
2001-09-16 00:42:25 +02:00
|
|
|
const UINT16 mpa_bitrate_tab[2][3][15];
|
|
|
|
const UINT16 mpa_freq_tab[3];
|
|
|
|
extern const unsigned char *alloc_tables[5];
|
|
|
|
extern const double enwindow[512];
|
|
|
|
extern const int sblimit_table[5];
|
|
|
|
extern const int quant_steps[17];
|
|
|
|
extern const int quant_bits[17];
|
|
|
|
extern const INT32 mpa_enwindow[257];
|