From 5959bfaca396ecaf63a8123055f499688b79cae3 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 20 Jan 2013 15:41:14 -0800 Subject: floatdsp: move butterflies_float from dsputil to avfloatdsp. This makes wmadec/enc, twinvq and mpegaudiodec (i.e. mp2/mp3) independent of dsputil. --- libavutil/float_dsp.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavutil/float_dsp.h') diff --git a/libavutil/float_dsp.h b/libavutil/float_dsp.h index 96fcdab1e6..ec57b36f79 100644 --- a/libavutil/float_dsp.h +++ b/libavutil/float_dsp.h @@ -137,6 +137,15 @@ typedef struct AVFloatDSPContext { */ void (*vector_fmul_reverse)(float *dst, const float *src0, const float *src1, int len); + + /** + * Calculate the sum and difference of two vectors of floats. + * + * @param v1 first input vector, sum output, 16-byte aligned + * @param v2 second input vector, difference output, 16-byte aligned + * @param len length of vectors, multiple of 4 + */ + void (*butterflies_float)(float *restrict v1, float *restrict v2, int len); } AVFloatDSPContext; /** -- cgit v1.2.1