Go to the documentation of this file.
53 c->synth_buf[ch], &(
c->synth_buf_offset[ch]),
56 c->sb_samples[ch][
i]);
70 memset(
c->sb_samples, 0,
sizeof(
c->sb_samples));
73 for(ch = 0; ch < 2; ch++){
78 c->sb_samples[ch][j][
i] = av_clipf(mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
81 c->sb_samples[ch][j][
i] = av_clipf(mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
84 c->sb_samples[ch][j][
i] = av_clipf(mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
90 t1 =
c->sb_samples[0][j][
i];
91 t2 =
c->sb_samples[1][j][
i];
92 c->sb_samples[0][j][
i] =
t1 +
t2;
93 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]
av_cold void ff_mpc_init(void)
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)
void ff_mpa_synth_init_fixed(int32_t *window)
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.