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

Method InitPixMap

codec/encoder/core/src/wels_preprocess.cpp:951–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949
950
951void CWelsPreProcess::InitPixMap (const SPicture* pPicture, SPixMap* pPixMap) {
952 pPixMap->pPixel[0] = pPicture->pData[0];
953 pPixMap->pPixel[1] = pPicture->pData[1];
954 pPixMap->pPixel[2] = pPicture->pData[2];
955 pPixMap->iSizeInBits = sizeof (uint8_t);
956 pPixMap->iStride[0] = pPicture->iLineSize[0];
957 pPixMap->iStride[1] = pPicture->iLineSize[1];
958 pPixMap->sRect.iRectWidth = pPicture->iWidthInPixel;
959 pPixMap->sRect.iRectHeight = pPicture->iHeightInPixel;
960
961 pPixMap->eFormat = VIDEO_FORMAT_I420;
962}
963
964SPicture** CWelsPreProcessScreen::GetReferenceSrcPicList (int32_t iTargetDid) {
965 return (&m_pSpatialPic[iTargetDid][1]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected