* update syntax for reference base related */
| 708 | * update syntax for reference base related |
| 709 | */ |
| 710 | void 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 | |
| 728 | static inline void UpdateOriginalPicInfo (SPicture* pOrigPic, SPicture* pReconPic) { |
| 729 | if (!pOrigPic) |
no test coverage detected