Go to the documentation of this file.
47 c->synth_buf[ch], &(
c->synth_buf_offset[ch]),
50 c->sb_samples[ch][
i]);
64 memset(
c->sb_samples, 0,
sizeof(
c->sb_samples));
67 for(ch = 0; ch < 2; ch++){
72 c->sb_samples[ch][j][
i] =
av_clipf(
mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
75 c->sb_samples[ch][j][
i] =
av_clipf(
mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
78 c->sb_samples[ch][j][
i] =
av_clipf(
mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
84 t1 =
c->sb_samples[0][j][
i];
85 t2 =
c->sb_samples[1][j][
i];
86 c->sb_samples[0][j][
i] =
t1 +
t2;
87 c->sb_samples[1][j][
i] =
t1 -
t2;
int32_t ff_mpa_synth_window_fixed[]
static const float mpc_CC[18+1]
void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, int16_t **out, int channels)
static void mpc_synth(MPCContext *c, int16_t **out, int channels)
Process decoded Musepack data and produce PCM.
static const float mpc_SCF[256]
static const float bands[]
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 float mul(float src0, float src1)
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
#define i(width, name, range_min, range_max)
Subband structure - hold all variables for each subband.