#include "../avcodec.h"


Go to the source code of this file.
Defines | |
| #define | A52_CHANNEL 0 |
| #define | A52_MONO 1 |
| #define | A52_STEREO 2 |
| #define | A52_3F 3 |
| #define | A52_2F1R 4 |
| #define | A52_3F1R 5 |
| #define | A52_2F2R 6 |
| #define | A52_3F2R 7 |
| #define | A52_CHANNEL1 8 |
| #define | A52_CHANNEL2 9 |
| #define | A52_DOLBY 10 |
| #define | A52_CHANNEL_MASK 15 |
| #define | A52_LFE 16 |
| #define | A52_ADJUST_LEVEL 32 |
Typedefs | |
| typedef float | sample_t |
| typedef float | level_t |
| typedef struct a52_state_s | a52_state_t |
Functions | |
| a52_state_t * | a52_init (uint32_t mm_accel) |
| sample_t * | a52_samples (a52_state_t *state) |
| int | a52_syncinfo (uint8_t *buf, int *flags, int *sample_rate, int *bit_rate) |
| int | a52_frame (a52_state_t *state, uint8_t *buf, int *flags, level_t *level, sample_t bias) |
| void | a52_dynrng (a52_state_t *state, level_t(*call)(level_t, void *), void *data) |
| int | a52_block (a52_state_t *state) |
| void | a52_free (a52_state_t *state) |
| #define A52_2F1R 4 |
Definition at line 50 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_upmix(), and mpeg3_ac3_header().
| #define A52_2F2R 6 |
Definition at line 52 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_resample_C(), a52_resample_MMX(), a52_upmix(), and mpeg3_ac3_header().
| #define A52_3F 3 |
Definition at line 49 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_resample_C(), a52_resample_MMX(), a52_upmix(), mpeg3_ac3_header(), and mpeg3audio_doac3().
| #define A52_3F1R 5 |
Definition at line 51 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_upmix(), mpeg3_ac3_header(), and mpeg3audio_doac3().
| #define A52_3F2R 7 |
Definition at line 53 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_resample_C(), a52_resample_MMX(), a52_upmix(), mpeg3_ac3_header(), and mpeg3audio_doac3().
| #define A52_ADJUST_LEVEL 32 |
| #define A52_CHANNEL 0 |
Definition at line 46 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_resample_C(), a52_resample_MMX(), a52_upmix(), and mpeg3_ac3_header().
| #define A52_CHANNEL1 8 |
| #define A52_CHANNEL2 9 |
Definition at line 55 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), and a52_upmix().
| #define A52_CHANNEL_MASK 15 |
Definition at line 57 of file a52.h.
Referenced by a52_block(), a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_upmix(), mpeg3_ac3_header(), and mpeg3audio_doac3().
| #define A52_DOLBY 10 |
Definition at line 56 of file a52.h.
Referenced by a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_frame(), a52_resample_C(), a52_resample_MMX(), a52_syncinfo(), a52_upmix(), and mpeg3_ac3_header().
| #define A52_LFE 16 |
Definition at line 59 of file a52.h.
Referenced by a52_block(), a52_decode_frame(), a52_frame(), a52_resample_C(), a52_resample_MMX(), a52_syncinfo(), mpeg3_ac3_header(), and mpeg3audio_doac3().
| #define A52_MONO 1 |
Definition at line 47 of file a52.h.
Referenced by a52_decode_frame(), a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_resample_C(), a52_resample_MMX(), a52_upmix(), and mpeg3_ac3_header().
| #define A52_STEREO 2 |
Definition at line 48 of file a52.h.
Referenced by a52_decode_frame(), a52_downmix(), a52_downmix_coeff(), a52_downmix_init(), a52_resample_C(), a52_resample_MMX(), a52_upmix(), and mpeg3_ac3_header().
| typedef struct a52_state_s a52_state_t |
| int a52_block | ( | a52_state_t * | state | ) |
Definition at line 551 of file parse.c.
References a52_bit_allocate(), A52_CHANNEL_MASK, a52_downmix(), a52_downmix_coeff(), a52_imdct_256(), a52_imdct_512(), A52_LFE, a52_upmix(), a52_state_s::acmod, a52_state_s::ba, ba_t::bai, a52_state_s::bai, expbap_t::bap, a52_state_s::bias, bitstream_get(), bitstream_get_2(), bndtab, a52_state_s::chincpl, a52_state_s::clev, coeff_get(), coeff_get_coupling(), a52_state_s::cpl_expbap, a52_state_s::cplba, a52_state_s::cplbndstrc, a52_state_s::cplco, a52_state_s::cplendmant, a52_state_s::cplfleak, a52_state_s::cplsleak, a52_state_s::cplstrtbnd, a52_state_s::cplstrtmant, a52_state_s::csnroffst, DELTA_BIT_NEW, DELTA_BIT_NONE, ba_t::deltba, ba_t::deltbae, a52_state_s::downmixed, a52_state_s::dynrng, a52_state_s::dynrngcall, a52_state_s::dynrngdata, a52_state_s::dynrnge, a52_state_s::endmant, expbap_t::exp, EXP_REUSE, a52_state_s::fbw_expbap, a52_state_s::level, a52_state_s::lfe_expbap, a52_state_s::lfeba, a52_state_s::lfeon, MUL_L, a52_state_s::ncplbnd, a52_state_s::output, parse_deltba(), parse_exponents(), a52_state_s::phsflginu, quantizer_set_t::q1_ptr, quantizer_set_t::q2_ptr, quantizer_set_t::q4_ptr, quant(), a52_state_s::rematflg, a52_state_s::samples, samples, scale_factor, a52_state_s::slev, and zero_snr_offsets().
Referenced by a52_decode_init(), and mpeg3audio_doac3().

| void a52_dynrng | ( | a52_state_t * | state, | |
| level_t(*)(level_t, void *) | call, | |||
| void * | data | |||
| ) |
Definition at line 200 of file parse.c.
References a52_state_s::dynrngcall, a52_state_s::dynrngdata, and a52_state_s::dynrnge.
Referenced by mpeg3audio_doac3().
| int a52_frame | ( | a52_state_t * | state, | |
| uint8_t * | buf, | |||
| int * | flags, | |||
| level_t * | level, | |||
| sample_t | bias | |||
| ) |
Definition at line 124 of file parse.c.
References a52_bitstream_set_ptr(), A52_DOLBY, a52_downmix_init(), A52_LFE, a52_state_s::acmod, a52_state_s::ba, a52_state_s::bias, bitstream_get(), a52_state_s::clev, a52_state_s::cplba, DELTA_BIT_NONE, ba_t::deltbae, a52_state_s::dynrng, a52_state_s::dynrngcall, a52_state_s::dynrnge, a52_state_s::fscod, halfrate, a52_state_s::halfrate, a52_state_s::level, LEVEL, LEVEL_3DB, LEVEL_45DB, LEVEL_6DB, a52_state_s::lfeon, MUL_C, NULL, a52_state_s::output, and a52_state_s::slev.
Referenced by a52_decode_init(), and mpeg3audio_doac3().

| void a52_free | ( | a52_state_t * | state | ) |
Definition at line 935 of file parse.c.
References a52_state_s::samples.
Referenced by a52_decode_init(), and mpeg3_delete_ac3().
| a52_state_t* a52_init | ( | uint32_t | mm_accel | ) |
Definition at line 47 of file parse.c.
References a52_imdct_init(), a52_state_s::downmixed, a52_state_s::lfsr_state, memalign, NULL, and a52_state_s::samples.
Referenced by a52_decode_init(), and mpeg3_new_ac3().

| sample_t* a52_samples | ( | a52_state_t * | state | ) |
Definition at line 74 of file parse.c.
References a52_state_s::samples.
Referenced by a52_decode_init(), and mpeg3_new_ac3().
| int a52_syncinfo | ( | uint8_t * | buf, | |
| int * | flags, | |||
| int * | sample_rate, | |||
| int * | bit_rate | |||
| ) |
Definition at line 79 of file parse.c.
References A52_DOLBY, A52_LFE, bitrate, and halfrate.
Referenced by a52_decode_init(), mpeg3_ac3_check(), and mpeg3_ac3_header().
1.5.5