Refine ME cross search ASM UT.
This commit is contained in:
parent
c96fe5fec4
commit
7d7fac2adc
@ -259,6 +259,9 @@ TEST_F(MotionEstimateTest, TestVerticalSearch_SSE41)
|
|||||||
srand((uint32_t)time(NULL));
|
srand((uint32_t)time(NULL));
|
||||||
const uint8_t kuiQp = rand()%52;
|
const uint8_t kuiQp = rand()%52;
|
||||||
InitMe(kuiQp, 648, m_uiMvdTableSize, m_pMvdCostTable, &sMe);
|
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;
|
SMVUnitXY sTargetMv;
|
||||||
WelsInitSampleSadFunc( &sFuncList, 0 );//test c functions
|
WelsInitSampleSadFunc( &sFuncList, 0 );//test c functions
|
||||||
@ -323,7 +326,9 @@ TEST_F(MotionEstimateTest, TestHorizontalSearch_SSE41)
|
|||||||
srand((uint32_t)time(NULL));
|
srand((uint32_t)time(NULL));
|
||||||
const uint8_t kuiQp = rand()%52;
|
const uint8_t kuiQp = rand()%52;
|
||||||
InitMe(kuiQp, 648, m_uiMvdTableSize, m_pMvdCostTable, &sMe);
|
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;
|
SMVUnitXY sTargetMv;
|
||||||
WelsInitSampleSadFunc( &sFuncList, 0 );//test c functions
|
WelsInitSampleSadFunc( &sFuncList, 0 );//test c functions
|
||||||
WelsInitMeFunc(&sFuncList, WELS_CPU_SSE41, 1);
|
WelsInitMeFunc(&sFuncList, WELS_CPU_SSE41, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user