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

Function GetRefMb

codec/encoder/core/src/svc_mode_decision.cpp:122–127  ·  view source on GitHub ↗

do initiation for noILP (needed by ILFMD)

Source from the content-addressed store, hash-verified

120
121// do initiation for noILP (needed by ILFMD)
122SMB* GetRefMb (SDqLayer* pCurLayer, SMB* pCurMb) {
123 const SDqLayer* kpRefLayer = pCurLayer->pRefLayer;
124 const int32_t kiRefMbIdx = (pCurMb->iMbY >> 1) * kpRefLayer->iMbWidth + (pCurMb->iMbX >>
125 1); //because current lower layer is half size on both vertical and horizontal
126 return (&kpRefLayer->sMbDataP[kiRefMbIdx]);
127}
128
129void SetMvBaseEnhancelayer (SWelsMD* pMd, SMB* pCurMb, const SMB* kpRefMb) {
130 const Mb_Type kuiRefMbType = kpRefMb->uiMbType;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected