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

Method GetBestRefPic

codec/encoder/core/src/wels_preprocess.cpp:251–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251SPicture* CWelsPreProcess::GetBestRefPic (EUsageType iUsageType, bool bSceneLtr, EWelsSliceType eSliceType,
252 int32_t kiDidx, int32_t iRefTemporalIdx) {
253 assert (iUsageType == SCREEN_CONTENT_REAL_TIME);
254 SVAAFrameInfoExt* pVaaExt = static_cast<SVAAFrameInfoExt*> (m_pEncCtx->pVaa);
255 SRefInfoParam* BestRefCandidateParam = (bSceneLtr) ? (& (pVaaExt->sVaaLtrBestRefCandidate[0])) :
256 (& (pVaaExt->sVaaStrBestRefCandidate[0]));
257 return m_pSpatialPic[0][BestRefCandidateParam->iSrcListIdx];
258
259}
260SPicture* CWelsPreProcess::GetBestRefPic (const int32_t kiDidx, const int32_t iRefTemporalIdx) {
261
262 return m_pSpatialPic[kiDidx][iRefTemporalIdx];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected