Lines Matching refs:decoded
63 int32_t *decoded[FLAC_MAX_CHANNELS]; ///< decoded samples member
152 ret = av_samples_fill_arrays((uint8_t **)s->decoded, NULL, in allocate_buffers()
221 static int decode_residuals(FLACContext *s, int32_t *decoded, int pred_order) in decode_residuals() argument
235 decoded += pred_order; in decode_residuals()
261 *decoded++ = get_sbits_long(&gb, tmp); in decode_residuals()
271 *decoded++ = v; in decode_residuals()
282 static int decode_subframe_fixed(FLACContext *s, int32_t *decoded, in decode_subframe_fixed() argument
292 decoded[i] = get_sbits_long(&s->gb, bps); in decode_subframe_fixed()
295 if ((ret = decode_residuals(s, decoded, pred_order)) < 0) in decode_subframe_fixed()
299 a = decoded[pred_order-1]; in decode_subframe_fixed()
301 b = a - decoded[pred_order-2]; in decode_subframe_fixed()
303 c = b - decoded[pred_order-2] + decoded[pred_order-3]; in decode_subframe_fixed()
305 d = c - decoded[pred_order-2] + 2U*decoded[pred_order-3] - decoded[pred_order-4]; in decode_subframe_fixed()
312 decoded[i] = a += decoded[i]; in decode_subframe_fixed()
316 decoded[i] = a += b += decoded[i]; in decode_subframe_fixed()
320 decoded[i] = a += b += c += decoded[i]; in decode_subframe_fixed()
324 decoded[i] = a += b += c += d += decoded[i]; in decode_subframe_fixed()
334 static void lpc_analyze_remodulate(SUINT32 *decoded, const int coeffs[32], in lpc_analyze_remodulate() argument
342 sigma |= decoded[i] + ebps; in lpc_analyze_remodulate()
350 p += coeffs[j] * (int64_t)(int32_t)decoded[i-order+j]; in lpc_analyze_remodulate()
351 decoded[i] -= p >> qlevel; in lpc_analyze_remodulate()
353 for (i = order; i < len; i++, decoded++) { in lpc_analyze_remodulate()
356 p += coeffs[j] * (uint32_t)decoded[j]; in lpc_analyze_remodulate()
357 decoded[j] += p >> qlevel; in lpc_analyze_remodulate()
361 static int decode_subframe_lpc(FLACContext *s, int32_t *decoded, int pred_order, in decode_subframe_lpc() argument
370 decoded[i] = get_sbits_long(&s->gb, bps); in decode_subframe_lpc()
389 if ((ret = decode_residuals(s, decoded, pred_order)) < 0) in decode_subframe_lpc()
395 s->dsp.lpc16(decoded, coeffs, pred_order, qlevel, s->blocksize); in decode_subframe_lpc()
397 s->dsp.lpc32(decoded, coeffs, pred_order, qlevel, s->blocksize); in decode_subframe_lpc()
399 lpc_analyze_remodulate(decoded, coeffs, pred_order, qlevel, s->blocksize, bps); in decode_subframe_lpc()
407 int32_t *decoded = s->decoded[channel]; in decode_subframe() local
448 decoded[i] = tmp; in decode_subframe()
451 decoded[i] = get_sbits_long(&s->gb, bps); in decode_subframe()
453 if ((ret = decode_subframe_fixed(s, decoded, type & ~0x8, bps)) < 0) in decode_subframe()
456 if ((ret = decode_subframe_lpc(s, decoded, (type & ~0x20)+1, bps)) < 0) in decode_subframe()
466 decoded[i] = (unsigned)decoded[i] << wasted; in decode_subframe()
624 s->dsp.decorrelate[s->ch_mode](frame->data, s->decoded, in flac_decode_frame()