Changeset 476 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComPicYuv.cpp
- Timestamp:
- 18 Jun 2013, 05:16:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComPicYuv.cpp
r446 r476 77 77 m_iCuHeight = uiMaxCUHeight; 78 78 79 #if H_3D_IV_MERGE 80 m_iNumCuInWidth = m_iPicWidth / m_iCuWidth; 81 m_iNumCuInWidth += ( m_iPicWidth % m_iCuWidth ) ? 1 : 0; 82 83 m_iBaseUnitWidth = uiMaxCUWidth >> uiMaxCUDepth; 84 m_iBaseUnitHeight = uiMaxCUHeight >> uiMaxCUDepth; 85 #endif 86 79 87 Int numCuInWidth = m_iPicWidth / m_iCuWidth + (m_iPicWidth % m_iCuWidth != 0); 80 88 Int numCuInHeight = m_iPicHeight / m_iCuHeight + (m_iPicHeight % m_iCuHeight != 0); … … 325 333 326 334 #if H_3D 335 #if H_3D_IV_MERGE 336 Void 337 TComPicYuv::getTopLeftSamplePos( Int iCuAddr, Int iAbsZorderIdx, Int& riX, Int& riY ) 338 { 339 Int iRastPartIdx = g_auiZscanToRaster[iAbsZorderIdx]; 340 Int iCuSizeInBases = m_iCuWidth / m_iBaseUnitWidth; 341 Int iCuX = iCuAddr % m_iNumCuInWidth; 342 Int iCuY = iCuAddr / m_iNumCuInWidth; 343 Int iBaseX = iRastPartIdx % iCuSizeInBases; 344 Int iBaseY = iRastPartIdx / iCuSizeInBases; 345 riX = iCuX * m_iCuWidth + iBaseX * m_iBaseUnitWidth; 346 riY = iCuY * m_iCuHeight + iBaseY * m_iBaseUnitHeight; 347 } 348 349 Void 350 TComPicYuv::getCUAddrAndPartIdx( Int iX, Int iY, Int& riCuAddr, Int& riAbsZorderIdx ) 351 { 352 Int iCuX = iX / m_iCuWidth; 353 Int iCuY = iY / m_iCuHeight; 354 Int iBaseX = ( iX - iCuX * m_iCuWidth ) / m_iBaseUnitWidth; 355 Int iBaseY = ( iY - iCuY * m_iCuHeight ) / m_iBaseUnitHeight; 356 Int iCuSizeInBases = m_iCuWidth / m_iBaseUnitWidth; 357 riCuAddr = iCuY * m_iNumCuInWidth + iCuX; 358 Int iRastPartIdx = iBaseY * iCuSizeInBases + iBaseX; 359 riAbsZorderIdx = g_auiRasterToZscan[ iRastPartIdx ]; 360 } 361 #endif 327 362 Void TComPicYuv::setLumaTo( Pel pVal ) 328 363 {
Note: See TracChangeset for help on using the changeset viewer.