History

Add EncoderMB UT test file, and reformat UT files.

ganyang committed 12 years ago

Commit eb6f6ec1 parent 20c04648 files · +218 −29Browse files

Showing the changes to test/encoder/EncUT_MotionEstimate.cpp (1 of 8 files). Show all

Unified · Split

test/encoder/EncUT_MotionEstimate.cpp+5−10
@@ -10,8 +10,7 @@ · 9 unmodified lines
1010 using namespace WelsSVCEnc;
1111
1212 void CopyTargetBlock( uint8_t* pSrcBlock, const int32_t kiBlockSize, SMVUnitXY sTargetMv, const int32_t kiRefPicStride,
13− uint8_t* pRefPic)
14−{
13+ uint8_t* pRefPic) {
1514 uint8_t* pTargetPos = pRefPic+sTargetMv.iMvY*kiRefPicStride+sTargetMv.iMvX;
1615 uint8_t* pSourcePos = pSrcBlock;
1716
@@ -24,8 +23,7 @@ void CopyTargetBlock( uint8_t* pSrcBlock, const int32_t kiBlockSize, SMVUnitXY s · 6 unmodified lines
2423
2524
2625 void InitMe( const uint8_t kuiQp, const uint32_t kuiMvdTableMiddle, const uint32_t kuiMvdTableStride,
27− uint16_t* pMvdCostTable, SWelsME* pMe)
28−{
26+ uint16_t* pMvdCostTable, SWelsME* pMe) {
2927 MvdCostInit( pMvdCostTable, kuiMvdTableStride );
3028 pMe->pMvdCost = &pMvdCostTable[kuiQp*kuiMvdTableStride + kuiMvdTableMiddle];
3129 pMe->sMvp.iMvX = pMe->sMvp.iMvY = 0;
@@ -71,8 +69,7 @@ public: · 39 unmodified lines
7169 };
7270
7371
74−TEST_F(MotionEstimateTest, TestDiamondSearch)
75−{
72+TEST_F(MotionEstimateTest, TestDiamondSearch) {
7673 #define TEST_POS (5)
7774 const int32_t kiPositionToCheck[TEST_POS][2] = {{0,0}, {0,1}, {1,0}, {0,-1}, {-1,0}};
7875 const int32_t kiMaxBlock16Sad = 72000;//a rough number
@@ -125,8 +122,7 @@ TEST_F(MotionEstimateTest, TestDiamondSearch) · 46 unmodified lines
125122 }
126123
127124
128−TEST_F(MotionEstimateTest, TestVerticalSearch)
129−{
125+TEST_F(MotionEstimateTest, TestVerticalSearch) {
130126 const int32_t kiMaxBlock16Sad = 72000;//a rough number
131127 SWelsFuncPtrList sFuncList;
132128 SWelsME sMe;
@@ -187,8 +183,7 @@ TEST_F(MotionEstimateTest, TestVerticalSearch) · 54 unmodified lines
187183 //it is possible that ref at differnt position is identical, but that should be under a low probability
188184 }
189185 }
190−TEST_F(MotionEstimateTest, TestHorizontalSearch)
191−{
186+TEST_F(MotionEstimateTest, TestHorizontalSearch) {
192187 const int32_t kiMaxBlock16Sad = 72000;//a rough number
193188 SWelsFuncPtrList sFuncList;
194189 SWelsME sMe;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t