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

Method InitLastSpatialPictures

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

Source from the content-addressed store, hash-verified

544}
545
546int32_t CWelsPreProcess::InitLastSpatialPictures (sWelsEncCtx* pCtx) {
547 SWelsSvcCodingParam* pParam = pCtx->pSvcParam;
548 const int32_t kiDlayerCount = pParam->iSpatialLayerNum;
549 int32_t iDlayerIndex = 0;
550 if (pParam->iUsageType == SCREEN_CONTENT_REAL_TIME) {
551 for (; iDlayerIndex < MAX_DEPENDENCY_LAYER; iDlayerIndex++) {
552 m_pLastSpatialPicture[iDlayerIndex][0] = m_pLastSpatialPicture[iDlayerIndex][1] = NULL;
553 }
554 } else {
555 for (; iDlayerIndex < kiDlayerCount; iDlayerIndex++) {
556 const int32_t kiLayerInTemporal = m_uiSpatialLayersInTemporal[iDlayerIndex];
557 m_pLastSpatialPicture[iDlayerIndex][0] = m_pSpatialPic[iDlayerIndex][kiLayerInTemporal - 2];
558 m_pLastSpatialPicture[iDlayerIndex][1] = NULL;
559 }
560 for (; iDlayerIndex < MAX_DEPENDENCY_LAYER; iDlayerIndex++) {
561 m_pLastSpatialPicture[iDlayerIndex][0] = m_pLastSpatialPicture[iDlayerIndex][1] = NULL;
562 }
563 }
564 return 0;
565}
566//*********************************************************************************************************/
567
568int32_t CWelsPreProcess::ColorspaceConvert (SWelsSvcCodingParam* pSvcParam, SPicture* pDstPic,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected