Changeset 1136 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 7 Jul 2015, 23:12:48 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1135 r1136 3523 3523 { 3524 3524 UInt uiCode; 3525 #if SUB_LAYERS_IN_LAYER_SET 3525 3526 3526 vps->calculateMaxSLInLayerSets(); 3527 #else 3528 #if DPB_PARAMS_MAXTLAYERS 3529 #if BITRATE_PICRATE_SIGNALLING 3530 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()]; 3531 for(Int i = 0; i < vps->getNumLayerSets(); i++) 3532 #else 3533 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()]; 3527 vps->deriveNumberOfSubDpbs(); 3528 3534 3529 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 3535 #endif3536 {3537 UInt maxSLMinus1 = 0;3538 Int optLsIdx = vps->getOutputLayerSetIdx( i );3539 #if BITRATE_PICRATE_SIGNALLING3540 optLsIdx = i;3541 #endif3542 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) {3543 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k);3544 maxSLMinus1 = max(maxSLMinus1, vps->getMaxTSLayersMinus1(vps->getLayerIdxInVps(lId)));3545 }3546 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1;3547 #if BITRATE_PICRATE_SIGNALLING3548 vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);3549 #endif3550 }3551 #endif3552 #endif3553 3554 vps->deriveNumberOfSubDpbs();3555 3556 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)3557 3530 { 3558 3531 Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i ); 3559 3532 3560 3533 READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]"); vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false ); 3561 #if SUB_LAYERS_IN_LAYER_SET 3534 3562 3535 for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++) 3563 #else3564 #if DPB_PARAMS_MAXTLAYERS3565 #if BITRATE_PICRATE_SIGNALLING3566 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)3567 #else3568 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)3569 #endif3570 #else3571 for(Int j = 0; j <= vps->getMaxTLayers(); j++)3572 #endif3573 #endif3574 3536 { 3575 3537 if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) ) … … 3609 3571 } 3610 3572 } 3611 3612 #if !SUB_LAYERS_IN_LAYER_SET3613 #if BITRATE_PICRATE_SIGNALLING3614 if( MaxSubLayersInLayerSetMinus1 )3615 {3616 delete [] MaxSubLayersInLayerSetMinus1;3617 }3618 #endif3619 #endif3620 3573 3621 3574 // Infer values when not signalled
Note: See TracChangeset for help on using the changeset viewer.