History

Extend the tested area in the encoder MC test

Martin Storsjö committed 11 years ago

Commit 151dfe01 parent a8262dd1 file · +5 −5Browse files

Showing the changes to test/encoder/EncUT_MotionCompensation.cpp (1 of 1 file). Show all

Unified · Split

test/encoder/EncUT_MotionCompensation.cpp+5−5
@@ -90,22 +90,22 @@ TEST (EncMcHalfpel, LumaHalfpel) { · 89 unmodified lines
90 uint32_t uiCpuFlag = k == 0 ? 0 : WelsCPUFeatureDetect (NULL);90 uint32_t uiCpuFlag = k == 0 ? 0 : WelsCPUFeatureDetect (NULL);
91 WelsInitMcFuncs (&sMcFunc, uiCpuFlag);91 WelsInitMcFuncs (&sMcFunc, uiCpuFlag);
92 92
93 MCHalfPelFilterAnchor (uAnchors[1], uAnchors[2], uAnchors[3], uAnchors[0], MC_BUFF_SRC_STRIDE, width, height, pBuf + 4);93 MCHalfPelFilterAnchor (uAnchors[1], uAnchors[2], uAnchors[3], uAnchors[0], MC_BUFF_SRC_STRIDE, width + 1, height + 1, pBuf + 4);
94 sMcFunc.pfLumaHalfpelHor (&uSrcTest[4][4], MC_BUFF_SRC_STRIDE, uDstTest[0], MC_BUFF_DST_STRIDE, width + 1, height);94 sMcFunc.pfLumaHalfpelHor (&uSrcTest[4][4], MC_BUFF_SRC_STRIDE, uDstTest[0], MC_BUFF_DST_STRIDE, width + 1, height);
95 for (int32_t j = 0; j < height; j++) {95 for (int32_t j = 0; j < height; j++) {
96 for (int32_t i = 0; i < width; i++) {96 for (int32_t i = 0; i < width + 1; i++) {
97 ASSERT_EQ (uAnchor[1][4 + j][4 + i], uDstTest[j][i]);97 ASSERT_EQ (uAnchor[1][4 + j][4 + i], uDstTest[j][i]);
98 }98 }
99 }99 }
100 sMcFunc.pfLumaHalfpelVer (&uSrcTest[4][4], MC_BUFF_SRC_STRIDE, uDstTest[0], MC_BUFF_DST_STRIDE, width, height + 1);100 sMcFunc.pfLumaHalfpelVer (&uSrcTest[4][4], MC_BUFF_SRC_STRIDE, uDstTest[0], MC_BUFF_DST_STRIDE, width, height + 1);
101 for (int32_t j = 0; j < height; j++) {101 for (int32_t j = 0; j < height + 1; j++) {
102 for (int32_t i = 0; i < width; i++) {102 for (int32_t i = 0; i < width; i++) {
103 ASSERT_EQ (uAnchor[2][4 + j][4 + i], uDstTest[j][i]);103 ASSERT_EQ (uAnchor[2][4 + j][4 + i], uDstTest[j][i]);
104 }104 }
105 }105 }
106 sMcFunc.pfLumaHalfpelCen (&uSrcTest[4][4], MC_BUFF_SRC_STRIDE, uDstTest[0], MC_BUFF_DST_STRIDE, width + 1, height + 1);106 sMcFunc.pfLumaHalfpelCen (&uSrcTest[4][4], MC_BUFF_SRC_STRIDE, uDstTest[0], MC_BUFF_DST_STRIDE, width + 1, height + 1);
107 for (int32_t j = 0; j < height; j++) {107 for (int32_t j = 0; j < height + 1; j++) {
108 for (int32_t i = 0; i < width; i++) {108 for (int32_t i = 0; i < width + 1; i++) {
109 ASSERT_EQ (uAnchor[3][4 + j][4 + i], uDstTest[j][i]);109 ASSERT_EQ (uAnchor[3][4 + j][4 + i], uDstTest[j][i]);
110 }110 }
111 }111 }

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