diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2008-08-13 23:35:40 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2008-08-13 23:35:40 +0000 |
commit | 911e21a306dc7fddb3e8f0acb827ff89eaf9418d (patch) | |
tree | 31343bb32b071255ade7cbd1d5d8cfda57e36462 /libavcodec/ac3dec.c | |
parent | ac2e556456bf8be035bdee386e8ec2a63ebb870d (diff) | |
download | ffmpeg-911e21a306dc7fddb3e8f0acb827ff89eaf9418d.tar.gz |
simd int->float
20% faster ac3 if downmixing, 15% if not
Originally committed as revision 14743 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 44233b9468..ed0b170349 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -994,9 +994,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) } else { gain *= s->dynamic_range[0]; } - for(i=0; i<256; i++) { - s->transform_coeffs[ch][i] = s->fixed_coeffs[ch][i] * gain; - } + s->dsp.int32_to_float_fmul_scalar(s->transform_coeffs[ch], s->fixed_coeffs[ch], gain, 256); } /* downmix and MDCT. order depends on whether block switching is used for |