FFmpeg
Loading...
Searching...
No Matches
mpegaudio.h File Reference

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

#include <stdint.h>
#include "libavutil/internal.h"

Go to the source code of this file.

Macros

#define USE_FLOATS   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)
 
#define INTFLOAT   int
 
#define SUINTFLOAT   SUINT
 

Typedefs

typedef int16_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

◆ USE_FLOATS

#define USE_FLOATS   0

Definition at line 30 of file mpegaudio.h.

◆ MPA_FRAME_SIZE

#define MPA_FRAME_SIZE   1152

Definition at line 37 of file mpegaudio.h.

Referenced by mpa_encode_init(), and qdm2_decode_init().

◆ MPA_MAX_CODED_FRAME_SIZE

#define MPA_MAX_CODED_FRAME_SIZE   1792

Definition at line 40 of file mpegaudio.h.

Referenced by mp3_read_header(), and twolame_encode_frame().

◆ MPA_MAX_CHANNELS

#define MPA_MAX_CHANNELS   2

◆ SBLIMIT

◆ MPA_STEREO

#define MPA_STEREO   0

Definition at line 46 of file mpegaudio.h.

Referenced by encode_frame(), and mp3_write_xing().

◆ MPA_JSTEREO

#define MPA_JSTEREO   1

Definition at line 47 of file mpegaudio.h.

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

◆ MPA_DUAL

#define MPA_DUAL   2

Definition at line 48 of file mpegaudio.h.

◆ MPA_MONO

#define MPA_MONO   3

Definition at line 49 of file mpegaudio.h.

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

◆ FRAC_BITS

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

Definition at line 52 of file mpegaudio.h.

◆ WFRAC_BITS

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

Definition at line 53 of file mpegaudio.h.

Referenced by mpa_encode_init().

◆ IMDCT_SCALAR

#define IMDCT_SCALAR   1.759

◆ FRAC_ONE

#define FRAC_ONE   (1 << FRAC_BITS)

Definition at line 58 of file mpegaudio.h.

Referenced by decode_init_static(), gen_image(), int_cos(), int_cos(), and main().

◆ FIX

#define FIX ( a)
Value:
((int)((a) * FRAC_ONE))
int a
#define FRAC_ONE
Definition mpegaudio.h:58

Definition at line 60 of file mpegaudio.h.

◆ INTFLOAT

#define INTFLOAT   int

Definition at line 68 of file mpegaudio.h.

◆ SUINTFLOAT

#define SUINTFLOAT   SUINT

Definition at line 69 of file mpegaudio.h.

Typedef Documentation

◆ MPA_INT

typedef int16_t MPA_INT

Definition at line 70 of file mpegaudio.h.

◆ OUT_INT

typedef int16_t OUT_INT

Definition at line 71 of file mpegaudio.h.

Function Documentation

◆ ff_mpa_l2_select_table()

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().