update uiRefIndex and pMv of only Mb_cache, for P8x4
| 414 | |
| 415 | //update uiRefIndex and pMv of only Mb_cache, for P8x4 |
| 416 | void 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 |
| 427 | void UpdateP4x8Motion2Cache (SMbCache* pMbCache, int32_t iPartIdx, int8_t pRef, SMVUnitXY* pMv) { |