Changeset 484 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibCommon
- Timestamp:
- 16 Nov 2013, 00:32:03 (12 years ago)
- Location:
- branches/SHM-4.0-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
-
TComSlice.cpp (modified) (6 diffs)
-
TComSlice.h (modified) (2 diffs)
-
TypeDef.h (modified) (1 diff)
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 -
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComSlice.h
r482 r484 573 573 #endif 574 574 #if JCTVC_M0203_INTERLAYER_PRED_IDC 575 #if O0225_MAX_TID_FOR_REF_LAYERS 576 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1][MAX_VPS_LAYER_ID_PLUS1]; 577 #else 575 578 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1]; 579 #endif 576 580 #endif 577 581 #if N0120_MAX_TID_REF_PRESENT_FLAG … … 792 796 #endif 793 797 #if JCTVC_M0203_INTERLAYER_PRED_IDC 798 #if O0225_MAX_TID_FOR_REF_LAYERS 799 UInt getMaxTidIlRefPicsPlus1(Int layerId, Int refLayerId) { return m_maxTidIlRefPicsPlus1[layerId][refLayerId]; } 800 Void setMaxTidIlRefPicsPlus1(Int layerId, Int refLayerId, UInt maxSublayer) { m_maxTidIlRefPicsPlus1[layerId][refLayerId] = maxSublayer; } 801 #else 794 802 UInt getMaxTidIlRefPicsPlus1(Int layerId) { return m_maxTidIlRefPicsPlus1[layerId]; } 795 803 Void setMaxTidIlRefPicsPlus1(Int layerId, UInt maxSublayer) { m_maxTidIlRefPicsPlus1[layerId] = maxSublayer; } 804 #endif 796 805 #endif 797 806 #if N0120_MAX_TID_REF_PRESENT_FLAG -
branches/SHM-4.0-dev/source/Lib/TLibCommon/TypeDef.h
r479 r484 123 123 #define N0120_MAX_TID_REF_PRESENT_FLAG 1 ///< JCTVC-N0120: max_tid_ref_pics_plus1_present_flag 124 124 #define N0120_MAX_TID_REF_CFG 1 ///< set max_tid_il_ref_pics_plus1 and max_tid_ref_present_flag in the config. file (configuration setting) 125 #define O0225_MAX_TID_FOR_REF_LAYERS 1 125 126 #endif 126 127 #if REF_IDX_MFM
Note: See TracChangeset for help on using the changeset viewer.