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
9090 uint32_t uiCpuFlag = k == 0 ? 0 : WelsCPUFeatureDetect (NULL);
9191 WelsInitMcFuncs (&sMcFunc, uiCpuFlag);
9292
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);
9494 sMcFunc.pfLumaHalfpelHor (&uSrcTest[4][4], MC_BUFF_SRC_STRIDE, uDstTest[0], MC_BUFF_DST_STRIDE, width + 1, height);
9595 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++) {
9797 ASSERT_EQ (uAnchor[1][4 + j][4 + i], uDstTest[j][i]);
9898 }
9999 }
100100 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++) {
102102 for (int32_t i = 0; i < width; i++) {
103103 ASSERT_EQ (uAnchor[2][4 + j][4 + i], uDstTest[j][i]);
104104 }
105105 }
106106 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++) {
108− for (int32_t i = 0; i < width; i++) {
107+ for (int32_t j = 0; j < height + 1; j++) {
108+ for (int32_t i = 0; i < width + 1; i++) {
109109 ASSERT_EQ (uAnchor[3][4 + j][4 + i], uDstTest[j][i]);
110110 }
111111 }

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