diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2009-08-27 14:49:36 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2009-08-27 14:49:36 +0000 |
commit | 0a68cd876e14f76a00df7bb8edbfeb350f8ef617 (patch) | |
tree | 5563e4fb33e663dbbaf813bd83e2c010bd82c68d /libavcodec/dsputil.h | |
parent | 8fc9376c590d2998820bb27b4465636a3f3257a8 (diff) | |
download | ffmpeg-0a68cd876e14f76a00df7bb8edbfeb350f8ef617.tar.gz |
SSE optimized vector_clipf(). 10% faster TwinVQ decoding.
Originally committed as revision 19728 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 2d15bd3538..032dd1d43c 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -396,6 +396,7 @@ typedef struct DSPContext { 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); + void (*vector_clipf)(float *dst /* align 16 */, float *src /* align 16 */, float min, float max, int len /* align 16 */); /* 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 */ |