diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2011-04-25 11:39:01 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-04-26 18:25:24 +0200 |
commit | 9d35fa520e3b27f7dd9fe12c433eb596f1271515 (patch) | |
tree | 9810f7a2e7d8e19dc5bcc5f6b9ac4a6c70d84388 /libavcodec/x86/fft_sse.c | |
parent | 13dfce3d44f99a2d7df71aba8ae003d58db726f7 (diff) | |
download | ffmpeg-9d35fa520e3b27f7dd9fe12c433eb596f1271515.tar.gz |
Add AVX FFT implementation.
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec/x86/fft_sse.c')
-rw-r--r-- | libavcodec/x86/fft_sse.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/x86/fft_sse.c b/libavcodec/x86/fft_sse.c index 9de4e4c080..5b52988d09 100644 --- a/libavcodec/x86/fft_sse.c +++ b/libavcodec/x86/fft_sse.c @@ -28,6 +28,12 @@ DECLARE_ASM_CONST(16, int, ff_m1m1m1m1)[4] = void ff_fft_dispatch_sse(FFTComplex *z, int nbits); void ff_fft_dispatch_interleave_sse(FFTComplex *z, int nbits); +void ff_fft_dispatch_interleave_avx(FFTComplex *z, int nbits); + +void ff_fft_calc_avx(FFTContext *s, FFTComplex *z) +{ + ff_fft_dispatch_interleave_avx(z, s->nbits); +} void ff_fft_calc_sse(FFTContext *s, FFTComplex *z) { @@ -77,7 +83,7 @@ void ff_imdct_calc_sse(FFTContext *s, FFTSample *output, const FFTSample *input) long n = s->mdct_size; long n4 = n >> 2; - ff_imdct_half_sse(s, output+n4, input); + s->imdct_half(s, output + n4, input); j = -n; k = n-16; |