annotate mpegaudio.h @ 1797:fac680cf3008 libavcodec

* gotta setup coded_frame for encoding. avcodec.h says that for decoding lavc is supposed to set it up as well and I don't think I see any reason not to.
author romansh
date Tue, 10 Feb 2004 20:48:09 +0000
parents 0d2b59cf9f45
children 021dc26e760f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1106
1e39f273ecd6 per file doxy
michaelni
parents: 1064
diff changeset
1 /**
1e39f273ecd6 per file doxy
michaelni
parents: 1064
diff changeset
2 * @file mpegaudio.h
1e39f273ecd6 per file doxy
michaelni
parents: 1064
diff changeset
3 * mpeg audio declarations for both encoder and decoder.
1e39f273ecd6 per file doxy
michaelni
parents: 1064
diff changeset
4 */
84
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
5
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
6 /* max frame size, in samples */
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
7 #define MPA_FRAME_SIZE 1152
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
8
986e461dc072 Initial revision
glantau
parents:
diff changeset
9 /* max compressed frame size */
84
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
10 #define MPA_MAX_CODED_FRAME_SIZE 1792
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
11
986e461dc072 Initial revision
glantau
parents:
diff changeset
12 #define MPA_MAX_CHANNELS 2
986e461dc072 Initial revision
glantau
parents:
diff changeset
13
986e461dc072 Initial revision
glantau
parents:
diff changeset
14 #define SBLIMIT 32 /* number of subbands */
84
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
15
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
16 #define MPA_STEREO 0
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
17 #define MPA_JSTEREO 1
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
18 #define MPA_DUAL 2
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
19 #define MPA_MONO 3
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
20
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
21 int l2_select_table(int bitrate, int nb_channels, int freq, int lsf);
1612
0d2b59cf9f45 exported mpa_decode_header for new parser API
bellard
parents: 1106
diff changeset
22 int mpa_decode_header(AVCodecContext *avctx, uint32_t head);
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
23
1064
b32afefe7d33 * UINTX -> uintx_t INTX -> intx_t
kabi
parents: 472
diff changeset
24 extern const uint16_t mpa_bitrate_tab[2][3][15];
b32afefe7d33 * UINTX -> uintx_t INTX -> intx_t
kabi
parents: 472
diff changeset
25 extern const uint16_t mpa_freq_tab[3];
84
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
26 extern const unsigned char *alloc_tables[5];
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
27 extern const double enwindow[512];
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
28 extern const int sblimit_table[5];
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
29 extern const int quant_steps[17];
608c7f964bca merged code and tables between encoder and decoder
glantau
parents: 64
diff changeset
30 extern const int quant_bits[17];
1064
b32afefe7d33 * UINTX -> uintx_t INTX -> intx_t
kabi
parents: 472
diff changeset
31 extern const int32_t mpa_enwindow[257];