Lines Matching refs:downmix_coeffs
378 float downmix_coeffs[2][AC3_MAX_CHANNELS]; in set_downmix_coeffs() local
380 if (!s->downmix_coeffs[0]) { in set_downmix_coeffs()
381 s->downmix_coeffs[0] = av_malloc_array(2 * AC3_MAX_CHANNELS, in set_downmix_coeffs()
382 sizeof(**s->downmix_coeffs)); in set_downmix_coeffs()
383 if (!s->downmix_coeffs[0]) in set_downmix_coeffs()
385 s->downmix_coeffs[1] = s->downmix_coeffs[0] + AC3_MAX_CHANNELS; in set_downmix_coeffs()
389 downmix_coeffs[0][i] = gain_levels[ac3_default_coeffs[s->channel_mode][i][0]]; in set_downmix_coeffs()
390 downmix_coeffs[1][i] = gain_levels[ac3_default_coeffs[s->channel_mode][i][1]]; in set_downmix_coeffs()
393 downmix_coeffs[0][1] = downmix_coeffs[1][1] = cmix; in set_downmix_coeffs()
397 downmix_coeffs[0][nf] = downmix_coeffs[1][nf] = smix * LEVEL_MINUS_3DB; in set_downmix_coeffs()
401 downmix_coeffs[0][nf] = downmix_coeffs[1][nf+1] = smix; in set_downmix_coeffs()
407 norm0 += downmix_coeffs[0][i]; in set_downmix_coeffs()
408 norm1 += downmix_coeffs[1][i]; in set_downmix_coeffs()
413 downmix_coeffs[0][i] *= norm0; in set_downmix_coeffs()
414 downmix_coeffs[1][i] *= norm1; in set_downmix_coeffs()
419 downmix_coeffs[0][i] = (downmix_coeffs[0][i] + in set_downmix_coeffs()
420 downmix_coeffs[1][i]) * LEVEL_MINUS_3DB; in set_downmix_coeffs()
423 s->downmix_coeffs[0][i] = FIXR12(downmix_coeffs[0][i]); in set_downmix_coeffs()
424 s->downmix_coeffs[1][i] = FIXR12(downmix_coeffs[1][i]); in set_downmix_coeffs()
1440 ac3_downmix_c_fixed16(s->outptr, s->downmix_coeffs, in decode_audio_block()
1443 ff_ac3dsp_downmix(&s->ac3dsp, s->outptr, s->downmix_coeffs, in decode_audio_block()
1449 AC3_RENAME(ff_ac3dsp_downmix)(&s->ac3dsp, s->xcfptr + 1, s->downmix_coeffs, in decode_audio_block()
1455 AC3_RENAME(ff_ac3dsp_downmix)(&s->ac3dsp, s->dlyptr, s->downmix_coeffs, in decode_audio_block()
1843 av_freep(&s->downmix_coeffs[0]); in ac3_decode_end()