MCPcopy Create free account
hub / github.com/cisco/openh264 / InitECCopyData

Function InitECCopyData

test/decoder/DecUT_ErrorConcealment.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void InitECCopyData (PECInputCtx pECCtx) {
108 const int32_t kiMbNum = pECCtx->iMbWidth * pECCtx->iMbHeight;
109 int i;
110 //init pMbCorrectlyDecodedFlag
111 for (i = 0; i < kiMbNum; ++i) {
112 pECCtx->pMbCorrectlyDecodedFlag[i] = !! (rand() & 1);
113 }
114 //init Data
115 const int32_t iPixNum = kiMbNum * 256 * 3 / 2;
116 for (i = 0; i < iPixNum; ++i) {
117 pECCtx->sSrcPic.pData[0][i] = rand() & 0xff;
118 }
119 int32_t iCpuCores = 1;
120 pECCtx->pCtx->uiCpuFlag = WelsCPUFeatureDetect (&iCpuCores);
121 InitErrorCon (pECCtx->pCtx);
122}
123
124void DoAncErrorConSliceCopy (PECInputCtx pECCtx) {
125 int32_t iMbWidth = (int32_t) pECCtx->iMbWidth;

Callers 1

TESTFunction · 0.85

Calls 2

WelsCPUFeatureDetectFunction · 0.85
InitErrorConFunction · 0.85

Tested by

no test coverage detected