summaryrefslogtreecommitdiff
path: root/libavcodec/arm/fft_init_arm.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-23 03:35:02 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-23 03:35:02 +0000
commita8bb9ea532b718d48bbfec3f94d7cd56cc15c472 (patch)
tree7d046219695d409bb0166d87d94f9c43d77514dc /libavcodec/arm/fft_init_arm.c
parentfc4a2d1e8cc06766677d33f4ba4777e256a709fc (diff)
ARM: NEON optimised RDFT
Originally committed as revision 22641 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/arm/fft_init_arm.c')
-rw-r--r--libavcodec/arm/fft_init_arm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/arm/fft_init_arm.c b/libavcodec/arm/fft_init_arm.c
index b2acf929f5..dfcd968c94 100644
--- a/libavcodec/arm/fft_init_arm.c
+++ b/libavcodec/arm/fft_init_arm.c
@@ -27,6 +27,8 @@ void ff_imdct_calc_neon(FFTContext *s, FFTSample *output, const FFTSample *input
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 @@ av_cold void ff_fft_init_arm(FFTContext *s)
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