Changeset 410 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibEncoder
- Timestamp:
- 8 Oct 2013, 02:34:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r408 r410 662 662 if( pocCurr % m_pcCfg->getIntraPeriod() == 0 ) 663 663 { 664 #if IDR_ALIGNMENT 664 #if N0147_IRAP_ALIGN_FLAG 665 if( m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag()) 666 { 665 667 TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(0)->getListPic(); 666 668 TComPic* picLayer0 = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() ); 669 if( picLayer0->getSlice(0)->isIRAP()) 670 { 671 pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType()); 672 } 673 else 674 { 675 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA); 676 } 677 } 678 #else 679 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA); 680 #endif 681 682 #if IDR_ALIGNMENT 683 TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(0)->getListPic(); 684 TComPic* picLayer0 = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() ); 667 685 if( picLayer0->getSlice(0)->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || picLayer0->getSlice(0)->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP ) 668 {669 pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType());670 }671 else672 #endif 686 { 687 pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType()); 688 } 689 else 690 { 673 691 pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA); 692 } 693 #endif 674 694 } 675 695
Note: See TracChangeset for help on using the changeset viewer.