Commit a2ae381b authored by James Almer's avatar James Almer

Merge commit '0801853e'

* commit '0801853e':
  libavcodec: vp8 neon optimizations for aarch64

See 833fed52Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents ecb5546e 0801853e
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment