Changeset 323 in SHVCSoftware for branches/SHM-3.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 2 Aug 2013, 22:59:06 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.