diff options
author | Mans Rullgard <mans@mansr.com> | 2011-09-28 14:33:21 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-09-28 15:56:08 +0100 |
commit | fcca826a63c79168f82a48c2620312630a83080a (patch) | |
tree | 97e7acfeebd6769a4e75d7c2cf3d0239f4a1acd6 /libavcodec/dsputil.h | |
parent | 32dfd8ca65e67b18bd22f83cf967f8216818e1fe (diff) | |
download | ffmpeg-fcca826a63c79168f82a48c2620312630a83080a.tar.gz |
dsputil: add vector_fmac_scalar()
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r-- | libavcodec/dsputil.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 4d783cf266..73830f8190 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -424,6 +424,17 @@ typedef struct DSPContext { void (*vector_fmul_scalar)(float *dst, const float *src, float mul, int len); /** + * Multiply a vector of floats by a scalar float and add to + * destination vector. Source and destination vectors must + * overlap exactly or not at all. + * @param dst result vector, 16-byte aligned + * @param src input vector, 16-byte aligned + * @param mul scalar value + * @param len length of vector, multiple of 4 + */ + void (*vector_fmac_scalar)(float *dst, const float *src, float mul, + int len); + /** * Calculate the scalar product of two vectors of floats. * @param v1 first vector, 16-byte aligned * @param v2 second vector, 16-byte aligned |