shithub: openh264

Download patch

ref: b682a02ab5444cf906aaf79adf74e48329ed0cc9
parent: 6482d7b9cde9051607964b77758837f93141457a
author: gxw <[email protected]>
date: Thu Jul 4 15:09:39 EDT 2019

codec/processing: [loongson] Add mmi optimization for m_pfSad.

Change-Id: Ia103e39eb7d6a74eeab01f342d1c23f551e817f3
Signed-off-by: gxw <[email protected]>

--- a/codec/processing/src/scenechangedetection/SceneChangeDetection.h
+++ b/codec/processing/src/scenechangedetection/SceneChangeDetection.h
@@ -89,6 +89,12 @@
     }
 #endif
 
+#ifdef HAVE_MMI
+    if (iCpuFlag & WELS_CPU_MMI) {
+      m_pfSad = WelsSampleSad8x8_mmi;
+    }
+#endif
+
     m_fSceneChangeMotionRatioLarge = SCENE_CHANGE_MOTION_RATIO_LARGE_VIDEO;
     m_fSceneChangeMotionRatioMedium = SCENE_CHANGE_MOTION_RATIO_MEDIUM;
   }