diff arm/fft_init_arm.c @ 11532:e011e73a902b libavcodec

ARM: NEON optimised RDFT
author mru
date Tue, 23 Mar 2010 03:35:02 +0000
parents 4b3da727d832
children b7fa70eabb1f
line wrap: on
line diff
--- a/arm/fft_init_arm.c	Tue Mar 23 02:17:04 2010 +0000
+++ b/arm/fft_init_arm.c	Tue Mar 23 03:35:02 2010 +0000
@@ -27,6 +27,8 @@
 void ff_imdct_half_neon(FFTContext *s, FFTSample *output, const FFTSample *input);
 void ff_mdct_calc_neon(FFTContext *s, FFTSample *output, const FFTSample *input);
 
+void ff_rdft_calc_neon(struct RDFTContext *s, FFTSample *z);
+
 av_cold void ff_fft_init_arm(FFTContext *s)
 {
     if (HAVE_NEON) {
@@ -38,3 +40,11 @@
         s->permutation  = FF_MDCT_PERM_INTERLEAVE;
     }
 }
+
+#if CONFIG_RDFT
+av_cold void ff_rdft_init_arm(RDFTContext *s)
+{
+    if (HAVE_NEON)
+        s->rdft_calc    = ff_rdft_calc_neon;
+}
+#endif