Changeset 445 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 7 Nov 2013, 08:07:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-4.0-dev/source/Lib/TLibCommon/TComDataCU.cpp ¶
r442 r445 4004 4004 uiPelY = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getHeight() - 1, uiPelY); 4005 4005 4006 #if !LAYER_CTB 4006 4007 UInt uiMinUnitSize = m_pcPic->getMinCUWidth(); 4008 #endif 4007 4009 4008 4010 #if SCALED_REF_LAYER_OFFSETS … … 4034 4036 } 4035 4037 4038 #if LAYER_CTB 4039 UInt baseMaxCUHeight = cBaseColPic->getPicSym()->getMaxCUHeight(); 4040 UInt baseMaxCUWidth = cBaseColPic->getPicSym()->getMaxCUWidth(); 4041 UInt baseMinUnitSize = cBaseColPic->getMinCUWidth(); 4042 4043 uiCUAddrBase = ( iBY / cBaseColPic->getPicSym()->getMaxCUHeight() ) * cBaseColPic->getFrameWidthInCU() + ( iBX / cBaseColPic->getPicSym()->getMaxCUWidth() ); 4044 #else 4036 4045 uiCUAddrBase = (iBY/g_uiMaxCUHeight)*cBaseColPic->getFrameWidthInCU() + (iBX/g_uiMaxCUWidth); 4046 #endif 4037 4047 4038 4048 assert(uiCUAddrBase < cBaseColPic->getNumCUsInFrame()); 4039 4049 4050 #if LAYER_CTB 4051 UInt uiRasterAddrBase = ( iBY - (iBY/baseMaxCUHeight)*baseMaxCUHeight ) / baseMinUnitSize * cBaseColPic->getNumPartInWidth() + ( iBX - (iBX/baseMaxCUWidth)*baseMaxCUWidth ) / baseMinUnitSize; 4052 4053 uiAbsPartIdxBase = g_auiLayerRasterToZscan[cBaseColPic->getLayerId()][uiRasterAddrBase]; 4054 #else 4040 4055 UInt uiRasterAddrBase = (iBY - (iBY/g_uiMaxCUHeight)*g_uiMaxCUHeight)/uiMinUnitSize*cBaseColPic->getNumPartInWidth() 4041 4056 + (iBX - (iBX/g_uiMaxCUWidth)*g_uiMaxCUWidth)/uiMinUnitSize; 4042 4057 4043 4058 uiAbsPartIdxBase = g_auiRasterToZscan[uiRasterAddrBase]; 4059 #endif 4044 4060 4045 4061 return cBaseColPic->getCU(uiCUAddrBase);
Note: See TracChangeset for help on using the changeset viewer.