#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
Go to the source code of this file.
Data Structures | |
struct | GranuleDef |
struct | MPADecodeHeader |
struct | MPADecodeContext |
struct | HuffTable |
Defines | |
#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 SAMPLE_FMT_S16 |
#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, int32_t sb_samples[SBLIMIT]) |
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 33 of file mpegaudio.h.
#define EXTRABYTES 24 |
#define FIX | ( | a | ) | ((int)((a) * FRAC_ONE)) |
Definition at line 66 of file mpegaudio.h.
#define FRAC_BITS 15 |
Definition at line 60 of file mpegaudio.h.
#define FRAC_ONE (1 << FRAC_BITS) |
Definition at line 64 of file mpegaudio.h.
Referenced by decode_init(), gen_image(), int_cos(), and main().
#define MP3_MASK 0xFFFE0CCF |
Definition at line 54 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 111 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 asf_read_header(), MPA_encode_frame(), MPA_encode_init(), mpc_synth(), and qdm2_synthesis_filter().
#define MPA_JSTEREO 1 |
Definition at line 46 of file mpegaudio.h.
Referenced by mp_decode_layer1(), and mp_decode_layer2().
#define MPA_MAX_CHANNELS 2 |
Definition at line 41 of file mpegaudio.h.
Referenced by compute_bit_allocation(), mp_decode_layer1(), mp_decode_layer2(), MPA_encode_frame(), mpc_synth(), qdm2_decode_init(), qdm2_synthesis_filter(), and synthfilt_build_sb_samples().
#define MPA_MAX_CODED_FRAME_SIZE 1792 |
#define MPA_MONO 3 |
Definition at line 48 of file mpegaudio.h.
Referenced by encode_frame(), and ff_mpegaudio_decode_header().
#define MPA_STEREO 0 |
#define OUT_FMT 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 43 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 61 of file mpegaudio.h.
Referenced by ff_mpa_synth_init(), and MPA_encode_init().
typedef int16_t MPA_INT |
Definition at line 83 of file mpegaudio.h.
typedef int16_t OUT_INT |
Definition at line 75 of file mpegaudio.h.
static int ff_mpa_check_header | ( | uint32_t | header | ) | [inline, static] |
Definition at line 167 of file mpegaudio.h.
Referenced by decode_frame(), ff_mpa_decode_header(), mp3_header_compress(), and mp3_header_decompress().
int ff_mpa_decode_header | ( | AVCodecContext * | avctx, | |
uint32_t | head, | |||
int * | sample_rate, | |||
int * | channels, | |||
int * | frame_size, | |||
int * | bitrate | |||
) |
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, | |||
int32_t | sb_samples[SBLIMIT] | |||
) |
Definition at line 801 of file mpegaudiodec.c.
Referenced by mp_decode_frame(), mpc_synth(), and qdm2_synthesis_filter().
void ff_mpa_synth_init | ( | MPA_INT * | window | ) |
Definition at line 779 of file mpegaudiodec.c.
Referenced by decode_init(), ff_mpc_init(), and qdm2_init().
Definition at line 98 of file mpegaudiodec.c.
Referenced by decode_init(), ff_mpc_init(), mp_decode_frame(), mpc_synth(), qdm2_init(), and qdm2_synthesis_filter().