Changeset 1502 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.cpp
- Timestamp:
- 11 Dec 2015, 00:05:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.cpp
r1483 r1502 219 219 UInt uiBPelY = uiTPelY + (maxCuHeight>>uiDepth) - 1; 220 220 221 #if SVC_EXTENSION222 TComSlice * pcSlice = pcPic->getSlice(pcPic->getCurrSliceIdx());223 224 if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) )225 #else226 221 if( ( uiRPelX < sps.getPicWidthInLumaSamples() ) && ( uiBPelY < sps.getPicHeightInLumaSamples() ) ) 227 #endif228 222 { 229 223 m_pcEntropyDecoder->decodeSplitFlag( pcCU, uiAbsPartIdx, uiDepth ); … … 252 246 uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiIdx] ]; 253 247 254 #if SVC_EXTENSION255 if ( !isLastCtuOfSliceSegment && ( uiLPelX < pcCU->getSlice()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getPicHeightInLumaSamples() ) )256 #else257 248 if ( !isLastCtuOfSliceSegment && ( uiLPelX < sps.getPicWidthInLumaSamples() ) && ( uiTPelY < sps.getPicHeightInLumaSamples() ) ) 258 #endif259 249 { 260 250 xDecodeCU( pcCU, uiIdx, uiDepth+1, isLastCtuOfSliceSegment ); … … 404 394 UInt uiBPelY = uiTPelY + (sps.getMaxCUHeight()>>uiDepth) - 1; 405 395 406 #if SVC_EXTENSION407 if( ( uiRPelX >= pcSlice->getPicWidthInLumaSamples() ) || ( uiBPelY >= pcSlice->getPicHeightInLumaSamples() ) )408 #else409 396 if( ( uiRPelX >= sps.getPicWidthInLumaSamples() ) || ( uiBPelY >= sps.getPicHeightInLumaSamples() ) ) 410 #endif411 397 { 412 398 bBoundary = true; … … 423 409 uiTPelY = pCtu->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiIdx] ]; 424 410 425 #if SVC_EXTENSION426 if( ( uiLPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiTPelY < pcSlice->getPicHeightInLumaSamples() ) )427 #else428 411 if( ( uiLPelX < sps.getPicWidthInLumaSamples() ) && ( uiTPelY < sps.getPicHeightInLumaSamples() ) ) 429 #endif430 412 { 431 413 xDecompressCU(pCtu, uiIdx, uiNextDepth ); … … 501 483 if ( pcCU->getQtRootCbf( 0) ) 502 484 { 503 #if SVC_EXTENSION504 m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ), pcCU->getSlice()->getBitDepths() );505 #else506 485 m_ppcYuvReco[uiDepth]->addClip( m_ppcYuvReco[uiDepth], m_ppcYuvResi[uiDepth], 0, pcCU->getWidth( 0 ), pcCU->getSlice()->getSPS()->getBitDepths() ); 507 #endif508 486 } 509 487 else … … 647 625 #endif 648 626 649 #if SVC_EXTENSION650 const Int clipbd = pcCU->getSlice()->getBitDepth(toChannelType(compID));651 #else652 627 const Int clipbd = sps.getBitDepth(toChannelType(compID)); 653 #endif654 628 #if O0043_BEST_EFFORT_DECODING 655 629 const Int bitDepthDelta = sps.getStreamBitDepth(toChannelType(compID)) - clipbd; … … 834 808 Pel* piPicReco = pcCU->getPic()->getPicYuvRec()->getAddr(compID, pcCU->getCtuRsAddr(), pcCU->getZorderIdxInCtu()+uiPartIdx); 835 809 const UInt uiPicStride = pcCU->getPic()->getPicYuvRec()->getStride(compID); 836 #if SVC_EXTENSION837 const UInt uiPcmLeftShiftBit = pcCU->getSlice()->getBitDepth(toChannelType(compID)) - pcCU->getSlice()->getSPS()->getPCMBitDepth(toChannelType(compID));838 #else839 810 const TComSPS &sps = *(pcCU->getSlice()->getSPS()); 840 811 const UInt uiPcmLeftShiftBit = sps.getBitDepth(toChannelType(compID)) - sps.getPCMBitDepth(toChannelType(compID)); 841 #endif842 812 843 813 for(UInt uiY = 0; uiY < uiHeight; uiY++ )
Note: See TracChangeset for help on using the changeset viewer.