aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/float_dsp.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2013-01-06 23:47:30 -0500
committerLuca Barbato <lu_zero@gentoo.org>2013-01-16 10:45:45 +0100
commite034cc6c60c77dce390b1ac31141b1862bdf8999 (patch)
treee61443e9c6413b1b92107e932c1d79a9717e16be /libavutil/float_dsp.h
parenta7ba3244131d96d9ab7a99ef30dc7276efd05cc7 (diff)
downloadffmpeg-e034cc6c60c77dce390b1ac31141b1862bdf8999.tar.gz
lavc: Move vector_fmul_window to AVFloatDSPContext
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavutil/float_dsp.h')
-rw-r--r--libavutil/float_dsp.h19
1 files changed, 19 insertions, 0 deletions
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;
/**