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/dsputil.h | |
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/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 83102db501..eb1ea4f4ee 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -370,6 +370,8 @@ typedef struct DSPContext { void (*vector_fmul_add_add)(float *dst, const float *src0, const float *src1, const float *src2, int src3, int len, int step); /* assume len is a multiple of 4, and arrays are 16-byte aligned */ void (*vector_fmul_window)(float *dst, const float *src0, const float *src1, const float *win, float add_bias, int len); + /* assume len is a multiple of 8, and arrays are 16-byte aligned */ + void (*int32_to_float_fmul_scalar)(float *dst, const int *src, float mul, int len); /* C version: convert floats from the range [384.0,386.0] to ints in [-32768,32767] * simd versions: convert floats from [-32768.0,32767.0] without rescaling and arrays are 16byte aligned */ |