48 c->synth_buf[ch], &(
c->synth_buf_offset[ch]),
51 c->sb_samples[ch][
i]);
65 memset(
c->sb_samples, 0,
sizeof(
c->sb_samples));
68 for(ch = 0; ch < 2; ch++){
73 c->sb_samples[ch][j][
i] =
av_clipf(
mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
76 c->sb_samples[ch][j][
i] =
av_clipf(
mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
79 c->sb_samples[ch][j][
i] =
av_clipf(
mul *
c->Q[ch][j + off], INT32_MIN, INT32_MAX);
85 t1 =
c->sb_samples[0][j][
i];
86 t2 =
c->sb_samples[1][j][
i];
87 c->sb_samples[0][j][
i] =
t1 +
t2;
88 c->sb_samples[1][j][
i] =
t1 -
t2;
static const float bands[]
Macro definitions for various function/variable attributes.
Libavcodec external API header.
static float mul(float src0, float src1)
static void mpc_synth(MPCContext *c, int16_t **out, int channels)
Process decoded Musepack data and produce PCM.
void ff_mpc_dequantize_and_synth(MPCContext *c, int maxband, int16_t **out, int channels)
Musepack decoder MPEG Audio Layer 1/2 -like codec with frames of 1152 samples divided into 32 subband...
static const float mpc_SCF[256]
static const float mpc_CC[18+1]
mpeg audio declarations for both encoder and decoder.
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)
int32_t ff_mpa_synth_window_fixed[]
Subband structure - hold all variables for each subband.