ref: 7d7fac2adcb7c1c6e07a60187a82a1a5f9825ee1
parent: c96fe5fec43be025ac6d39be5841e5d57af701da
author: Licai Guo <[email protected]>
date: Thu Apr 10 06:41:54 EDT 2014
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);