Changeset 21 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComPattern.cpp
- Timestamp:
- 15 Feb 2012, 19:05:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComPattern.cpp
r5 r21 147 147 if ( iComp == 0 ) 148 148 { 149 #if DEPTH_MAP_GENERATION 150 m_iPatternStride = ( bPrdDepthMap ? pcCU->getPic()->getPredDepthMap()->getStride() : pcCU->getPic()->getStride() ); 151 #else 149 152 m_iPatternStride = pcCU->getPic()->getStride(); 153 #endif 150 154 m_piPatternOrigin = pcPic->getLumaAddr(pcCU->getAddr(), uiAbsZorderIdx) - m_iOffsetAbove * m_iPatternStride - m_iOffsetLeft; 151 155 } 152 156 else 153 157 { 158 #if DEPTH_MAP_GENERATION 159 m_iPatternStride = ( bPrdDepthMap ? pcCU->getPic()->getPredDepthMap()->getCStride() : pcCU->getPic()->getCStride() ); 160 #else 154 161 m_iPatternStride = pcCU->getPic()->getCStride(); 162 #endif 155 163 if ( iComp == 1 ) 156 164 m_piPatternOrigin = pcPic->getCbAddr(pcCU->getAddr(), uiAbsZorderIdx) - m_iOffsetAbove * m_iPatternStride - m_iOffsetLeft; … … 242 250 Void TComPattern::initAdiPattern( TComDataCU* pcCU, UInt uiZorderIdxInPart, UInt uiPartDepth, Int* piAdiBuf, Int iOrgBufStride, Int iOrgBufHeight, Bool& bAbove, Bool& bLeft 243 251 #if DEPTH_MAP_GENERATION 244 , Bool bPrdDepthMap 252 , Bool bPrdDepthMap, UInt uiSubSampExpX, UInt uiSubSampExpY 245 253 #endif 246 254 ) … … 254 262 UInt uiWidth; 255 263 UInt uiHeight; 264 265 #if DEPTH_MAP_GENERATION 266 Int iPicStride = ( bPrdDepthMap ? pcCU->getPic()->getPredDepthMap()->getStride() : pcCU->getPic()->getStride() ); 267 #else 256 268 Int iPicStride = pcCU->getPic()->getStride(); 269 #endif 270 257 271 Int iCuAddr; 258 272 #if REFERENCE_SAMPLE_PADDING … … 375 389 #endif // REFERENCE_SAMPLE_PADDING 376 390 391 #if DEPTH_MAP_GENERATION 392 if ( bPrdDepthMap ) 393 { 394 uiWidth = ( uiCuWidth2 >> uiSubSampExpX ) + 1; 395 uiHeight = ( uiCuHeight2 >> uiSubSampExpY ) + 1; 396 } 397 else 398 { 377 399 uiWidth=uiCuWidth2+1; 378 400 uiHeight=uiCuHeight2+1; 401 } 402 #else 403 uiWidth=uiCuWidth2+1; 404 uiHeight=uiCuHeight2+1; 405 #endif 379 406 380 407 if (((uiWidth<<2)>iOrgBufStride)||((uiHeight<<2)>iOrgBufHeight)) … … 398 425 #if REFERENCE_SAMPLE_PADDING 399 426 #if DEPTH_MAP_GENERATION 427 if ( bPrdDepthMap ) 428 fillReferenceSamples ( pcCU, piRoiOrigin, piAdiTemp, bNeighborFlags, iNumIntraNeighbor, iUnitSize >> uiSubSampExpX, iNumUnitsInCu, iTotalUnits, uiCuWidth >> uiSubSampExpX, uiCuHeight >> uiSubSampExpY, uiWidth, uiHeight, iPicStride, bPrdDepthMap ); 429 else 400 430 fillReferenceSamples ( pcCU, piRoiOrigin, piAdiTemp, bNeighborFlags, iNumIntraNeighbor, iUnitSize, iNumUnitsInCu, iTotalUnits, uiCuWidth, uiCuHeight, uiWidth, uiHeight, iPicStride, bPrdDepthMap ); 401 431 #else
Note: See TracChangeset for help on using the changeset viewer.