Changeset 744 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder
- Timestamp:
- 25 Apr 2014, 20:16:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r742 r744 1371 1371 { 1372 1372 #if DPB_PARAMS_MAXTLAYERS 1373 #if BITRATE_PICRATE_SIGNALLING 1374 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()]; 1375 for(Int i = 0; i < vps->getNumLayerSets(); i++) 1376 #else 1373 1377 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()]; 1374 1378 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1379 #endif 1375 1380 { 1376 1381 UInt maxSLMinus1 = 0; … … 1380 1385 Int optLsIdx = i; 1381 1386 #endif 1387 #if BITRATE_PICRATE_SIGNALLING 1388 optLsIdx = i; 1389 #endif 1382 1390 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) { 1383 1391 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k); … … 1385 1393 } 1386 1394 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1; 1387 } 1388 #endif 1395 #if BITRATE_PICRATE_SIGNALLING 1396 vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]); 1397 #endif 1398 } 1399 #endif 1400 1389 1401 1390 1402 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) … … 1395 1407 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 1396 1408 #if DPB_PARAMS_MAXTLAYERS 1409 #if BITRATE_PICRATE_SIGNALLING 1410 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++) 1411 #else 1397 1412 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++) 1413 #endif 1398 1414 #else 1399 1415 for(Int j = 0; j < vps->getMaxTLayers(); j++) … … 1463 1479 for( i = 0; i < vps->getNumLayerSets(); i++ ) 1464 1480 { 1481 #if BITRATE_PICRATE_SIGNALLING 1482 for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ ) 1483 #else 1465 1484 for( j = 0; j < vps->getMaxTLayers(); j++ ) 1485 #endif 1466 1486 { 1467 1487 if( vps->getBitRatePresentVpsFlag() )
Note: See TracChangeset for help on using the changeset viewer.