Statistics
| Branch: | Revision:

ffmpeg / libavcodec / mpegaudio.h @ 68ca24e6

History | View | Annotate | Download (825 Bytes)

1 983e3246 Michael Niedermayer
/**
2
 * @file mpegaudio.h
3
 * mpeg audio declarations for both encoder and decoder.
4
 */
5 2456e28d Fabrice Bellard
6
/* max frame size, in samples */
7
#define MPA_FRAME_SIZE 1152 
8 de6d9b64 Fabrice Bellard
9
/* max compressed frame size */
10 2456e28d Fabrice Bellard
#define MPA_MAX_CODED_FRAME_SIZE 1792
11 de6d9b64 Fabrice Bellard
12
#define MPA_MAX_CHANNELS 2
13
14
#define SBLIMIT 32 /* number of subbands */
15
16 2456e28d Fabrice Bellard
#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);
22 962d6ae6 Fabrice Bellard
int mpa_decode_header(AVCodecContext *avctx, uint32_t head);
23 de6d9b64 Fabrice Bellard
24 0c1a9eda Zdenek Kabelac
extern const uint16_t mpa_bitrate_tab[2][3][15];
25
extern const uint16_t mpa_freq_tab[3];
26 2456e28d Fabrice Bellard
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];
31 0c1a9eda Zdenek Kabelac
extern const int32_t mpa_enwindow[257];