[FFmpeg-cvslog] Merge commit '0801853e640624537db386727b36fa97aa6258e7'

James Almer git at videolan.org
Thu Mar 14 21:11:59 EET 2019


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Mar 14 16:01:39 2019 -0300| [a2ae381b5a6f50669bcbd37001c110567a61f446] | committer: James Almer

Merge commit '0801853e640624537db386727b36fa97aa6258e7'

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

See 833fed5253617924c41132e0ab261c1d8c076360

Merged-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2ae381b5a6f50669bcbd37001c110567a61f446
---

 libavcodec/aarch64/vp8dsp_init_aarch64.c | 6 ++----
 libavcodec/vp8dsp.c                      | 8 ++++----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/libavcodec/aarch64/vp8dsp_init_aarch64.c b/libavcodec/aarch64/vp8dsp_init_aarch64.c
index dbc07408a0..6cf2c65470 100644
--- a/libavcodec/aarch64/vp8dsp_init_aarch64.c
+++ b/libavcodec/aarch64/vp8dsp_init_aarch64.c
@@ -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;
diff --git a/libavcodec/vp8dsp.c b/libavcodec/vp8dsp.c
index 30452bf5f8..4ff63d0784 100644
--- a/libavcodec/vp8dsp.c
+++ b/libavcodec/vp8dsp.c
@@ -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 */


======================================================================

diff --cc libavcodec/vp8dsp.c
index 30452bf5f8,ac9a6affc9..4ff63d0784
--- a/libavcodec/vp8dsp.c
+++ b/libavcodec/vp8dsp.c
@@@ -739,9 -747,5 +741,7 @@@ av_cold void ff_vp8dsp_init(VP8DSPConte
          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 */



More information about the ffmpeg-cvslog mailing list