mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Merge commit '0801853e640624537db386727b36fa97aa6258e7'
* commit '0801853e640624537db386727b36fa97aa6258e7':
libavcodec: vp8 neon optimizations for aarch64
See 833fed5253
Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
a2ae381b5a
@ -37,9 +37,8 @@ VP8_EPEL(8, neon);
|
||||
|
||||
av_cold void ff_vp78dsp_init_aarch64(VP8DSPContext *dsp)
|
||||
{
|
||||
if (!have_neon(av_get_cpu_flags())) {
|
||||
if (!have_neon(av_get_cpu_flags()))
|
||||
return;
|
||||
}
|
||||
dsp->put_vp8_epel_pixels_tab[0][0][0] = ff_put_vp8_pixels16_neon;
|
||||
dsp->put_vp8_epel_pixels_tab[0][0][2] = ff_put_vp8_epel16_h6_neon;
|
||||
dsp->put_vp8_epel_pixels_tab[0][2][0] = ff_put_vp8_epel16_v6_neon;
|
||||
@ -54,9 +53,8 @@ av_cold void ff_vp78dsp_init_aarch64(VP8DSPContext *dsp)
|
||||
|
||||
av_cold void ff_vp8dsp_init_aarch64(VP8DSPContext *dsp)
|
||||
{
|
||||
if (!have_neon(av_get_cpu_flags())) {
|
||||
if (!have_neon(av_get_cpu_flags()))
|
||||
return;
|
||||
}
|
||||
|
||||
dsp->vp8_idct_add = ff_vp8_idct_add_neon;
|
||||
dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_neon;
|
||||
|
@ -673,14 +673,14 @@ av_cold void ff_vp78dsp_init(VP8DSPContext *dsp)
|
||||
VP78_BILINEAR_MC_FUNC(1, 8);
|
||||
VP78_BILINEAR_MC_FUNC(2, 4);
|
||||
|
||||
if (ARCH_AARCH64)
|
||||
ff_vp78dsp_init_aarch64(dsp);
|
||||
if (ARCH_ARM)
|
||||
ff_vp78dsp_init_arm(dsp);
|
||||
if (ARCH_PPC)
|
||||
ff_vp78dsp_init_ppc(dsp);
|
||||
if (ARCH_X86)
|
||||
ff_vp78dsp_init_x86(dsp);
|
||||
if (ARCH_AARCH64)
|
||||
ff_vp78dsp_init_aarch64(dsp);
|
||||
}
|
||||
|
||||
#if CONFIG_VP7_DECODER
|
||||
@ -735,13 +735,13 @@ av_cold void ff_vp8dsp_init(VP8DSPContext *dsp)
|
||||
dsp->vp8_v_loop_filter_simple = vp8_v_loop_filter_simple_c;
|
||||
dsp->vp8_h_loop_filter_simple = vp8_h_loop_filter_simple_c;
|
||||
|
||||
if (ARCH_AARCH64)
|
||||
ff_vp8dsp_init_aarch64(dsp);
|
||||
if (ARCH_ARM)
|
||||
ff_vp8dsp_init_arm(dsp);
|
||||
if (ARCH_X86)
|
||||
ff_vp8dsp_init_x86(dsp);
|
||||
if (ARCH_MIPS)
|
||||
ff_vp8dsp_init_mips(dsp);
|
||||
if (ARCH_AARCH64)
|
||||
ff_vp8dsp_init_aarch64(dsp);
|
||||
}
|
||||
#endif /* CONFIG_VP8_DECODER */
|
||||
|
Loading…
Reference in New Issue
Block a user