patch-libavcodec_arm_fft_init_arm_c 1.1 KB

12345678910111213141516171819202122232425
  1. --- ffmpeg-2.0.2.orig/libavcodec/arm/fft_init_arm.c 2013-10-08 19:52:31.000000000 +0200
  2. +++ ffmpeg-2.0.2/libavcodec/arm/fft_init_arm.c 2013-10-16 12:59:04.000000000 +0200
  3. @@ -32,6 +32,12 @@ void ff_mdct_calc_neon(FFTContext *s, FF
  4. void ff_rdft_calc_neon(struct RDFTContext *s, FFTSample *z);
  5. +void ff_synth_filter_float_vfp(FFTContext *imdct,
  6. + float *synth_buf_ptr, int *synth_buf_offset,
  7. + float synth_buf2[32], const float window[512],
  8. + float out[32], const float in[32],
  9. + float scale);
  10. +
  11. void ff_synth_filter_float_neon(FFTContext *imdct,
  12. float *synth_buf_ptr, int *synth_buf_offset,
  13. float synth_buf2[32], const float window[512],
  14. @@ -71,6 +77,9 @@ av_cold void ff_synth_filter_init_arm(Sy
  15. {
  16. int cpu_flags = av_get_cpu_flags();
  17. + if (have_vfp(cpu_flags))
  18. + s->synth_filter_float = ff_synth_filter_float_vfp;
  19. +
  20. if (have_neon(cpu_flags))
  21. s->synth_filter_float = ff_synth_filter_float_neon;
  22. }