68 for(ch = 0; ch < 2; ch++){
71 mul = (
mpc_CC+1)[bands[i].res[ch]] *
mpc_SCF[bands[i].scf_idx[ch][0] & 0xFF];
74 mul = (
mpc_CC+1)[bands[i].res[ch]] *
mpc_SCF[bands[i].scf_idx[ch][1] & 0xFF];
77 mul = (
mpc_CC+1)[bands[i].res[ch]] *
mpc_SCF[bands[i].scf_idx[ch][2] & 0xFF];
int32_t sb_samples[MPA_MAX_CHANNELS][36][SBLIMIT]
void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, int16_t **out, int channels)
MPA_INT synth_buf[MPA_MAX_CHANNELS][512 *2]
int32_t ff_mpa_synth_window_fixed[]
static const float mpc_CC[18+1]
Macro definitions for various function/variable attributes.
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_mpa_synth_filter_fixed(MPADSPContext *s, int32_t *synth_buf_ptr, int *synth_buf_offset, int32_t *window, int *dither_state, int16_t *samples, ptrdiff_t incr, int32_t *sb_samples)
static const float mpc_SCF[256]
static float mul(float src0, float src1)
Libavcodec external API header.
Musepack decoder MPEG Audio Layer 1/2 -like codec with frames of 1152 samples divided into 32 subband...
static const float bands[]
static void mpc_synth(MPCContext *c, int16_t **out, int channels)
Process decoded Musepack data and produce PCM.
mpeg audio declarations for both encoder and decoder.
int synth_buf_offset[MPA_MAX_CHANNELS]
Subband structure - hold all variables for each subband.