History

use grey instead of green in EC without ref

huili2 committed 12 years ago

Commit fb6379e1 parent f6385462 files · +10 −10Browse files

Showing the changes to test/decoder/DecUT_ErrorConcealment.cpp (1 of 2 files). Show all

Unified · Split

test/decoder/DecUT_ErrorConcealment.cpp+4−4
@@ -163,19 +163,19 @@ void DoAncErrorConSliceCopy (PECInputCtx pECCtx) { · 162 unmodified lines
163 //Y component163 //Y component
164 pDstData = pDstPic->pData[0] + iMbY * 16 * iDstStride + iMbX * 16;164 pDstData = pDstPic->pData[0] + iMbY * 16 * iDstStride + iMbX * 16;
165 for (i = 0; i < 16; ++i) {165 for (i = 0; i < 16; ++i) {
166 memset (pDstData, 0, 16);166 memset (pDstData, 128, 16);
167 pDstData += iDstStride;167 pDstData += iDstStride;
168 }168 }
169 //U component169 //U component
170 pDstData = pDstPic->pData[1] + iMbY * 8 * iDstStride / 2 + iMbX * 8;170 pDstData = pDstPic->pData[1] + iMbY * 8 * iDstStride / 2 + iMbX * 8;
171 for (i = 0; i < 8; ++i) {171 for (i = 0; i < 8; ++i) {
172 memset (pDstData, 0, 8);172 memset (pDstData, 128, 8);
173 pDstData += iDstStride / 2;173 pDstData += iDstStride / 2;
174 }174 }
175 //V component175 //V component
176 pDstData = pDstPic->pData[2] + iMbY * 8 * iDstStride / 2 + iMbX * 8;176 pDstData = pDstPic->pData[2] + iMbY * 8 * iDstStride / 2 + iMbX * 8;
177 for (i = 0; i < 8; ++i) {177 for (i = 0; i < 8; ++i) {
178 memset (pDstData, 0, 8);178 memset (pDstData, 128, 8);
179 pDstData += iDstStride / 2;179 pDstData += iDstStride / 2;
180 }180 }
181 } //181 } //
@@ -238,7 +238,7 @@ TEST (ErrorConTest, DoErrorConFrameCopy) { · 56 unmodified lines
238 DoErrorConFrameCopy (pECCtx->pCtx);238 DoErrorConFrameCopy (pECCtx->pCtx);
239 239
240 int32_t iLumaSize = pECCtx->iMbWidth * pECCtx->iMbHeight * 256;240 int32_t iLumaSize = pECCtx->iMbWidth * pECCtx->iMbHeight * 256;
241 memset (pECCtx->sAncPic.pData[0], 0, iLumaSize * 3 / 2); //should be the same as known EC method, here all 0241 memset (pECCtx->sAncPic.pData[0], 128, iLumaSize * 3 / 2); //should be the same as known EC method, here all 128
242 bOK = ComparePictureDataI420 (pECCtx->sAncPic.pData[0], pECCtx->sWelsPic.pData[0], pECCtx->iLinesize[0],242 bOK = ComparePictureDataI420 (pECCtx->sAncPic.pData[0], pECCtx->sWelsPic.pData[0], pECCtx->iLinesize[0],
243 pECCtx->iMbHeight * 16);243 pECCtx->iMbHeight * 16);
244 EXPECT_EQ (bOK, true);244 EXPECT_EQ (bOK, true);

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