From e034cc6c60c77dce390b1ac31141b1862bdf8999 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 6 Jan 2013 23:47:30 -0500 Subject: lavc: Move vector_fmul_window to AVFloatDSPContext Signed-off-by: Luca Barbato --- libavutil/float_dsp.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'libavutil/float_dsp.h') diff --git a/libavutil/float_dsp.h b/libavutil/float_dsp.h index 41b73c5b26..d0ceaaf5e1 100644 --- a/libavutil/float_dsp.h +++ b/libavutil/float_dsp.h @@ -81,6 +81,25 @@ typedef struct AVFloatDSPContext { */ void (*vector_dmul_scalar)(double *dst, const double *src, double mul, int len); + + /** + * Overlap/add with window function. + * Used primarily by MDCT-based audio codecs. + * Source and destination vectors must overlap exactly or not at all. + * + * @param dst result vector + * constraints: 16-byte aligned + * @param src0 first source vector + * constraints: 16-byte aligned + * @param src1 second source vector + * constraints: 16-byte aligned + * @param win half-window vector + * constraints: 16-byte aligned + * @param len length of vector + * constraints: multiple of 4 + */ + void (*vector_fmul_window)(float *dst, const float *src0, + const float *src1, const float *win, int len); } AVFloatDSPContext; /** -- cgit v1.2.3