#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "fft.h"
Go to the source code of this file.
Data Structures | |
struct | GranuleDef |
struct | MPADecodeHeader |
struct | MPADecodeContext |
struct | HuffTable |
Defines | |
#define | CONFIG_FLOAT 0 |
#define | CONFIG_AUDIO_NONSHORT 0 |
#define | MPA_FRAME_SIZE 1152 |
#define | MPA_MAX_CODED_FRAME_SIZE 1792 |
#define | MPA_MAX_CHANNELS 2 |
#define | SBLIMIT 32 |
#define | MPA_STEREO 0 |
#define | MPA_JSTEREO 1 |
#define | MPA_DUAL 2 |
#define | MPA_MONO 3 |
#define | SAME_HEADER_MASK (0xffe00000 | (3 << 17) | (0xf << 12) | (3 << 10) | (3 << 19)) |
#define | MP3_MASK 0xFFFE0CCF |
#define | FRAC_BITS 15 |
#define | WFRAC_BITS 14 |
#define | FRAC_ONE (1 << FRAC_BITS) |
#define | FIX(a) ((int)((a) * FRAC_ONE)) |
#define | OUT_MAX INT16_MAX |
#define | OUT_MIN INT16_MIN |
#define | OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15) |
#define | OUT_FMT AV_SAMPLE_FMT_S16 |
#define | INTFLOAT int |
#define | BACKSTEP_SIZE 512 |
#define | EXTRABYTES 24 |
#define | MPA_DECODE_HEADER |
Typedefs | |
typedef int16_t | OUT_INT |
typedef int16_t | MPA_INT |
Functions | |
int | ff_mpa_l2_select_table (int bitrate, int nb_channels, int freq, int lsf) |
int | ff_mpa_decode_header (AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate) |
void | ff_mpa_synth_init (MPA_INT *window) |
void | ff_mpa_synth_filter (MPA_INT *synth_buf_ptr, int *synth_buf_offset, MPA_INT *window, int *dither_state, OUT_INT *samples, int incr, INTFLOAT sb_samples[SBLIMIT]) |
void | ff_mpa_synth_init_float (MPA_INT *window) |
void | ff_mpa_synth_filter_float (MPADecodeContext *s, MPA_INT *synth_buf_ptr, int *synth_buf_offset, MPA_INT *window, int *dither_state, OUT_INT *samples, int incr, INTFLOAT sb_samples[SBLIMIT]) |
void | ff_mpegaudiodec_init_mmx (MPADecodeContext *s) |
void | ff_mpegaudiodec_init_altivec (MPADecodeContext *s) |
static int | ff_mpa_check_header (uint32_t header) |
Variables | |
MPA_INT | ff_mpa_synth_window [] |
Definition in file mpegaudio.h.
#define BACKSTEP_SIZE 512 |
#define CONFIG_AUDIO_NONSHORT 0 |
Definition at line 38 of file mpegaudio.h.
#define CONFIG_FLOAT 0 |
#define EXTRABYTES 24 |
#define FIX | ( | a | ) | ((int)((a) * FRAC_ONE)) |
Definition at line 71 of file mpegaudio.h.
#define FRAC_BITS 15 |
Definition at line 65 of file mpegaudio.h.
#define FRAC_ONE (1 << FRAC_BITS) |
Definition at line 69 of file mpegaudio.h.
Referenced by decode_init(), gen_image(), int_cos(), and main().
#define INTFLOAT int |
Definition at line 94 of file mpegaudio.h.
Referenced by compute_imdct(), compute_stereo(), dct32(), decode_init(), ff_mpa_synth_init_TMPL(), imdct12(), imdct36(), and reorder_block().
#define MP3_MASK 0xFFFE0CCF |
Definition at line 59 of file mpegaudio.h.
Referenced by mp3_header_compress(), and mp3_header_decompress().
#define MPA_DECODE_HEADER |
Value:
int frame_size; \ int error_protection; \ int layer; \ int sample_rate; \ int sample_rate_index; /* between 0 and 8 */ \ int bit_rate; \ int nb_channels; \ int mode; \ int mode_ext; \ int lsf;
Definition at line 124 of file mpegaudio.h.
#define MPA_DUAL 2 |
Definition at line 52 of file mpegaudio.h.
#define MPA_FRAME_SIZE 1152 |
Definition at line 41 of file mpegaudio.h.
Referenced by asf_read_stream_properties(), MPA_encode_init(), mpc_synth(), and qdm2_synthesis_filter().
#define MPA_JSTEREO 1 |
Definition at line 51 of file mpegaudio.h.
Referenced by mp_decode_layer1(), and mp_decode_layer2().
#define MPA_MAX_CHANNELS 2 |
Definition at line 46 of file mpegaudio.h.
Referenced by compute_bit_allocation(), mp_decode_layer1(), mp_decode_layer2(), MPA_encode_frame(), mpc_synth(), qdm2_synthesis_filter(), and synthfilt_build_sb_samples().
#define MPA_MAX_CODED_FRAME_SIZE 1792 |
#define MPA_MONO 3 |
Definition at line 53 of file mpegaudio.h.
Referenced by encode_frame(), and ff_mpegaudio_decode_header().
#define MPA_STEREO 0 |
#define OUT_FMT AV_SAMPLE_FMT_S16 |
#define OUT_MAX INT16_MAX |
#define OUT_MIN INT16_MIN |
#define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 15) |
#define SAME_HEADER_MASK (0xffe00000 | (3 << 17) | (0xf << 12) | (3 << 10) | (3 << 19)) |
#define SBLIMIT 32 |
Definition at line 48 of file mpegaudio.h.
Referenced by compute_antialias_float(), compute_antialias_integer(), compute_imdct(), imdct36(), mp_decode_layer1(), mp_decode_layer2(), MPA_encode_frame(), and qdm2_synthesis_filter().
#define WFRAC_BITS 14 |
Definition at line 66 of file mpegaudio.h.
Referenced by ff_mpa_synth_init_TMPL(), and MPA_encode_init().
typedef int16_t MPA_INT |
Definition at line 95 of file mpegaudio.h.
typedef int16_t OUT_INT |
Definition at line 83 of file mpegaudio.h.
static int ff_mpa_check_header | ( | uint32_t | header | ) | [inline, static] |
Definition at line 194 of file mpegaudio.h.
Referenced by decode_frame(), ff_mpa_decode_header(), mp3_header_compress(), mp3_header_decompress(), and mp3_parse_vbr_tags().
int ff_mpa_decode_header | ( | AVCodecContext * | avctx, | |
uint32_t | head, | |||
int * | sample_rate, | |||
int * | channels, | |||
int * | frame_size, | |||
int * | bitrate | |||
) |
Definition at line 44 of file mpegaudio_parser.c.
Referenced by mp3_read_probe(), and mpegaudio_parse().
int ff_mpa_l2_select_table | ( | int | bitrate, | |
int | nb_channels, | |||
int | freq, | |||
int | lsf | |||
) |
void ff_mpa_synth_filter | ( | MPA_INT * | synth_buf_ptr, | |
int * | synth_buf_offset, | |||
MPA_INT * | window, | |||
int * | dither_state, | |||
OUT_INT * | samples, | |||
int | incr, | |||
INTFLOAT | sb_samples[SBLIMIT] | |||
) |
Definition at line 705 of file mpegaudiodec.c.
Referenced by mp_decode_frame(), mpc_synth(), and qdm2_synthesis_filter().
void ff_mpa_synth_filter_float | ( | MPADecodeContext * | s, | |
MPA_INT * | synth_buf_ptr, | |||
int * | synth_buf_offset, | |||
MPA_INT * | window, | |||
int * | dither_state, | |||
OUT_INT * | samples, | |||
int | incr, | |||
INTFLOAT | sb_samples[SBLIMIT] | |||
) |
void ff_mpa_synth_init | ( | MPA_INT * | window | ) |
Referenced by decode_init(), ff_mpc_init(), and qdm2_init().
void ff_mpa_synth_init_float | ( | MPA_INT * | window | ) |
void ff_mpegaudiodec_init_altivec | ( | MPADecodeContext * | s | ) |
void ff_mpegaudiodec_init_mmx | ( | MPADecodeContext * | s | ) |
Referenced by decode_init(), ff_mpc_init(), mp_decode_frame(), mpc_synth(), qdm2_init(), and qdm2_synthesis_filter().