- Timestamp:
- 20 Jun 2016, 18:45:49 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1567 r1573 96 96 for(UInt i=0; i<NUM_REF_PIC_LIST_01; i++) 97 97 { 98 m_apcCUColocated[i] = NULL;99 98 m_apiMVPIdx[i] = NULL; 100 99 m_apiMVPNum[i] = NULL; … … 209 208 m_pCtuAbove = NULL; 210 209 m_pCtuLeft = NULL; 211 212 for(UInt i=0; i<NUM_REF_PIC_LIST_01; i++)213 {214 m_apcCUColocated[i] = NULL;215 }216 210 } 217 211 … … 376 370 m_pCtuAbove = NULL; 377 371 m_pCtuLeft = NULL; 378 379 380 for(UInt i=0; i<NUM_REF_PIC_LIST_01; i++)381 {382 m_apcCUColocated[i] = NULL;383 }384 372 385 373 } … … 454 442 455 443 memset( m_skipFlag , false, m_uiNumPartition * sizeof( *m_skipFlag ) ); 444 456 445 memset( m_pePartSize , NUMBER_OF_PART_SIZES, m_uiNumPartition * sizeof( *m_pePartSize ) ); 457 446 memset( m_pePredMode , NUMBER_OF_PREDICTION_MODES, m_uiNumPartition * sizeof( *m_pePredMode ) ); … … 506 495 m_pCtuAboveRight = NULL; 507 496 508 509 for(UInt i=0; i<NUM_REF_PIC_LIST_01; i++)510 {511 m_apcCUColocated[i] = NULL;512 }513 514 497 UInt frameWidthInCtus = pcPic->getFrameWidthInCtus(); 515 498 if ( m_ctuRsAddr % frameWidthInCtus ) … … 531 514 { 532 515 m_pCtuAboveRight = pcPic->getCtu( m_ctuRsAddr - frameWidthInCtus + 1 ); 533 }534 535 for(UInt i=0; i<NUM_REF_PIC_LIST_01; i++)536 {537 const RefPicList rpl=RefPicList(i);538 if ( getSlice()->getNumRefIdx( rpl ) > 0 )539 {540 m_apcCUColocated[rpl] = getSlice()->getRefPic( rpl, 0)->getCtu( m_ctuRsAddr );541 }542 516 } 543 517 } … … 710 684 m_pCtuAboveLeft = pcCU->getCtuAboveLeft(); 711 685 m_pCtuAboveRight = pcCU->getCtuAboveRight(); 712 713 for(UInt i=0; i<NUM_REF_PIC_LIST_01; i++)714 {715 m_apcCUColocated[i] = pcCU->getCUColocated(RefPicList(i));716 }717 686 } 718 687 … … 786 755 { 787 756 const RefPicList rpl=RefPicList(i); 788 m_apcCUColocated[rpl] = pcCU->getCUColocated(rpl);789 757 m_apiMVPIdx[rpl]=pcCU->getMVPIdx(rpl) + uiPart; 790 758 m_apiMVPNum[rpl]=pcCU->getMVPNum(rpl) + uiPart; … … 831 799 m_pCtuAbove = pcCU->getCtuAbove(); 832 800 m_pCtuLeft = pcCU->getCtuLeft(); 833 834 for(UInt i=0; i<NUM_REF_PIC_LIST_01; i++)835 {836 m_apcCUColocated[i] = pcCU->getCUColocated(RefPicList(i));837 }838 801 839 802 m_skipFlag = pcCU->getSkipFlag () + uiAbsPartIdx; … … 918 881 memcpy( m_apiMVPIdx[rpl] + uiOffset, pcCU->getMVPIdx(rpl), iSizeInUchar ); 919 882 memcpy( m_apiMVPNum[rpl] + uiOffset, pcCU->getMVPNum(rpl), iSizeInUchar ); 920 m_apcCUColocated[rpl] = pcCU->getCUColocated(rpl);921 883 } 922 884 … … 2711 2673 absPartIdx = g_auiZscanToRaster[partIdxRB]; 2712 2674 Int ctuRsAddr = -1; 2713 2714 2675 if ( ( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelX() + g_auiRasterToPelX[absPartIdx] + m_pcPic->getMinCUWidth () ) < m_pcSlice->getSPS()->getPicWidthInLumaSamples () ) // image boundary check 2715 2676 && ( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelY() + g_auiRasterToPelY[absPartIdx] + m_pcPic->getMinCUHeight() ) < m_pcSlice->getSPS()->getPicHeightInLumaSamples() ) ) -
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.h
r1550 r1573 125 125 TComDataCU* m_pCtuAbove; ///< pointer of above CTU. 126 126 TComDataCU* m_pCtuLeft; ///< pointer of left CTU 127 TComDataCU* m_apcCUColocated[NUM_REF_PIC_LIST_01]; ///< pointer of temporally colocated CU's for both directions128 127 TComMvField m_cMvFieldA; ///< motion vector of position A 129 128 TComMvField m_cMvFieldB; ///< motion vector of position B … … 399 398 TComDataCU* getCtuAboveLeft ( ) { return m_pCtuAboveLeft; } 400 399 TComDataCU* getCtuAboveRight ( ) { return m_pCtuAboveRight; } 401 TComDataCU* getCUColocated ( RefPicList eRefPicList ) { return m_apcCUColocated[eRefPicList]; }402 400 Bool CUIsFromSameSlice ( const TComDataCU *pCU /* Can be NULL */ ) const { return ( pCU!=NULL && pCU->getSlice()->getSliceCurStartCtuTsAddr() == getSlice()->getSliceCurStartCtuTsAddr() ); } 403 401 Bool CUIsFromSameTile ( const TComDataCU *pCU /* Can be NULL */ ) const;
Note: See TracChangeset for help on using the changeset viewer.