Changeset 614 in SHVCSoftware for branches/SHM-5.1-dev/source/Lib/TLibEncoder
- Timestamp:
- 12 Feb 2014, 04:01:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r613 r614 1003 1003 #endif 1004 1004 Int lsIdx = vps->getOutputLayerSetIdx(i); 1005 #if NUM_OL_FLAGS 1006 for(j = 0; j < vps->getNumLayersInIdList(lsIdx) ; j++) 1007 #else 1005 1008 for(j = 0; j < vps->getNumLayersInIdList(lsIdx) - 1; j++) 1009 #endif 1006 1010 { 1007 1011 WRITE_FLAG( vps->getOutputLayerFlag(i,j), "output_layer_flag[i][j]"); … … 1245 1249 Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps) 1246 1250 { 1251 #if DPB_PARAMS_MAXTLAYERS 1252 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()]; 1253 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1254 { 1255 UInt maxSLMinus1 = 0; 1256 #if CHANGE_NUMSUBDPB_IDX 1257 Int optLsIdx = vps->getOutputLayerSetIdx( i ); 1258 #else 1259 Int optLsIdx = i; 1260 #endif 1261 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) { 1262 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k); 1263 maxSLMinus1 = max(maxSLMinus1, vps->getMaxTSLayersMinus1(vps->getLayerIdInVps(lId))); 1264 } 1265 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1; 1266 } 1267 #endif 1268 1247 1269 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1248 1270 { … … 1250 1272 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 1251 1273 #endif 1252 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 1274 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 1275 #if DPB_PARAMS_MAXTLAYERS 1276 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++) 1277 #else 1253 1278 for(Int j = 0; j < vps->getMaxTLayers(); j++) 1279 #endif 1254 1280 { 1255 1281 if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) )
Note: See TracChangeset for help on using the changeset viewer.