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

Function UpdateP8x4Motion2Cache

codec/encoder/core/src/mv_pred.cpp:416–424  ·  view source on GitHub ↗

update uiRefIndex and pMv of only Mb_cache, for P8x4

Source from the content-addressed store, hash-verified

414
415//update uiRefIndex and pMv of only Mb_cache, for P8x4
416void UpdateP8x4Motion2Cache (SMbCache* pMbCache, int32_t iPartIdx, int8_t pRef, SMVUnitXY* pMv) {
417 SMVComponentUnit* pMvComp = &pMbCache->sMvComponents;
418 const uint8_t kuiCacheIdx = g_kuiCache30ScanIdx[iPartIdx];
419
420 pMvComp->iRefIndexCache [ kuiCacheIdx] =
421 pMvComp->iRefIndexCache [1 + kuiCacheIdx] = pRef;
422 pMvComp->sMotionVectorCache [ kuiCacheIdx] =
423 pMvComp->sMotionVectorCache[1 + kuiCacheIdx] = *pMv;
424}
425
426//update uiRefIndex and pMv of only Mb_cache, for P4x8
427void UpdateP4x8Motion2Cache (SMbCache* pMbCache, int32_t iPartIdx, int8_t pRef, SMVUnitXY* pMv) {

Callers 1

WelsMdP8x4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected