Changeset 1136 in SHVCSoftware
- Timestamp:
- 7 Jul 2015, 23:12:48 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1135 r1136 1692 1692 #endif 1693 1693 #endif 1694 #if SUB_LAYERS_IN_LAYER_SET 1694 1695 1695 vps->calculateMaxSLInLayerSets(); 1696 #endif 1696 1697 1697 // Initialize dpb_size_table() for all ouput layer sets in the VPS extension 1698 1698 for(i = 1; i < vps->getNumOutputLayerSets(); i++) -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1135 r1136 3155 3155 } 3156 3156 } 3157 #endif3158 3157 3159 3158 #if DERIVE_LAYER_ID_LIST_VARIABLES … … 3609 3608 } 3610 3609 #endif 3611 #if SUB_LAYERS_IN_LAYER_SET 3610 3612 3611 Void TComVPS::calculateMaxSLInLayerSets() 3613 3612 { … … 3622 3621 } 3623 3622 } 3624 #endif3625 3623 3626 3624 #if REPN_FORMAT_IN_VPS … … 3814 3812 #endif 3815 3813 3816 #if SVC_EXTENSION 3814 3817 3815 Bool TComSlice::setBaseColPic( TComList<TComPic*>& rcListPic, UInt refLayerIdc ) 3818 3816 { -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1135 r1136 1316 1316 Void checkNecessaryLayerFlagCondition(); 1317 1317 #endif 1318 #if SUB_LAYERS_IN_LAYER_SET1319 1318 Void calculateMaxSLInLayerSets(); 1320 #endif1321 1319 #endif //SVC_EXTENSION 1322 1320 }; -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1135 r1136 61 61 #endif 62 62 #define BSP_INIT_ARRIVAL_SEI 1 ///< JCTVC-R0231: Make signalling of vcl_initial_arrival_delay independent of NalHrdBpPresentFlag 63 #define SUB_LAYERS_IN_LAYER_SET 1 ///< Move calculation of MaxSubLayerInLayerSets to a separate function64 63 #define VPS_VUI_BSP_HRD_PARAMS 1 ///< JCTVC-R0231: Define the VPS VUI BSP hrd_params() as a separate function, and apply changes adopted. 65 64 #define O0137_MAX_LAYERID 1 ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1 -
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 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1135 r1136 2415 2415 Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps) 2416 2416 { 2417 #if !SUB_LAYERS_IN_LAYER_SET // MaxSLInLayerSets calculated earlier in the encoder2418 #if DPB_PARAMS_MAXTLAYERS2419 #if BITRATE_PICRATE_SIGNALLING2420 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()];2421 for(Int i = 0; i < vps->getNumLayerSets(); i++)2422 #else2423 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()];2424 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)2425 #endif2426 {2427 UInt maxSLMinus1 = 0;2428 Int optLsIdx = vps->getOutputLayerSetIdx( i );2429 #if BITRATE_PICRATE_SIGNALLING2430 optLsIdx = i;2431 #endif2432 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) {2433 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k);2434 maxSLMinus1 = max(maxSLMinus1, vps->getMaxTSLayersMinus1(vps->getLayerIdxInVps(lId)));2435 }2436 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1;2437 #if BITRATE_PICRATE_SIGNALLING2438 vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);2439 #endif2440 }2441 #endif2442 #endif2443 2444 2445 2417 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 2446 2418 { … … 2448 2420 2449 2421 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 2450 #if SUB_LAYERS_IN_LAYER_SET 2422 2451 2423 for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++) 2452 #else2453 #if DPB_PARAMS_MAXTLAYERS2454 #if BITRATE_PICRATE_SIGNALLING2455 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)2456 #else2457 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)2458 #endif2459 #else2460 for(Int j = 0; j < vps->getMaxTLayers(); j++)2461 #endif2462 #endif2463 2424 { 2464 2425 if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) ) … … 2481 2442 } 2482 2443 } 2483 2484 #if !SUB_LAYERS_IN_LAYER_SET2485 #if BITRATE_PICRATE_SIGNALLING2486 if( MaxSubLayersInLayerSetMinus1 )2487 {2488 delete [] MaxSubLayersInLayerSetMinus1;2489 }2490 #endif2491 #endif2492 2444 } 2493 2445 #endif
Note: See TracChangeset for help on using the changeset viewer.