mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-15 04:38:48 +02:00
dca: use vector_fmac_scalar from dsputil
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
fcca826a63
commit
a92a1b93b4
@ -1829,11 +1829,8 @@ static int dca_decode_frame(AVCodecContext * avctx,
|
|||||||
float* back_chan = s->samples + s->channel_order_tab[s->xch_base_channel] * 256;
|
float* back_chan = s->samples + s->channel_order_tab[s->xch_base_channel] * 256;
|
||||||
float* lt_chan = s->samples + s->channel_order_tab[s->xch_base_channel - 2] * 256;
|
float* lt_chan = s->samples + s->channel_order_tab[s->xch_base_channel - 2] * 256;
|
||||||
float* rt_chan = s->samples + s->channel_order_tab[s->xch_base_channel - 1] * 256;
|
float* rt_chan = s->samples + s->channel_order_tab[s->xch_base_channel - 1] * 256;
|
||||||
int j;
|
s->dsp.vector_fmac_scalar(lt_chan, back_chan, -M_SQRT1_2, 256);
|
||||||
for(j = 0; j < 256; ++j) {
|
s->dsp.vector_fmac_scalar(rt_chan, back_chan, -M_SQRT1_2, 256);
|
||||||
lt_chan[j] -= back_chan[j] * M_SQRT1_2;
|
|
||||||
rt_chan[j] -= back_chan[j] * M_SQRT1_2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avctx->sample_fmt == AV_SAMPLE_FMT_FLT) {
|
if (avctx->sample_fmt == AV_SAMPLE_FMT_FLT) {
|
||||||
|
Loading…
Reference in New Issue
Block a user