shithub: openh264

Download patch

ref: ffebbdb9b2342d22d3b9bc2b6e6eebb85cdf37fb
parent: 4e57a46ca5efb3c7a94810f9d7996b9e1b7ac0dd
author: ruil2 <[email protected]>
date: Wed Sep 24 11:59:36 EDT 2014

enable ARM assembly for SampleSad16x16

--- a/codec/processing/src/complexityanalysis/ComplexityAnalysis.cpp
+++ b/codec/processing/src/complexityanalysis/ComplexityAnalysis.cpp
@@ -282,6 +282,19 @@
     m_pSadFunc = WelsSampleSad16x16_sse2;
   }
 #endif
+
+#if defined (HAVE_NEON)
+  if (iCpuFlag & WELS_CPU_NEON) {
+    m_pSadFunc = WelsSampleSad16x16_neon;
+  }
+#endif
+
+#if defined (HAVE_NEON_AARCH64)
+  if (iCpuFlag & WELS_CPU_NEON) {
+    m_pSadFunc = WelsSampleSad16x16_AArch64_neon;
+  }
+#endif
+
 }
 
 CComplexityAnalysisScreen::~CComplexityAnalysisScreen() {