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

Function CheckRefPics

codec/decoder/core/src/decode_slice.cpp:59–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57extern PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const int32_t kiPicHeight);
58
59static bool CheckRefPics (const PWelsDecoderContext& pCtx) {
60 int32_t listCount = 1;
61 if (pCtx->eSliceType == B_SLICE) {
62 ++listCount;
63 }
64 for (int32_t list = LIST_0; list < listCount; ++list) {
65 int32_t shortRefCount = pCtx->sRefPic.uiShortRefCount[list];
66 for (int32_t refIdx = 0; refIdx < shortRefCount; ++refIdx) {
67 if (!pCtx->sRefPic.pShortRefList[list][refIdx]) {
68 return false;
69 }
70 }
71 int32_t longRefCount = pCtx->sRefPic.uiLongRefCount[list];
72 for (int32_t refIdx = 0; refIdx < longRefCount; ++refIdx) {
73 if (!pCtx->sRefPic.pLongRefList[list][refIdx]) {
74 return false;
75 }
76 }
77 }
78 return true;
79}
80
81int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) {
82 PDqLayer pCurDqLayer = pCtx->pCurDqLayer;

Callers 1

WelsTargetMbConstructionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected