Changeset 337 in SHVCSoftware for branches/SHM-3.0-dev
- Timestamp:
- 15 Aug 2013, 14:59:46 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.0-dev/source/App/TAppEncoder/TAppEncTop.cpp
r334 r337 888 888 } 889 889 #endif 890 #if N0120_MAX_TID_REF_PRESENT_FLAG 891 vps->setMaxTidIlRefPicsPlus1PresentFlag(true); 892 if (vps->getMaxTidIlRefPicsPlus1PresentFlag()) 893 { 894 for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++) 895 { 896 vps->setMaxSublayerForIlpPlus1(i, vps->getMaxTLayers()+1); 897 } 898 } 899 else 900 { 901 for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++) 902 { 903 vps->setMaxSublayerForIlpPlus1(i, 7); 904 } 905 } 906 #endif 890 907 #if ILP_SSH_SIG 891 908 vps->setIlpSshSignalingEnabledFlag(true); -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r334 r337 1662 1662 #endif 1663 1663 #if JCTVC_M0203_INTERLAYER_PRED_IDC 1664 #if N0120_MAX_TID_REF_PRESENT_FLAG 1665 m_maxTidIlRefPicsPlus1PresentFlag = true; 1666 #endif 1664 1667 for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++) 1665 1668 { -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComSlice.h
r334 r337 494 494 UInt m_maxSublayerForIlpPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1]; 495 495 #endif 496 #if N0120_MAX_TID_REF_PRESENT_FLAG 497 Bool m_maxTidIlRefPicsPlus1PresentFlag; 498 #endif 496 499 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 497 500 Bool m_singleLayerForNonIrapFlag; … … 660 663 Void setMaxSublayerForIlpPlus1(Int layerId, UInt maxSublayer) { m_maxSublayerForIlpPlus1[layerId] = maxSublayer; } 661 664 #endif 665 #if N0120_MAX_TID_REF_PRESENT_FLAG 666 Bool getMaxTidIlRefPicsPlus1PresentFlag() { return m_maxTidIlRefPicsPlus1PresentFlag ;} 667 Void setMaxTidIlRefPicsPlus1PresentFlag(Bool x) { m_maxTidIlRefPicsPlus1PresentFlag = x;} 668 #endif 662 669 #if M0040_ADAPTIVE_RESOLUTION_CHANGE 663 670 Bool getSingleLayerForNonIrapFlag() { return m_singleLayerForNonIrapFlag; } -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h
r336 r337 112 112 #if JCTVC_M0203_INTERLAYER_PRED_IDC 113 113 #define ILR_RESTR 1 ///< JCTVC-M0209 Inter-layer RPS and RPL 114 #define N0120_MAX_TID_REF_PRESENT_FLAG 1 ///< JCTVC-N0120 max_tid_ref_pics_plus1_present_flag 114 115 #endif 115 116 #if REF_IDX_MFM -
branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r328 r337 951 951 #endif 952 952 #if JCTVC_M0203_INTERLAYER_PRED_IDC 953 #if N0120_MAX_TID_REF_PRESENT_FLAG 954 READ_FLAG( uiCode, "max_tid_il_ref_pics_plus1_present_flag"); vps->setMaxTidIlRefPicsPlus1PresentFlag(uiCode ? true : false); 955 if (vps->getMaxTidIlRefPicsPlus1PresentFlag()) 956 { 957 for(i = 0; i < vps->getMaxLayers() - 1; i++) 958 { 959 READ_CODE( 3, uiCode, "max_sublayer_for_ilp_plus1[i]" ); vps->setMaxSublayerForIlpPlus1(i, uiCode); 960 assert( uiCode <= vps->getMaxTLayers() ); 961 } 962 } 963 else 964 { 965 for(i = 0; i < vps->getMaxLayers() - 1; i++) 966 { 967 vps->setMaxSublayerForIlpPlus1(i, 7); 968 } 969 } 970 #else 953 971 for(i = 0; i < vps->getMaxLayers() - 1; i++) 954 972 { … … 956 974 assert( uiCode <= vps->getMaxTLayers() ); 957 975 } 976 #endif 958 977 #endif 959 978 #if ILP_SSH_SIG -
branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r328 r337 749 749 #endif 750 750 #if JCTVC_M0203_INTERLAYER_PRED_IDC 751 #if N0120_MAX_TID_REF_PRESENT_FLAG 752 WRITE_FLAG( vps->getMaxTidIlRefPicsPlus1PresentFlag(), "max_tid_il_ref_pics_plus1_present_flag"); 753 if (vps->getMaxTidIlRefPicsPlus1PresentFlag()) 754 { 755 for( i = 0; i < vps->getMaxLayers() - 1; i++) 756 { 757 WRITE_CODE(vps->getMaxSublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" ); 758 } 759 } 760 #else 751 761 for( i = 0; i < vps->getMaxLayers() - 1; i++) 752 762 { 753 763 WRITE_CODE(vps->getMaxSublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" ); 754 764 } 765 #endif 755 766 #endif 756 767 #if ILP_SSH_SIG
Note: See TracChangeset for help on using the changeset viewer.