29 #ifndef AVCODEC_AACSBR_H 30 #define AVCODEC_AACSBR_H 36 #define ENVELOPE_ADJUSTMENT_OFFSET 2 37 #define NOISE_FLOOR_OFFSET 6 70 { 60, 60, 24, 24, 31, 31, 12, 12, 31, 12 };
72 #define SBR_INIT_VLC_STATIC(num, size) \ 73 INIT_VLC_STATIC(&vlc_sbr[num], 9, sbr_tmp[num].table_size / sbr_tmp[num].elem_size, \ 74 sbr_tmp[num].sbr_bits , 1, 1, \ 75 sbr_tmp[num].sbr_codes, sbr_tmp[num].elem_size, sbr_tmp[num].elem_size, \ 78 #define SBR_VLC_ROW(name) \ 79 { name ## _codes, name ## _bits, sizeof(name ## _codes), sizeof(name ## _codes[0]) } static const int8_t vlc_sbr_lav[10]
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
void ff_aacsbr_func_ptr_init_mips(AACSBRContext *c)
bitstream reader API header.
void AAC_RENAME() ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, INTFLOAT *L, INTFLOAT *R)
Apply one SBR element to one AAC element.
Spectral Band Replication definitions and structures.
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
int AAC_RENAME() ff_decode_sbr_extension(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int crc, int cnt, int id_aac)
Decode one SBR element.
void AAC_RENAME() ff_aac_sbr_ctx_close(SpectralBandReplication *sbr)
Close one SBR context.
AAC definitions and structures.
void AAC_RENAME() ff_aac_sbr_init(void)
Initialize SBR.
void AAC_RENAME() ff_aac_sbr_ctx_init(AACContext *ac, SpectralBandReplication *sbr, int id_aac)
Initialize one SBR context.
aacsbr functions pointers
Spectral Band Replication.