Changeset 1136 in SHVCSoftware


Ignore:
Timestamp:
7 Jul 2015, 23:12:48 (9 years ago)
Author:
seregin
Message:

macro cleanup: SUB_LAYERS_IN_LAYER_SET

Location:
branches/SHM-dev/source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1135 r1136  
    16921692#endif
    16931693#endif
    1694 #if SUB_LAYERS_IN_LAYER_SET
     1694
    16951695  vps->calculateMaxSLInLayerSets();
    1696 #endif
     1696
    16971697  // Initialize dpb_size_table() for all ouput layer sets in the VPS extension
    16981698  for(i = 1; i < vps->getNumOutputLayerSets(); i++)
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1135 r1136  
    31553155  }
    31563156}
    3157 #endif
    31583157
    31593158#if DERIVE_LAYER_ID_LIST_VARIABLES
     
    36093608}
    36103609#endif
    3611 #if SUB_LAYERS_IN_LAYER_SET
     3610
    36123611Void TComVPS::calculateMaxSLInLayerSets()
    36133612{
     
    36223621  }
    36233622}
    3624 #endif
    36253623
    36263624#if REPN_FORMAT_IN_VPS
     
    38143812#endif
    38153813
    3816 #if SVC_EXTENSION
     3814
    38173815Bool TComSlice::setBaseColPic(  TComList<TComPic*>& rcListPic, UInt refLayerIdc )
    38183816
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1135 r1136  
    13161316  Void  checkNecessaryLayerFlagCondition();
    13171317#endif
    1318 #if SUB_LAYERS_IN_LAYER_SET
    13191318  Void  calculateMaxSLInLayerSets();
    1320 #endif
    13211319#endif //SVC_EXTENSION
    13221320};
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1135 r1136  
    6161#endif
    6262#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 function
    6463#define VPS_VUI_BSP_HRD_PARAMS           1      ///< JCTVC-R0231: Define the VPS VUI BSP hrd_params() as a separate function, and apply changes adopted.
    6564#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  
    35233523{
    35243524  UInt uiCode;
    3525 #if SUB_LAYERS_IN_LAYER_SET
     3525
    35263526  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
    35343529  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    3535 #endif
    3536   {
    3537     UInt maxSLMinus1 = 0;
    3538     Int optLsIdx = vps->getOutputLayerSetIdx( i );
    3539 #if BITRATE_PICRATE_SIGNALLING
    3540     optLsIdx = i;
    3541 #endif
    3542     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_SIGNALLING
    3548     vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);
    3549 #endif
    3550   }
    3551 #endif
    3552 #endif
    3553 
    3554   vps->deriveNumberOfSubDpbs();
    3555 
    3556   for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    35573530  {
    35583531    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
    35593532
    35603533    READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]");  vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false );
    3561 #if SUB_LAYERS_IN_LAYER_SET
     3534
    35623535    for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++)
    3563 #else
    3564 #if DPB_PARAMS_MAXTLAYERS
    3565 #if BITRATE_PICRATE_SIGNALLING
    3566     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)
    3567 #else
    3568     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)
    3569 #endif
    3570 #else
    3571     for(Int j = 0; j <= vps->getMaxTLayers(); j++)
    3572 #endif
    3573 #endif
    35743536    {
    35753537      if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) )
     
    36093571    }
    36103572  }
    3611 
    3612 #if !SUB_LAYERS_IN_LAYER_SET
    3613 #if BITRATE_PICRATE_SIGNALLING
    3614   if( MaxSubLayersInLayerSetMinus1 )
    3615   {
    3616     delete [] MaxSubLayersInLayerSetMinus1;
    3617   }
    3618 #endif
    3619 #endif
    36203573
    36213574  // Infer values when not signalled
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1135 r1136  
    24152415Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps)
    24162416{
    2417 #if !SUB_LAYERS_IN_LAYER_SET  // MaxSLInLayerSets calculated earlier in the encoder
    2418 #if DPB_PARAMS_MAXTLAYERS
    2419 #if BITRATE_PICRATE_SIGNALLING
    2420     Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()];
    2421     for(Int i = 0; i < vps->getNumLayerSets(); i++)
    2422 #else
    2423     Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()];
    2424     for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    2425 #endif
    2426     {
    2427         UInt maxSLMinus1 = 0;
    2428         Int optLsIdx = vps->getOutputLayerSetIdx( i );
    2429 #if BITRATE_PICRATE_SIGNALLING
    2430         optLsIdx = i;
    2431 #endif
    2432         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_SIGNALLING
    2438         vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]);
    2439 #endif
    2440     }
    2441 #endif
    2442 #endif
    2443    
    2444    
    24452417  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    24462418  {
     
    24482420
    24492421    WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]");
    2450 #if SUB_LAYERS_IN_LAYER_SET
     2422
    24512423    for(Int j = 0; j <= vps->getMaxSLayersInLayerSetMinus1( layerSetIdxForOutputLayerSet ); j++)
    2452 #else
    2453 #if DPB_PARAMS_MAXTLAYERS
    2454 #if BITRATE_PICRATE_SIGNALLING
    2455     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++)
    2456 #else
    2457     for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++)
    2458 #endif
    2459 #else
    2460     for(Int j = 0; j < vps->getMaxTLayers(); j++)
    2461 #endif
    2462 #endif
    24632424    {
    24642425      if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) )
     
    24812442    }
    24822443  }
    2483 
    2484 #if !SUB_LAYERS_IN_LAYER_SET
    2485 #if BITRATE_PICRATE_SIGNALLING
    2486   if( MaxSubLayersInLayerSetMinus1 )
    2487   {
    2488     delete [] MaxSubLayersInLayerSetMinus1;
    2489   }
    2490 #endif
    2491 #endif
    24922444}
    24932445#endif
Note: See TracChangeset for help on using the changeset viewer.