X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdsputil.h;h=057c41cca5cbee9c5ff54671a55832d221a1fb27;hb=e1b2f6ec119dc43a66ff731b98c768778497ff95;hp=07ef196185025489aa04796339aac5593d910982;hpb=ada49f936eaafe12365c7b962355d6dcfbfc4029;p=ffmpeg diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index 07ef1961850..057c41cca5c 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -423,6 +423,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