rdft: arm: Split RDFT initialization into a separate file

This commit is contained in:
Diego Biurrun
2016-01-30 13:44:38 +01:00
parent 97aec6e75e
commit 4c297249ac
3 changed files with 34 additions and 13 deletions

View File

@@ -23,7 +23,6 @@
#include "libavutil/arm/cpu.h"
#include "libavcodec/fft.h"
#include "libavcodec/rdft.h"
void ff_fft_calc_vfp(FFTContext *s, FFTComplex *z);
@@ -36,8 +35,6 @@ 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)
{
int cpu_flags = av_get_cpu_flags();
@@ -60,13 +57,3 @@ av_cold void ff_fft_init_arm(FFTContext *s)
#endif
}
}
#if CONFIG_RDFT
av_cold void ff_rdft_init_arm(RDFTContext *s)
{
int cpu_flags = av_get_cpu_flags();
if (have_neon(cpu_flags))
s->rdft_calc = ff_rdft_calc_neon;
}
#endif