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

Function MarkECFrameAsRef

codec/decoder/core/src/error_concealment.cpp:440–451  ·  view source on GitHub ↗

Mark erroneous frame as Ref Pic into DPB

Source from the content-addressed store, hash-verified

438
439//Mark erroneous frame as Ref Pic into DPB
440int32_t MarkECFrameAsRef (PWelsDecoderContext pCtx) {
441 int32_t iRet = WelsMarkAsRef (pCtx);
442 // Under EC mode, the ERR_INFO_DUPLICATE_FRAME_NUM does not need to be process
443 if (iRet != ERR_NONE) {
444 return iRet;
445 }
446 ExpandReferencingPicture (pCtx->pDec->pData, pCtx->pDec->iWidthInPixel, pCtx->pDec->iHeightInPixel,
447 pCtx->pDec->iLinesize,
448 pCtx->sExpandPicFunc.pfExpandLumaPicture, pCtx->sExpandPicFunc.pfExpandChromaPicture);
449
450 return ERR_NONE;
451}
452
453bool NeedErrorCon (PWelsDecoderContext pCtx) {
454 bool bNeedEC = false;

Callers 1

CheckAndFinishLastPicFunction · 0.85

Calls 2

WelsMarkAsRefFunction · 0.85
ExpandReferencingPictureFunction · 0.85

Tested by

no test coverage detected