FFmpeg
|
Go to the source code of this file.
Functions | |
static av_cold void | aacsbr_tableinit (void) |
av_cold void AAC_RENAME() | ff_aac_sbr_init (void) |
Initialize SBR. More... | |
static void | sbr_turnoff (SpectralBandReplication *sbr) |
Places SBR in pure upsampling mode. More... | |
av_cold int AAC_RENAME() | ff_aac_sbr_ctx_init (AACDecContext *ac, SpectralBandReplication *sbr, int id_aac) |
Initialize one SBR context. More... | |
av_cold void AAC_RENAME() | ff_aac_sbr_ctx_close (SpectralBandReplication *sbr) |
Close one SBR context. More... | |
static int | qsort_comparison_function_int16 (const void *a, const void *b) |
static int | in_table_int16 (const int16_t *table, int last_el, int16_t needle) |
static void | sbr_make_f_tablelim (SpectralBandReplication *sbr) |
Limiter Frequency Band Table (14496-3 sp04 p198) More... | |
static unsigned int | read_sbr_header (SpectralBandReplication *sbr, GetBitContext *gb) |
static int | array_min_int16 (const int16_t *array, int nel) |
static int | check_n_master (AVCodecContext *avctx, int n_master, int bs_xover_band) |
static int | sbr_make_f_master (AACDecContext *ac, SpectralBandReplication *sbr, SpectrumParameters *spectrum) |
Master Frequency Band Table (14496-3 sp04 p194) More... | |
static int | sbr_hf_calc_npatches (AACDecContext *ac, SpectralBandReplication *sbr) |
High Frequency Generation - Patch Construction (14496-3 sp04 p216 fig. 4.46) More... | |
static int | sbr_make_f_derived (AACDecContext *ac, SpectralBandReplication *sbr) |
Derived Frequency Band Tables (14496-3 sp04 p197) More... | |
static av_always_inline void | get_bits1_vector (GetBitContext *gb, uint8_t *vec, int elements) |
static int | read_sbr_grid (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, SBRData *ch_data) |
static void | copy_sbr_grid (SBRData *dst, const SBRData *src) |
static void | read_sbr_dtdf (SpectralBandReplication *sbr, GetBitContext *gb, SBRData *ch_data) |
Read how the envelope and noise floor data is delta coded. More... | |
static void | read_sbr_invf (SpectralBandReplication *sbr, GetBitContext *gb, SBRData *ch_data) |
Read inverse filtering data. More... | |
static int | read_sbr_envelope (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, SBRData *ch_data, int ch) |
static int | read_sbr_noise (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, SBRData *ch_data, int ch) |
static void | read_sbr_extension (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int bs_extension_id, int *num_bits_left) |
static int | read_sbr_single_channel_element (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb) |
static int | read_sbr_channel_pair_element (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb) |
static unsigned int | read_sbr_data (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) |
static void | sbr_reset (AACDecContext *ac, SpectralBandReplication *sbr) |
int AAC_RENAME() | ff_decode_sbr_extension (AACDecContext *ac, SpectralBandReplication *sbr, GetBitContext *gb_host, int crc, int cnt, int id_aac) |
Decode Spectral Band Replication extension data; reference: table 4.55. More... | |
static void | sbr_qmf_analysis (AVFloatDSPContext *dsp, AVTXContext *mdct, av_tx_fn mdct_fn, SBRDSPContext *sbrdsp, const INTFLOAT *in, INTFLOAT *x, INTFLOAT z[320], INTFLOAT W[2][32][32][2], int buf_idx) |
Analysis QMF Bank (14496-3 sp04 p206) More... | |
static void | sbr_qmf_synthesis (AVTXContext *mdct, av_tx_fn mdct_fn, SBRDSPContext *sbrdsp, AVFloatDSPContext *dsp, INTFLOAT *out, INTFLOAT X[2][38][64], INTFLOAT mdct_buf[2][64], INTFLOAT *v0, int *v_off, const unsigned int div) |
Synthesis QMF Bank (14496-3 sp04 p206) and Downsampled Synthesis QMF Bank (14496-3 sp04 p206) More... | |
static int | sbr_lf_gen (SpectralBandReplication *sbr, INTFLOAT X_low[32][40][2], const INTFLOAT W[2][32][32][2], int buf_idx) |
Generate the subband filtered lowband. More... | |
static int | sbr_hf_gen (AACDecContext *ac, SpectralBandReplication *sbr, INTFLOAT X_high[64][40][2], const INTFLOAT X_low[32][40][2], const INTFLOAT(*alpha0)[2], const INTFLOAT(*alpha1)[2], const INTFLOAT bw_array[5], const uint8_t *t_env, int bs_num_env) |
High Frequency Generator (14496-3 sp04 p215) More... | |
static int | sbr_x_gen (SpectralBandReplication *sbr, INTFLOAT X[2][38][64], const INTFLOAT Y0[38][64][2], const INTFLOAT Y1[38][64][2], const INTFLOAT X_low[32][40][2], int ch) |
Generate the subband filtered lowband. More... | |
static int | sbr_mapping (AACDecContext *ac, SpectralBandReplication *sbr, SBRData *ch_data, int e_a[2]) |
High Frequency Adjustment (14496-3 sp04 p217) and Mapping (14496-3 sp04 p217) More... | |
static void | sbr_env_estimate (AAC_FLOAT(*e_curr)[48], INTFLOAT X_high[64][40][2], SpectralBandReplication *sbr, SBRData *ch_data) |
Estimation of current envelope (14496-3 sp04 p218) More... | |
void AAC_RENAME() | ff_sbr_apply (AACDecContext *ac, SpectralBandReplication *sbr, int id_aac, INTFLOAT *L, INTFLOAT *R) |
Apply one SBR element to one AAC element. More... | |
static void | aacsbr_func_ptr_init (AACSBRContext *c) |
Variables | |
static const int8_t | ceil_log2 [] |
ceil(log2(index+1)) More... | |
AAC Spectral Band Replication decoding functions
Definition in file aacsbr_template.c.
|
static |
Definition at line 40 of file aacsbr_template.c.
Referenced by ff_aac_sbr_init().
av_cold void AAC_RENAME() ff_aac_sbr_init | ( | void | ) |
Initialize SBR.
Definition at line 48 of file aacsbr_template.c.
Referenced by aac_static_table_init().
|
static |
Places SBR in pure upsampling mode.
Definition at line 56 of file aacsbr_template.c.
Referenced by ff_aac_sbr_ctx_init(), ff_decode_sbr_extension(), ff_sbr_apply(), read_sbr_data(), sbr_mapping(), and sbr_reset().
av_cold int AAC_RENAME() ff_aac_sbr_ctx_init | ( | AACDecContext * | ac, |
SpectralBandReplication * | sbr, | ||
int | id_aac | ||
) |
Initialize one SBR context.
Definition at line 67 of file aacsbr_template.c.
Referenced by che_configure().
av_cold void AAC_RENAME() ff_aac_sbr_ctx_close | ( | SpectralBandReplication * | sbr | ) |
Close one SBR context.
Definition at line 105 of file aacsbr_template.c.
Referenced by aac_decode_close(), and che_configure().
|
static |
Definition at line 111 of file aacsbr_template.c.
Referenced by sbr_make_f_master(), and sbr_make_f_tablelim().
Definition at line 116 of file aacsbr_template.c.
Referenced by sbr_make_f_tablelim().
|
static |
Limiter Frequency Band Table (14496-3 sp04 p198)
Definition at line 126 of file aacsbr_template.c.
Referenced by read_sbr_header(), and sbr_make_f_derived().
|
static |
Definition at line 177 of file aacsbr_template.c.
Referenced by ff_decode_sbr_extension().
Definition at line 232 of file aacsbr_template.c.
Referenced by sbr_make_f_master().
|
static |
Definition at line 240 of file aacsbr_template.c.
Referenced by sbr_make_f_master().
|
static |
Master Frequency Band Table (14496-3 sp04 p194)
Definition at line 257 of file aacsbr_template.c.
Referenced by sbr_reset().
|
static |
High Frequency Generation - Patch Construction (14496-3 sp04 p216 fig. 4.46)
Definition at line 477 of file aacsbr_template.c.
Referenced by sbr_make_f_derived().
|
static |
Derived Frequency Band Tables (14496-3 sp04 p197)
Definition at line 535 of file aacsbr_template.c.
Referenced by sbr_reset().
|
static |
Definition at line 606 of file aacsbr_template.c.
Referenced by read_sbr_channel_pair_element(), read_sbr_dtdf(), read_sbr_grid(), and read_sbr_single_channel_element().
|
static |
Definition at line 620 of file aacsbr_template.c.
Referenced by read_sbr_channel_pair_element(), and read_sbr_single_channel_element().
Definition at line 767 of file aacsbr_template.c.
Referenced by read_sbr_channel_pair_element().
|
static |
Read how the envelope and noise floor data is delta coded.
Definition at line 785 of file aacsbr_template.c.
Referenced by read_sbr_channel_pair_element(), and read_sbr_single_channel_element().
|
static |
Read inverse filtering data.
Definition at line 793 of file aacsbr_template.c.
Referenced by read_sbr_channel_pair_element(), and read_sbr_single_channel_element().
|
static |
Definition at line 803 of file aacsbr_template.c.
Referenced by read_sbr_channel_pair_element(), and read_sbr_single_channel_element().
|
static |
Definition at line 883 of file aacsbr_template.c.
Referenced by read_sbr_channel_pair_element(), and read_sbr_single_channel_element().
|
static |
Definition at line 925 of file aacsbr_template.c.
Referenced by read_sbr_data().
|
static |
Definition at line 952 of file aacsbr_template.c.
Referenced by read_sbr_data().
|
static |
Definition at line 976 of file aacsbr_template.c.
Referenced by read_sbr_data().
|
static |
Definition at line 1028 of file aacsbr_template.c.
Referenced by ff_decode_sbr_extension().
|
static |
Definition at line 1072 of file aacsbr_template.c.
Referenced by ff_decode_sbr_extension().
int AAC_RENAME() ff_decode_sbr_extension | ( | AACDecContext * | ac, |
SpectralBandReplication * | sbr, | ||
GetBitContext * | gb_host, | ||
int | crc, | ||
int | cnt, | ||
int | id_aac | ||
) |
Decode Spectral Band Replication extension data; reference: table 4.55.
Decode one SBR element.
crc | flag indicating the presence of CRC checksum |
cnt | length of TYPE_FIL syntactic element in bytes |
Definition at line 1093 of file aacsbr_template.c.
Referenced by decode_extension_payload().
|
static |
Analysis QMF Bank (14496-3 sp04 p206)
x | pointer to the beginning of the first sample window |
W | array of complex-valued samples split into subbands |
Definition at line 1150 of file aacsbr_template.c.
Referenced by ff_sbr_apply().
|
static |
Synthesis QMF Bank (14496-3 sp04 p206) and Downsampled Synthesis QMF Bank (14496-3 sp04 p206)
Definition at line 1194 of file aacsbr_template.c.
Referenced by ff_sbr_apply().
|
static |
Generate the subband filtered lowband.
Definition at line 1246 of file aacsbr_template.c.
Referenced by aacsbr_func_ptr_init().
|
static |
High Frequency Generator (14496-3 sp04 p215)
Definition at line 1271 of file aacsbr_template.c.
Referenced by ff_sbr_apply().
|
static |
Generate the subband filtered lowband.
Definition at line 1306 of file aacsbr_template.c.
Referenced by aacsbr_func_ptr_init().
|
static |
High Frequency Adjustment (14496-3 sp04 p217) and Mapping (14496-3 sp04 p217)
Definition at line 1345 of file aacsbr_template.c.
Referenced by ff_sbr_apply().
|
static |
Estimation of current envelope (14496-3 sp04 p218)
Definition at line 1400 of file aacsbr_template.c.
Referenced by ff_sbr_apply().
void AAC_RENAME() ff_sbr_apply | ( | AACDecContext * | ac, |
SpectralBandReplication * | sbr, | ||
int | id_aac, | ||
INTFLOAT * | L, | ||
INTFLOAT * | R | ||
) |
Apply one SBR element to one AAC element.
Definition at line 1459 of file aacsbr_template.c.
Referenced by spectral_to_sample().
|
static |
Definition at line 1553 of file aacsbr_template.c.
Referenced by ff_aac_sbr_ctx_init().
|
static |
ceil(log2(index+1))
Definition at line 616 of file aacsbr_template.c.
Referenced by read_sbr_grid().