Changeset 1176 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 8 Jul 2015, 02:33:56 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
-
TComSlice.cpp (modified) (4 diffs)
-
TComSlice.h (modified) (2 diffs)
-
TypeDef.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1173 r1176 2023 2023 } 2024 2024 } 2025 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 2025 2026 2026 m_tilesNotInUseFlag = true; 2027 m_wppNotInUseFlag = true; 2027 2028 ::memset(m_tilesInUseFlag, 0, sizeof(m_tilesInUseFlag)); 2028 2029 ::memset(m_loopFilterNotAcrossTilesFlag, 0, sizeof(m_loopFilterNotAcrossTilesFlag)); 2029 #endif2030 2030 ::memset(m_tileBoundariesAlignedFlag, 0, sizeof(m_tileBoundariesAlignedFlag)); 2031 #if VPS_VUI_WPP_NOT_IN_USE__FLAG2032 m_wppNotInUseFlag = true;2033 2031 ::memset(m_wppInUseFlag, 0, sizeof(m_wppInUseFlag)); 2034 #endif2035 2032 2036 2033 m_ilpRestrictedRefLayersFlag = false; … … 3151 3148 } 3152 3149 #endif 3153 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 3150 3154 3151 Void TComVPS::setTilesNotInUseFlag(Bool x) 3155 3152 { 3156 3153 m_tilesNotInUseFlag = x; 3157 if (m_tilesNotInUseFlag) 3158 { 3159 for (int i = 0; i < getMaxLayers(); i++) 3154 3155 if( m_tilesNotInUseFlag ) 3156 { 3157 for( Int i = 0; i < getMaxLayers(); i++ ) 3160 3158 { 3161 3159 m_tilesInUseFlag[i] = m_loopFilterNotAcrossTilesFlag[i] = m_tilesNotInUseFlag; 3162 3160 } 3163 } 3164 3165 if (m_tilesNotInUseFlag) 3166 { 3167 for (int i = 1; i < getMaxLayers(); i++) 3168 { 3169 for(int j = 0; j < getNumDirectRefLayers(getLayerIdInNuh(i)); j++) 3161 3162 for( Int i = 1; i < getMaxLayers(); i++ ) 3163 { 3164 for( Int j = 0; j < getNumDirectRefLayers(getLayerIdInNuh(i)); j++) 3170 3165 { 3171 3166 setTileBoundariesAlignedFlag(i, j, m_tilesNotInUseFlag); … … 3174 3169 } 3175 3170 } 3176 #endif 3177 3178 #if VPS_VUI_WPP_NOT_IN_USE__FLAG 3171 3179 3172 Void TComVPS::setWppNotInUseFlag(Bool x) 3180 3173 { 3181 3174 m_wppNotInUseFlag = x; 3182 if (m_wppNotInUseFlag) 3183 { 3184 for (int i = 0; i < getMaxLayers(); i++) 3175 3176 if( m_wppNotInUseFlag ) 3177 { 3178 for( Int i = 0; i < getMaxLayers(); i++ ) 3185 3179 { 3186 3180 m_wppInUseFlag[i] = m_wppNotInUseFlag; … … 3188 3182 } 3189 3183 } 3190 #endif3191 3184 3192 3185 Void TComVPS::setRefLayersFlags(Int currLayerId) -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1174 r1176 658 658 Bool m_singleLayerForNonIrapFlag; 659 659 Bool m_higherLayerIrapSkipFlag; 660 #if VPS_VUI_TILES_NOT_IN_USE__FLAG661 660 Bool m_tilesNotInUseFlag; 662 661 Bool m_tilesInUseFlag[MAX_VPS_LAYER_IDX_PLUS1]; 663 662 Bool m_loopFilterNotAcrossTilesFlag[MAX_VPS_LAYER_IDX_PLUS1]; 664 #endif665 663 Bool m_tileBoundariesAlignedFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 666 #if VPS_VUI_WPP_NOT_IN_USE__FLAG667 664 Bool m_wppNotInUseFlag; 668 665 Bool m_wppInUseFlag[MAX_VPS_LAYER_IDX_PLUS1]; 669 #endif670 666 671 667 Bool m_ilpRestrictedRefLayersFlag; … … 1018 1014 Bool getHigherLayerIrapSkipFlag() { return m_higherLayerIrapSkipFlag; } 1019 1015 Void setHigherLayerIrapSkipFlag(Bool x) { m_higherLayerIrapSkipFlag = x; } 1020 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 1021 Bool getTilesNotInUseFlag() { return m_tilesNotInUseFlag; }1016 1017 Bool getTilesNotInUseFlag() { return m_tilesNotInUseFlag; } 1022 1018 Void setTilesNotInUseFlag(Bool x); 1023 Bool getTilesInUseFlag(Int currLayerId) { return m_tilesInUseFlag[currLayerId]; } 1024 Void setTilesInUseFlag(Int currLayerId, Bool x) { m_tilesInUseFlag[currLayerId] = x; } 1025 Bool getLoopFilterNotAcrossTilesFlag(Int currLayerId) { return m_loopFilterNotAcrossTilesFlag[currLayerId]; } 1026 Void setLoopFilterNotAcrossTilesFlag(Int currLayerId, Bool x) { m_loopFilterNotAcrossTilesFlag[currLayerId] = x; } 1027 #endif 1019 Bool getTilesInUseFlag(Int currLayerId) { return m_tilesInUseFlag[currLayerId]; } 1020 Void setTilesInUseFlag(Int currLayerId, Bool x) { m_tilesInUseFlag[currLayerId] = x; } 1021 Bool getLoopFilterNotAcrossTilesFlag(Int currLayerId) { return m_loopFilterNotAcrossTilesFlag[currLayerId]; } 1022 Void setLoopFilterNotAcrossTilesFlag(Int currLayerId, Bool x) { m_loopFilterNotAcrossTilesFlag[currLayerId] = x; } 1028 1023 Bool getTileBoundariesAlignedFlag(Int currLayerId, Int refLayerId) { return m_tileBoundariesAlignedFlag[currLayerId][refLayerId]; } 1029 1024 Void setTileBoundariesAlignedFlag(Int currLayerId, Int refLayerId, Bool x) { m_tileBoundariesAlignedFlag[currLayerId][refLayerId] = x; } 1030 #if VPS_VUI_WPP_NOT_IN_USE__FLAG 1031 Bool getWppNotInUseFlag() { return m_wppNotInUseFlag; } 1025 Bool getWppNotInUseFlag() { return m_wppNotInUseFlag; } 1032 1026 Void setWppNotInUseFlag(Bool x); 1033 Bool getWppInUseFlag(Int currLayerId) { return m_wppInUseFlag[currLayerId]; } 1034 Void setWppInUseFlag(Int currLayerId, Bool x) { m_wppInUseFlag[currLayerId] = x; } 1035 #endif 1027 Bool getWppInUseFlag(Int currLayerId) { return m_wppInUseFlag[currLayerId]; } 1028 Void setWppInUseFlag(Int currLayerId, Bool x) { m_wppInUseFlag[currLayerId] = x; } 1036 1029 1037 1030 Bool getIlpRestrictedRefLayersFlag ( ) { return m_ilpRestrictedRefLayersFlag;} -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1175 r1176 107 107 #define P0297_VPS_POC_LSB_ALIGNED_FLAG 1 ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation 108 108 109 #define VPS_VUI_TILES_NOT_IN_USE__FLAG 1 ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use110 #define VPS_VUI_WPP_NOT_IN_USE__FLAG 1 ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use111 112 109 #define AVC_BASE 1 ///< YUV BL reading for AVC base SVC 113 110
Note: See TracChangeset for help on using the changeset viewer.