diff options
author | Ben Avison <bavison@riscosopen.org> | 2013-07-15 18:28:09 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-07-22 10:15:17 +0300 |
commit | 41ef1d360bac65032aa32f6b43ae137666507ae5 (patch) | |
tree | 19fdb7e950c7288a5258df49f553a0d20164a215 /libavcodec/arm/fft_init_arm.c | |
parent | 8000206abcc82491c2a8c71e494c5477ede7264c (diff) | |
download | ffmpeg-41ef1d360bac65032aa32f6b43ae137666507ae5.tar.gz |
arm: Add VFP-accelerated version of synth_filter_float
Before After
Mean StdDev Mean StdDev Change
This function 9295.0 114.9 4853.2 83.5 +91.5%
Overall 23699.8 397.6 19285.5 292.0 +22.9%
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/arm/fft_init_arm.c')
-rw-r--r-- | libavcodec/arm/fft_init_arm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/arm/fft_init_arm.c b/libavcodec/arm/fft_init_arm.c index 9ec620f2d2..133fb84f69 100644 --- a/libavcodec/arm/fft_init_arm.c +++ b/libavcodec/arm/fft_init_arm.c @@ -32,6 +32,12 @@ void ff_mdct_calc_neon(FFTContext *s, FFTSample *output, const FFTSample *input) void ff_rdft_calc_neon(struct RDFTContext *s, FFTSample *z); +void ff_synth_filter_float_vfp(FFTContext *imdct, + float *synth_buf_ptr, int *synth_buf_offset, + float synth_buf2[32], const float window[512], + float out[32], const float in[32], + float scale); + void ff_synth_filter_float_neon(FFTContext *imdct, float *synth_buf_ptr, int *synth_buf_offset, float synth_buf2[32], const float window[512], @@ -69,6 +75,8 @@ av_cold void ff_synth_filter_init_arm(SynthFilterContext *s) { int cpu_flags = av_get_cpu_flags(); + if (have_vfp(cpu_flags) && !have_vfpv3(cpu_flags)) + s->synth_filter_float = ff_synth_filter_float_vfp; if (have_neon(cpu_flags)) s->synth_filter_float = ff_synth_filter_float_neon; } |