Changeset 1152 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 00:24:37 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1151 r1152 1405 1405 #endif 1406 1406 #endif 1407 #if VPS_TSLAYERS 1407 1408 1408 vps->setMaxTSLayersPresentFlag(true); 1409 1409 … … 1412 1412 vps->setMaxTSLayersMinus1(i, vps->getMaxTLayers()-1); 1413 1413 } 1414 #endif 1414 1415 1415 vps->setMaxTidRefPresentFlag(m_maxTidRefPresentFlag); 1416 1416 if (vps->getMaxTidRefPresentFlag()) -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1151 r1152 692 692 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_IDX_PLUS1 - 1][MAX_VPS_LAYER_IDX_PLUS1]; 693 693 Bool m_maxTidRefPresentFlag; 694 #if VPS_TSLAYERS695 694 Bool m_maxTSLayersPresentFlag; 696 695 UInt m_maxTSLayerMinus1[MAX_LAYERS]; 697 #endif698 696 Bool m_singleLayerForNonIrapFlag; 699 697 Bool m_higherLayerIrapSkipFlag; … … 1092 1090 UInt getMaxTidIlRefPicsPlus1(Int refLayerIdx, Int layerIdx) { return m_maxTidIlRefPicsPlus1[refLayerIdx][layerIdx]; } 1093 1091 Void setMaxTidIlRefPicsPlus1(Int refLayerIdx, Int layerIdx, UInt maxSublayer) { m_maxTidIlRefPicsPlus1[refLayerIdx][layerIdx] = maxSublayer; } 1094 Bool getMaxTidRefPresentFlag() { return m_maxTidRefPresentFlag ;} 1095 Void setMaxTidRefPresentFlag(Bool x) { m_maxTidRefPresentFlag = x;} 1096 #if VPS_TSLAYERS 1097 Bool getMaxTSLayersPresentFlag() { return m_maxTSLayersPresentFlag ;} 1098 Void setMaxTSLayersPresentFlag(Bool x) { m_maxTSLayersPresentFlag = x;} 1099 UInt getMaxTSLayersMinus1(Int layerIdx) { return m_maxTSLayerMinus1[layerIdx];} 1100 Void setMaxTSLayersMinus1(Int layerIdx, UInt maxTSublayer) { m_maxTSLayerMinus1[layerIdx] = maxTSublayer;} 1101 #endif 1102 Bool getSingleLayerForNonIrapFlag() { return m_singleLayerForNonIrapFlag; } 1103 Void setSingleLayerForNonIrapFlag(Bool x) { m_singleLayerForNonIrapFlag = x; } 1104 Bool getHigherLayerIrapSkipFlag() { return m_higherLayerIrapSkipFlag; } 1105 Void setHigherLayerIrapSkipFlag(Bool x) { m_higherLayerIrapSkipFlag = x; } 1092 Bool getMaxTidRefPresentFlag() { return m_maxTidRefPresentFlag; } 1093 Void setMaxTidRefPresentFlag(Bool x) { m_maxTidRefPresentFlag = x; } 1094 Bool getMaxTSLayersPresentFlag() { return m_maxTSLayersPresentFlag; } 1095 Void setMaxTSLayersPresentFlag(Bool x) { m_maxTSLayersPresentFlag = x; } 1096 UInt getMaxTSLayersMinus1(Int layerIdx) { return m_maxTSLayerMinus1[layerIdx]; } 1097 Void setMaxTSLayersMinus1(Int layerIdx, UInt maxTSublayer) { m_maxTSLayerMinus1[layerIdx] = maxTSublayer; } 1098 Bool getSingleLayerForNonIrapFlag() { return m_singleLayerForNonIrapFlag; } 1099 Void setSingleLayerForNonIrapFlag(Bool x) { m_singleLayerForNonIrapFlag = x; } 1100 Bool getHigherLayerIrapSkipFlag() { return m_higherLayerIrapSkipFlag; } 1101 Void setHigherLayerIrapSkipFlag(Bool x) { m_higherLayerIrapSkipFlag = x; } 1106 1102 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 1107 1103 Bool getTilesNotInUseFlag() { return m_tilesNotInUseFlag; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1151 r1152 147 147 #define MAX_ONE_RESAMPLING_DIRECT_LAYERS 1 ///< Allow maximum of one resampling process for direct reference layers 148 148 #define MOTION_RESAMPLING_CONSTRAINT 1 ///< JCTVC-N0108: Allow maximum of one motion resampling process for direct reference layers, and use motion inter-layer prediction from the same layer as texture inter-layer prediction. 149 #define VPS_TSLAYERS 1 ///< JCTVC-O0120 signal max temporal sub-layers for each layer150 149 151 150 #define VIEW_ID_RELATED_SIGNALING 1 ///< Introduce syntax elements view_id and view_id_val -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1151 r1152 2823 2823 } 2824 2824 #endif 2825 #if VPS_TSLAYERS 2825 2826 2826 READ_FLAG( uiCode, "vps_sub_layers_max_minus1_present_flag"); vps->setMaxTSLayersPresentFlag(uiCode ? true : false); 2827 2827 … … 2840 2840 } 2841 2841 } 2842 #endif 2842 2843 2843 READ_FLAG( uiCode, "max_tid_ref_present_flag"); vps->setMaxTidRefPresentFlag(uiCode ? true : false); 2844 if (vps->getMaxTidRefPresentFlag())2845 { 2846 for( i = 0; i < vps->getMaxLayers() - 1; i++)2847 { 2848 for( j = i+1; j < vps->getMaxLayers(); j++ )2849 { 2850 if( vps->getDirectDependencyFlag(j, i))2844 if( vps->getMaxTidRefPresentFlag() ) 2845 { 2846 for( i = 0; i < vps->getMaxLayers() - 1; i++ ) 2847 { 2848 for( j = i+1; j < vps->getMaxLayers(); j++ ) 2849 { 2850 if( vps->getDirectDependencyFlag(j, i) ) 2851 2851 { 2852 2852 READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i][j]" ); vps->setMaxTidIlRefPicsPlus1(i, j, uiCode); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1148 r1152 2093 2093 } 2094 2094 #endif 2095 #if VPS_TSLAYERS 2096 2097 if (vps->getMaxTSLayersPresentFlag())2098 2099 for( i = 0; i < vps->getMaxLayers(); i++)2100 2101 2102 2103 2104 #endif 2095 2096 WRITE_FLAG( vps->getMaxTSLayersPresentFlag(), "vps_sub_layers_max_minus1_present_flag"); 2097 if( vps->getMaxTSLayersPresentFlag() ) 2098 { 2099 for( i = 0; i < vps->getMaxLayers(); i++ ) 2100 { 2101 WRITE_CODE(vps->getMaxTSLayersMinus1(i), 3, "sub_layers_vps_max_minus1[i]" ); 2102 } 2103 } 2104 2105 2105 WRITE_FLAG( vps->getMaxTidRefPresentFlag(), "max_tid_ref_present_flag"); 2106 2106 if (vps->getMaxTidRefPresentFlag())
Note: See TracChangeset for help on using the changeset viewer.