mpegaudio.h File Reference

mpeg audio declarations for both encoder and decoder. More...

#include <stdint.h>
Include dependency graph for mpegaudio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CONFIG_FLOAT   0
 
#define MPA_FRAME_SIZE   1152
 
#define MPA_MAX_CODED_FRAME_SIZE   1792
 
#define MPA_MAX_CHANNELS   2
 
#define SBLIMIT   32 /* number of subbands */
 
#define MPA_STEREO   0
 
#define MPA_JSTEREO   1
 
#define MPA_DUAL   2
 
#define MPA_MONO   3
 
#define FRAC_BITS   23 /* fractional bits for sb_samples and dct */
 
#define WFRAC_BITS   16 /* fractional bits for window */
 
#define IMDCT_SCALAR   1.759
 
#define FRAC_ONE   (1 << FRAC_BITS)
 
#define FIX(a)   ((int)((a) * FRAC_ONE))
 
#define INTFLOAT   int
 

Typedefs

typedef int32_t MPA_INT
 
typedef int16_t OUT_INT
 

Functions

int ff_mpa_l2_select_table (int bitrate, int nb_channels, int freq, int lsf)
 

Detailed Description

mpeg audio declarations for both encoder and decoder.

Definition in file mpegaudio.h.

Macro Definition Documentation

#define CONFIG_FLOAT   0

Definition at line 30 of file mpegaudio.h.

#define FIX (   a)    ((int)((a) * FRAC_ONE))

Definition at line 59 of file mpegaudio.h.

#define FRAC_BITS   23 /* fractional bits for sb_samples and dct */

Definition at line 51 of file mpegaudio.h.

#define FRAC_ONE   (1 << FRAC_BITS)

Definition at line 57 of file mpegaudio.h.

Referenced by decode_init_static().

#define IMDCT_SCALAR   1.759

Definition at line 55 of file mpegaudio.h.

Referenced by ff_init_mpadsp_tabs().

#define INTFLOAT   int

Definition at line 70 of file mpegaudio.h.

#define MPA_DUAL   2

Definition at line 47 of file mpegaudio.h.

#define MPA_FRAME_SIZE   1152

Definition at line 36 of file mpegaudio.h.

Referenced by flush(), and MPA_encode_init().

#define MPA_JSTEREO   1

Definition at line 46 of file mpegaudio.h.

Referenced by mp_decode_layer1(), mp_decode_layer2(), and mp_decode_layer3().

#define MPA_MAX_CHANNELS   2
#define MPA_MAX_CODED_FRAME_SIZE   1792

Definition at line 39 of file mpegaudio.h.

Referenced by flush(), MPA_encode_frame(), and twolame_encode_frame().

#define MPA_MONO   3

Definition at line 48 of file mpegaudio.h.

Referenced by avpriv_mpegaudio_decode_header(), encode_frame(), and mp3_write_xing().

#define MPA_STEREO   0

Definition at line 45 of file mpegaudio.h.

Referenced by encode_frame(), and mp3_write_xing().

#define WFRAC_BITS   16 /* fractional bits for window */

Definition at line 52 of file mpegaudio.h.

Typedef Documentation

typedef int32_t MPA_INT

Definition at line 71 of file mpegaudio.h.

typedef int16_t OUT_INT

Definition at line 72 of file mpegaudio.h.

Function Documentation

int ff_mpa_l2_select_table ( int  bitrate,
int  nb_channels,
int  freq,
int  lsf 
)

Definition at line 31 of file mpegaudio.c.

Referenced by mp_decode_layer2(), and MPA_encode_init().