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

Function WelsFillRecNeededMbInfo

codec/decoder/core/src/rec_mb.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45namespace WelsDec {
46
47void WelsFillRecNeededMbInfo (PWelsDecoderContext pCtx, bool bOutput, PDqLayer pCurDqLayer) {
48 PPicture pCurPic = pCtx->pDec;
49 int32_t iLumaStride = pCurPic->iLinesize[0];
50 int32_t iChromaStride = pCurPic->iLinesize[1];
51 int32_t iMbX = pCurDqLayer->iMbX;
52 int32_t iMbY = pCurDqLayer->iMbY;
53
54 pCurDqLayer->iLumaStride = iLumaStride;
55 pCurDqLayer->iChromaStride = iChromaStride;
56
57 if (bOutput) {
58 pCurDqLayer->pPred[0] = pCurPic->pData[0] + ((iMbY * iLumaStride + iMbX) << 4);
59 pCurDqLayer->pPred[1] = pCurPic->pData[1] + ((iMbY * iChromaStride + iMbX) << 3);
60 pCurDqLayer->pPred[2] = pCurPic->pData[2] + ((iMbY * iChromaStride + iMbX) << 3);
61 }
62}
63
64int32_t RecI8x8Mb (int32_t iMbXy, PWelsDecoderContext pCtx, int16_t* pScoeffLevel, PDqLayer pDqLayer) {
65 RecI8x8Luma (iMbXy, pCtx, pScoeffLevel, pDqLayer);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected