Changeset 484 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 16 Nov 2013, 00:32:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r479 r484 456 456 UInt refLayerIdc = m_interLayerPredLayerIdc[i]; 457 457 //inter-layer reference picture 458 458 #if O0225_MAX_TID_FOR_REF_LAYERS 459 Int maxTidIlRefPicsPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId(),m_layerId) : 0; 460 #else 459 461 Int maxTidIlRefPicsPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0; 462 #endif 460 463 if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<= maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) ) 461 464 { … … 491 494 for( i=0; i < m_pcVPS->getNumDirectRefLayers( m_layerId ); i++ ) 492 495 { 496 #if O0225_MAX_TID_FOR_REF_LAYERS 497 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[i]->getSlice(0)->getLayerId(),m_layerId); 498 #else 493 499 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[i]->getSlice(0)->getLayerId()); 500 #endif 494 501 if( ((Int)(ilpPic[i]->getSlice(0)->getTLayer())<= maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[i]->getSlice(0)->getRapPicFlag() ) ) 495 502 { … … 634 641 { 635 642 Int refLayerIdc = m_interLayerPredLayerIdc[i]; 643 #if O0225_MAX_TID_FOR_REF_LAYERS 644 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId(),m_layerId); 645 #else 636 646 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()); 647 #endif 637 648 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) 638 649 { … … 662 673 { 663 674 Int refLayerIdc = m_interLayerPredLayerIdc[i]; 675 #if O0225_MAX_TID_FOR_REF_LAYERS 676 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId(),m_layerId); 677 #else 664 678 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()); 679 #endif 665 680 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) 666 681 { … … 699 714 { 700 715 Int refLayerIdc = m_interLayerPredLayerIdc[i]; 716 #if O0225_MAX_TID_FOR_REF_LAYERS 717 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId(),m_layerId); 718 #else 701 719 Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()); 720 #endif 702 721 if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) ) 703 722 { … … 2013 2032 for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++) 2014 2033 { 2034 #if O0225_MAX_TID_FOR_REF_LAYERS 2035 for( Int j = 0; j < MAX_VPS_LAYER_ID_PLUS1; j++) 2036 { 2037 m_maxTidIlRefPicsPlus1[i][j] = m_uiMaxTLayers + 1; 2038 } 2039 #else 2015 2040 m_maxTidIlRefPicsPlus1[i] = m_uiMaxTLayers + 1; 2041 #endif 2016 2042 } 2017 2043 #endif
Note: See TracChangeset for help on using the changeset viewer.