mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
ARM: fix float_dsp breakage from d5a7229
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
d5a7229ba4
commit
a839d6abf8
@ -23,7 +23,7 @@
|
||||
|
||||
#include "libavutil/float_dsp.h"
|
||||
|
||||
void ff_dsputil_init_vfp (AVFloatDSPContext *fdsp);
|
||||
void ff_dsputil_init_neon(AVFloatDSPContext *fdsp);
|
||||
void ff_float_dsp_init_vfp (AVFloatDSPContext *fdsp);
|
||||
void ff_float_dsp_init_neon(AVFloatDSPContext *fdsp);
|
||||
|
||||
#endif /* AVUTIL_ARM_FLOAT_DSP_ARM_H */
|
||||
|
@ -27,7 +27,7 @@ void ff_float_dsp_init_arm(AVFloatDSPContext *fdsp)
|
||||
int cpu_flags = av_get_cpu_flags();
|
||||
|
||||
if (have_vfp(cpu_flags))
|
||||
ff_dsputil_init_vfp(fdsp);
|
||||
ff_float_dsp_init_vfp(fdsp);
|
||||
if (have_neon(cpu_flags))
|
||||
ff_dsputil_init_neon(fdsp);
|
||||
ff_float_dsp_init_neon(fdsp);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
void ff_vector_fmul_neon(float *dst, const float *src0, const float *src1, int len);
|
||||
|
||||
void ff_dsputil_init_neon(AVFloatDSPContext *fdsp)
|
||||
void ff_float_dsp_init_neon(AVFloatDSPContext *fdsp)
|
||||
{
|
||||
c->vector_fmul = ff_vector_fmul_neon;
|
||||
fdsp->vector_fmul = ff_vector_fmul_neon;
|
||||
}
|
||||
|
@ -25,10 +25,10 @@
|
||||
void ff_vector_fmul_vfp(float *dst, const float *src0, const float *src1,
|
||||
int len);
|
||||
|
||||
void ff_dsputil_init_vfp(DSPContext* c, AVCodecContext *avctx)
|
||||
void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp)
|
||||
{
|
||||
int cpu_flags = av_get_cpu_flags();
|
||||
|
||||
if (!have_vfpv3(cpu_flags))
|
||||
c->vector_fmul = ff_vector_fmul_vfp;
|
||||
fdsp->vector_fmul = ff_vector_fmul_vfp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user