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

Function WelsUpdateRefSyntax

codec/encoder/core/src/ref_list_mgr_svc.cpp:710–726  ·  view source on GitHub ↗

* update syntax for reference base related */

Source from the content-addressed store, hash-verified

708 * update syntax for reference base related
709 */
710void WelsUpdateRefSyntax (sWelsEncCtx* pCtx, const int32_t iPOC, const int32_t uiFrameType) {
711 int32_t iAbsDiffPicNumMinus1 = -1;
712 SSpatialLayerInternal* pParamD = &pCtx->pSvcParam->sDependencyLayers[pCtx->uiDependencyId];
713 /*syntax for ref_pic_list_reordering()*/
714 if (pCtx->iNumRef0 > 0) {
715 iAbsDiffPicNumMinus1 = pParamD->iFrameNum - (pCtx->pRefList0[0]->iFrameNum) - 1;
716
717 if (iAbsDiffPicNumMinus1 < 0) {
718 WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "WelsUpdateRefSyntax():::uiAbsDiffPicNumMinus1:%d", iAbsDiffPicNumMinus1);
719 iAbsDiffPicNumMinus1 += (1 << (pCtx->pSps->uiLog2MaxFrameNum));
720 WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "WelsUpdateRefSyntax():::uiAbsDiffPicNumMinus1< 0, update as:%d",
721 iAbsDiffPicNumMinus1);
722 }
723 }
724
725 WelsUpdateSliceHeaderSyntax (pCtx, iAbsDiffPicNumMinus1, pCtx->pCurDqLayer->ppSliceInLayer, uiFrameType);
726}
727
728static inline void UpdateOriginalPicInfo (SPicture* pOrigPic, SPicture* pReconPic) {
729 if (!pOrigPic)

Callers 1

WelsEncoderEncodeExtFunction · 0.85

Calls 2

WelsLogFunction · 0.85

Tested by

no test coverage detected