aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aarch64/fft_init_aarch64.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-22 23:26:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-22 23:27:02 +0200
commitef1961e7fc097db34557e5aaac55e5c50287adb9 (patch)
treea010f4042637fb6b8a5b96b4fbbfd65e994a3a83 /libavcodec/aarch64/fft_init_aarch64.c
parent13f4428915d611293c521f5466d08d3a55b290bf (diff)
parentee2bc5974fe64fd214f52574400ae01c85f4b855 (diff)
downloadffmpeg-ef1961e7fc097db34557e5aaac55e5c50287adb9.tar.gz
Merge commit 'ee2bc5974fe64fd214f52574400ae01c85f4b855'
* commit 'ee2bc5974fe64fd214f52574400ae01c85f4b855': aarch64: NEON float (i)MDCT Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aarch64/fft_init_aarch64.c')
-rw-r--r--libavcodec/aarch64/fft_init_aarch64.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/aarch64/fft_init_aarch64.c b/libavcodec/aarch64/fft_init_aarch64.c
index 78a2703360..8514d3b07b 100644
--- a/libavcodec/aarch64/fft_init_aarch64.c
+++ b/libavcodec/aarch64/fft_init_aarch64.c
@@ -26,6 +26,10 @@
void ff_fft_permute_neon(FFTContext *s, FFTComplex *z);
void ff_fft_calc_neon(FFTContext *s, FFTComplex *z);
+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);
+
av_cold void ff_fft_init_aarch64(FFTContext *s)
{
int cpu_flags = av_get_cpu_flags();
@@ -33,5 +37,11 @@ av_cold void ff_fft_init_aarch64(FFTContext *s)
if (have_neon(cpu_flags)) {
s->fft_permute = ff_fft_permute_neon;
s->fft_calc = ff_fft_calc_neon;
+#if CONFIG_MDCT
+ s->imdct_calc = ff_imdct_calc_neon;
+ s->imdct_half = ff_imdct_half_neon;
+ s->mdct_calc = ff_mdct_calc_neon;
+ s->mdct_permutation = FF_MDCT_PERM_INTERLEAVE;
+#endif
}
}