| 105 | } |
| 106 | |
| 107 | void 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 | |
| 124 | void DoAncErrorConSliceCopy (PECInputCtx pECCtx) { |
| 125 | int32_t iMbWidth = (int32_t) pECCtx->iMbWidth; |
no test coverage detected