Changeset 1191 in 3DVCSoftware for branches/HTM-14.0-MV-draft-3/source/Lib/TLibCommon/TComMotionInfo.cpp
- Timestamp:
- 15 Apr 2015, 11:36:33 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.0-MV-draft-3/source/Lib/TLibCommon/TComMotionInfo.cpp
r1179 r1191 40 40 #include "assert.h" 41 41 #include <stdlib.h> 42 #if H_3D_SPIVMP43 #include "TComDataCU.h"44 #include "TComPic.h"45 #endif46 42 47 43 //! \ingroup TLibCommon … … 328 324 } 329 325 330 #if H_3D_SPIVMP331 Void TComCUMvField::setMvFieldSP( TComDataCU* pcCU, UInt uiAbsPartIdx, TComMvField cMvField, Int iWidth, Int iHeight )332 {333 uiAbsPartIdx += pcCU->getZorderIdxInCU();334 Int iStartPelX = g_auiRasterToPelX[g_auiZscanToRaster[uiAbsPartIdx]];335 Int iStartPelY = g_auiRasterToPelY[g_auiZscanToRaster[uiAbsPartIdx]];336 Int iEndPelX = iStartPelX + iWidth;337 Int iEndPelY = iStartPelY + iHeight;338 339 Int iCurrRaster, uiPartAddr;340 341 for (Int i=iStartPelY; i<iEndPelY; i+=pcCU->getPic()->getMinCUHeight())342 {343 for (Int j=iStartPelX; j < iEndPelX; j += pcCU->getPic()->getMinCUWidth())344 {345 iCurrRaster = i / pcCU->getPic()->getMinCUHeight() * pcCU->getPic()->getNumPartInWidth() + j/pcCU->getPic()->getMinCUWidth();346 uiPartAddr = g_auiRasterToZscan[iCurrRaster];347 uiPartAddr -= pcCU->getZorderIdxInCU();348 349 m_pcMv[uiPartAddr] = cMvField.getMv();350 m_piRefIdx[uiPartAddr] = cMvField.getRefIdx();351 }352 }353 }354 #endif355 326 356 327 /**Subsampling of the stored prediction mode, reference index and motion vector
Note: See TracChangeset for help on using the changeset viewer.