Changeset 1195 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 19:35:33 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1191 r1195 609 609 610 610 #if SVC_EXTENSION 611 #if RPL_INIT_N0316_N0082 611 // initial reference picture list construction 612 612 if( m_layerId > 0 ) 613 613 { … … 622 622 } 623 623 } 624 #endif625 624 #endif //SVC_EXTENSION 625 626 626 for ( i=0; i<NumPocStCurr1; i++, cIdx++) 627 627 { … … 632 632 rpsCurrList0[cIdx] = RefPicSetLtCurr[i]; 633 633 } 634 #if !RPL_INIT_N0316_N0082 635 #if SVC_EXTENSION 636 if( m_layerId > 0 ) 637 { 638 for( i = 0; i < m_activeNumILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++) 639 { 640 Int refLayerIdc = m_interLayerPredLayerIdc[i]; 641 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerIdx(), getLayerIdx()); 642 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) 643 { 644 rpsCurrList0[cIdx] = ilpPic[refLayerIdc]; 645 } 646 } 647 } 648 #endif 649 #endif 634 650 635 assert(cIdx == numPocTotalCurr); 651 636 … … 691 676 assert(cIdx >= 0 && cIdx < numPocTotalCurr); 692 677 m_apcRefPicList[REF_PIC_LIST_0][rIdx] = rpsCurrList0[ cIdx ]; 693 #if RPL_INIT_N0316_N0082 678 679 #if SVC_EXTENSION 694 680 m_bIsUsedAsLongTerm[0][rIdx] = ( cIdx >= NumPocStCurr0 && cIdx < NumPocStCurr0 + m_activeNumILRRefIdx ) || ( cIdx >= NumPocStCurr0 + NumPocStCurr1 + m_activeNumILRRefIdx ); 695 681 #else … … 3938 3924 TComRefPicListModification* refPicListModification = &m_RefPicListModification; 3939 3925 Int numberOfRpsCurrTempList = this->getNumRpsCurrTempList(); // total number of ref pics in listTemp0 including inter-layer ref pics 3940 #if RPL_INIT_N0316_N00823926 #if SVC_EXTENSION 3941 3927 Int numberOfPocBeforeCurr = this->getNumNegativeRpsCurrTempList(); // number of negative temporal ref pics 3942 3928 #endif … … 3946 3932 3947 3933 //set L0 inter-layer reference picture modification 3948 #if RPL_INIT_N0316_N00823934 #if SVC_EXTENSION 3949 3935 Bool hasModification = (m_aiNumRefIdx[REF_PIC_LIST_0] == (numberOfPocBeforeCurr + m_activeNumILRRefIdx)) ? false : true; 3950 3936 … … 3980 3966 for(Int i = includeNumILRP; i > 0; i-- ) 3981 3967 { 3982 #if RPL_INIT_N0316_N00823983 if( (numberOfPocBeforeCurr) >= m_aiNumRefIdx[REF_PIC_LIST_0])3968 #if SVC_EXTENSION 3969 if( numberOfPocBeforeCurr >= m_aiNumRefIdx[REF_PIC_LIST_0] ) 3984 3970 { 3985 3971 refPicListModification->setRefPicSetIdxL0(m_aiNumRefIdx[REF_PIC_LIST_0] - i, numberOfPocBeforeCurr + includeNumILRP - i); … … 3988 3974 { 3989 3975 refPicListModification->setRefPicSetIdxL0(m_aiNumRefIdx[REF_PIC_LIST_0] - i, numberOfPocBeforeCurr + includeNumILRP - i); 3990 for (Int j = numberOfPocBeforeCurr; j < (m_aiNumRefIdx[REF_PIC_LIST_0] - i); j++)3976 for( Int j = numberOfPocBeforeCurr; j < (m_aiNumRefIdx[REF_PIC_LIST_0] - i); j++ ) 3991 3977 { 3992 3978 assert( j + includeNumILRP < numberOfRpsCurrTempList ); … … 4033 4019 } 4034 4020 4035 #if RPL_INIT_N0316_N00824036 4021 Int TComSlice::getNumNegativeRpsCurrTempList() 4037 4022 { … … 4042 4027 4043 4028 Int numPocBeforeCurr = 0; 4029 4044 4030 for( UInt i = 0; i < m_pcRPS->getNumberOfNegativePictures(); i++ ) 4045 4031 { 4046 if( m_pcRPS->getUsed(i))4032 if( m_pcRPS->getUsed(i) ) 4047 4033 { 4048 4034 numPocBeforeCurr++; … … 4052 4038 return numPocBeforeCurr; 4053 4039 } 4054 #endif4055 4040 #endif //SVC_EXTENSION 4056 4041 -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1191 r1195 2351 2351 Void setCrossLayerBLAFlag (Bool b) { m_bCrossLayerBLAFlag = b; } 2352 2352 2353 #if RPL_INIT_N0316_N00822354 2353 Int getNumNegativeRpsCurrTempList(); 2355 #endif2356 2354 2357 2355 #if REPN_FORMAT_IN_VPS -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1194 r1195 84 84 #define POC_RESET_INFO_INFERENCE 1 ///< JCTVC-Q0146: Infer the value of poc_reset_info_present_flag when not present 85 85 #define REPN_FORMAT_IN_VPS 1 ///< JCTVC-N0092: Signal represenation format (spatial resolution, bit depth, colour format) in the VPS 86 #define RPL_INIT_N0316_N0082 1 ///< JCTVC-N0316, JCTVC-N0082: initial reference picture list construction87 86 #define SCALINGLIST_INFERRING 1 ///< JCTVC-N0371: inter-layer scaling list 88 87 #define P0297_VPS_POC_LSB_ALIGNED_FLAG 1 ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation
Note: See TracChangeset for help on using the changeset viewer.