Changeset 872 in SHVCSoftware
- Timestamp:
- 18 Aug 2014, 22:31:55 (11 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r869 r872 1306 1306 #endif 1307 1307 #if VPS_TSLAYERS 1308 1309 1310 1311 1312 1313 1308 vps->setMaxTSLayersPresentFlag(true); 1309 1310 for( i = 0; i < vps->getMaxLayers(); i++ ) 1311 { 1312 vps->setMaxTSLayersMinus1(i, vps->getMaxTLayers()-1); 1313 } 1314 1314 #endif 1315 1315 vps->setMaxTidRefPresentFlag(m_maxTidRefPresentFlag); … … 1586 1586 } 1587 1587 } 1588 #endif 1589 #if SUB_LAYERS_IN_LAYER_SET 1590 vps->calculateMaxSLInLayerSets(); 1588 1591 #endif 1589 1592 // Initialize dpb_size_table() for all ouput layer sets in the VPS extension -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r870 r872 3140 3140 } 3141 3141 return numBits; 3142 } 3143 #endif 3144 #if SUB_LAYERS_IN_LAYER_SET 3145 Void TComVPS::calculateMaxSLInLayerSets() 3146 { 3147 for(Int lsIdx = 0; lsIdx < getNumLayerSets(); lsIdx++) 3148 { 3149 UInt maxSLMinus1 = 0; 3150 for(Int k = 0; k < getNumLayersInIdList(lsIdx); k++ ) { 3151 Int lId = getLayerSetLayerIdList(lsIdx, k); 3152 maxSLMinus1 = std::max(maxSLMinus1, getMaxTSLayersMinus1(getLayerIdInVps(lId))); 3153 } 3154 setMaxSLayersInLayerSetMinus1(lsIdx,maxSLMinus1); 3155 } 3142 3156 } 3143 3157 #endif -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r869 r872 1314 1314 Void checkNecessaryLayerFlagCondition(); 1315 1315 #endif 1316 #if SUB_LAYERS_IN_LAYER_SET 1317 Void calculateMaxSLInLayerSets(); 1318 #endif 1316 1319 #endif //SVC_EXTENSION 1317 1320 }; -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r871 r872 60 60 #endif 61 61 #define BSP_INIT_ARRIVAL_SEI 1 ///< JCTVC-R0231: Make signalling of vcl_initial_arrival_delay independent of NalHrdBpPresentFlag 62 #define SUB_LAYERS_IN_LAYER_SET 1 ///< Move calculation of MaxSubLayerInLayerSets to a separate function 62 63 #define O0137_MAX_LAYERID 1 ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1 63 64 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r869 r872 2123 2123 { 2124 2124 UInt uiCode; 2125 #if SUB_LAYERS_IN_LAYER_SET 2126 vps->calculateMaxSLInLayerSets(); 2127 #else 2125 2128 #if DPB_PARAMS_MAXTLAYERS 2126 2129 #if BITRATE_PICRATE_SIGNALLING … … 2151 2154 } 2152 2155 #endif 2156 #endif 2153 2157 2154 2158 #if !RESOLUTION_BASED_DPB … … 2161 2165 #endif 2162 2166 READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]"); vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false ); 2167 #if SUB_LAYERS_IN_LAYER_SET 2168 for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++) 2169 #else 2163 2170 #if DPB_PARAMS_MAXTLAYERS 2164 2171 #if BITRATE_PICRATE_SIGNALLING … … 2169 2176 #else 2170 2177 for(Int j = 0; j <= vps->getMaxTLayers(); j++) 2178 #endif 2171 2179 #endif 2172 2180 { … … 2222 2230 } 2223 2231 2232 #if !SUB_LAYERS_IN_LAYER_SET 2224 2233 #if BITRATE_PICRATE_SIGNALLING 2225 2234 if( MaxSubLayersInLayerSetMinus1 ) … … 2227 2236 delete [] MaxSubLayersInLayerSetMinus1; 2228 2237 } 2238 #endif 2229 2239 #endif 2230 2240 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r869 r872 1506 1506 Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps) 1507 1507 { 1508 #if !SUB_LAYERS_IN_LAYER_SET // MaxSLInLayerSets calculated earlier in the encoder 1508 1509 #if DPB_PARAMS_MAXTLAYERS 1509 1510 #if BITRATE_PICRATE_SIGNALLING … … 1534 1535 } 1535 1536 #endif 1537 #endif 1536 1538 1537 1539 … … 1542 1544 #endif 1543 1545 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 1546 #if SUB_LAYERS_IN_LAYER_SET 1547 for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++) 1548 #else 1544 1549 #if DPB_PARAMS_MAXTLAYERS 1545 1550 #if BITRATE_PICRATE_SIGNALLING … … 1550 1555 #else 1551 1556 for(Int j = 0; j < vps->getMaxTLayers(); j++) 1557 #endif 1552 1558 #endif 1553 1559 { … … 1585 1591 } 1586 1592 1593 #if !SUB_LAYERS_IN_LAYER_SET 1587 1594 #if BITRATE_PICRATE_SIGNALLING 1588 1595 if( MaxSubLayersInLayerSetMinus1 ) … … 1590 1597 delete [] MaxSubLayersInLayerSetMinus1; 1591 1598 } 1599 #endif 1592 1600 #endif 1593 1601 }
Note: See TracChangeset for help on using the changeset viewer.