ref: 9ed97c73627482b975992b20a53d9fca426f8cbb
parent: 3e120501926644634fa5af8ebadfa822acfb29c7
parent: b6d3f873c625b2c5967b8e51f7b0f1b602185285
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Sat Sep 14 11:38:37 EDT 2019
Merge pull request #3150 from gxw-loongson/master Submit two patches for loongson platform.
--- a/codec/common/inc/asmdefs_mmi.h
+++ b/codec/common/inc/asmdefs_mmi.h
@@ -289,7 +289,7 @@
* backup register
*/
#define BACKUP_REG \
- double __back_temp[8]; \
+ double __attribute__((aligned(16))) __back_temp[8]; \
if (_MIPS_SIM == _ABI64) \
__asm__ volatile ( \
"gssqc1 $f25, $f24, 0x00(%[temp]) \n\t" \
--- 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;
}