shithub: openh264

Download patch

ref: 37201e273ea627da8a4e6fe0d0f13e01d4f7239d
parent: debabb7cbbe7e31df470e5313d773854d904b568
parent: 7d7fac2adcb7c1c6e07a60187a82a1a5f9825ee1
author: volvet <[email protected]>
date: Wed Apr 9 16:38:45 EDT 2014

Merge pull request #660 from zhilwang/refine-me-asm-ut

Refine ME cross search ASM UT.

--- a/test/encoder/EncUT_MotionEstimate.cpp
+++ b/test/encoder/EncUT_MotionEstimate.cpp
@@ -259,6 +259,9 @@
   srand((uint32_t)time(NULL));
   const uint8_t kuiQp = rand()%52;
   InitMe(kuiQp, 648, m_uiMvdTableSize, m_pMvdCostTable, &sMe);
+  int32_t iTmp = 1;
+  uint32_t uiCPUFlags = WelsCPUFeatureDetect( &iTmp);
+  if ((uiCPUFlags & WELS_CPU_SSE41) == 0) return ;
 
   SMVUnitXY sTargetMv;
   WelsInitSampleSadFunc( &sFuncList, 0 );//test c functions
@@ -323,7 +326,9 @@
   srand((uint32_t)time(NULL));
   const uint8_t kuiQp = rand()%52;
   InitMe(kuiQp, 648, m_uiMvdTableSize, m_pMvdCostTable, &sMe);
-
+  int32_t iTmp = 1;
+  uint32_t uiCPUFlags = WelsCPUFeatureDetect( &iTmp);
+  if ((uiCPUFlags & WELS_CPU_SSE41) == 0) return ;
   SMVUnitXY sTargetMv;
   WelsInitSampleSadFunc( &sFuncList, 0 );//test c functions
   WelsInitMeFunc(&sFuncList, WELS_CPU_SSE41, 1);