Changeset 187 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibEncoder
- Timestamp:
- 12 May 2013, 18:11:47 (12 years ago)
- Location:
- branches/SHM-2.0-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r185 r187 556 556 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA); 557 557 } 558 #if ZERO_NUM_DIRECT_LAYERS 559 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) 560 { 561 pcSlice->setSliceType(I_SLICE); 562 } 563 else 564 #endif 558 565 if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() ) 559 566 { … … 657 664 658 665 #if REF_IDX_FRAMEWORK 666 #if ZERO_NUM_DIRECT_LAYERS 667 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 668 #else 659 669 if(m_layerId > 0) 670 #endif 660 671 { 661 672 #if JCTVC_M0458_INTERLAYER_RPS_SIG … … 690 701 691 702 #if SVC_EXTENSION 703 #if ZERO_NUM_DIRECT_LAYERS 704 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 705 #else 692 706 if(m_layerId > 0) 707 #endif 693 708 { 694 709 #if !IDR_ALIGNMENT … … 723 738 // Set reference list 724 739 #if REF_IDX_FRAMEWORK 740 #if ZERO_NUM_DIRECT_LAYERS 741 if(m_layerId == 0 || ( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 ) ) 742 #else 725 743 if(m_layerId == 0) 744 #endif 726 745 { 727 746 pcSlice->setRefPicList( rcListPic); … … 731 750 #endif 732 751 #if REF_IDX_FRAMEWORK 752 #if ZERO_NUM_DIRECT_LAYERS 753 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 754 #else 733 755 if(m_layerId > 0) 756 #endif 734 757 { 735 758 m_pcEncTop->setILRPic(pcPic); -
branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r175 r187 1193 1193 if( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() <= 0 ) 1194 1194 { 1195 #if ZERO_NUM_DIRECT_LAYERS 1196 return (TEncTop *)getLayerEnc( 0 ); 1197 #else 1195 1198 return NULL; 1199 #endif 1196 1200 } 1197 1201
Note: See TracChangeset for help on using the changeset viewer.