Changeset 323 in SHVCSoftware for branches/SHM-3.0-dev
- Timestamp:
- 2 Aug 2013, 22:59:06 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r313 r323 385 385 386 386 #if REF_IDX_FRAMEWORK 387 #if ZERO_NUM_DIRECT_LAYERS388 387 if( m_layerId == 0 || ( m_layerId > 0 && ( m_activeNumILRRefIdx == 0 || !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) ) ) ) 389 #else390 if ((getLayerId() == 0) ||391 ((getSPS()->getLayerId()) && !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&392 (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) )393 )394 #endif395 388 { 396 389 #endif … … 458 451 #if ILR_RESTR 459 452 Int maxSubLayerForILPPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0; 460 #if ZERO_NUM_DIRECT_LAYERS461 453 if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<= maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) ) 462 #else463 if( m_layerId > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) )464 #endif465 454 #else //#if ILR_RESTR 466 #if ZERO_NUM_DIRECT_LAYERS467 455 if( m_layerId > 0 && m_activeNumILRRefIdx > 0 ) 468 #else469 if( m_layerId > 0 )470 #endif471 456 #endif //#if ILR_RESTR 472 457 { -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h
r322 r323 96 96 #define JCTVC_M0458_INTERLAYER_RPS_SIG 1 ///< implementation of JCTVC-L0178 97 97 #if JCTVC_M0458_INTERLAYER_RPS_SIG 98 #define ZERO_NUM_DIRECT_LAYERS 1 ///< support of zero direct reference layers99 98 #define MAX_ONE_RESAMPLING_DIRECT_LAYERS 1 ///< Allow maximum of one resampling process for direct reference layers 100 99 #endif -
branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r321 r323 907 907 908 908 #if REF_IDX_FRAMEWORK 909 #if ZERO_NUM_DIRECT_LAYERS910 909 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 911 #else912 if(m_layerId > 0)913 #endif914 910 { 915 911 setILRPic(pcPic); … … 1315 1311 if( vps->getNumDirectRefLayers( m_layerId ) <= 0 ) 1316 1312 { 1317 #if ZERO_NUM_DIRECT_LAYERS1318 1313 return (TDecTop *)getLayerDec( 0 ); 1319 #else1320 return NULL;1321 #endif1322 1314 } 1323 1315 -
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r313 r323 645 645 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA); 646 646 } 647 #if ZERO_NUM_DIRECT_LAYERS 647 648 648 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) 649 649 { 650 650 pcSlice->setSliceType(I_SLICE); 651 651 } 652 else 653 #endif 654 if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() ) 652 else if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() ) 655 653 { 656 654 if( (pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && … … 760 758 761 759 #if REF_IDX_FRAMEWORK 762 #if ZERO_NUM_DIRECT_LAYERS763 760 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 764 #else765 if(m_layerId > 0)766 #endif767 761 { 768 762 #if RESTR_CHK … … 820 814 // Set reference list 821 815 #if REF_IDX_FRAMEWORK 822 #if ZERO_NUM_DIRECT_LAYERS823 816 if(m_layerId == 0 || ( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 ) ) 824 #else825 if(m_layerId == 0)826 #endif827 817 { 828 818 pcSlice->setRefPicList( rcListPic); … … 832 822 #endif 833 823 #if REF_IDX_FRAMEWORK 834 #if ZERO_NUM_DIRECT_LAYERS835 824 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 836 #else837 if(m_layerId > 0)838 #endif839 825 { 840 826 m_pcEncTop->setILRPic(pcPic); -
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r313 r323 1204 1204 if( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() <= 0 ) 1205 1205 { 1206 #if ZERO_NUM_DIRECT_LAYERS1207 1206 return (TEncTop *)getLayerEnc( 0 ); 1208 #else1209 return NULL;1210 #endif1211 1207 } 1212 1208
Note: See TracChangeset for help on using the changeset viewer.