Changeset 1189 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 03:42:38 (9 years ago)
Author:
seregin
Message:

macro cleanup: DPB_INTERNAL_BL_SIG

Location:
branches/SHM-dev/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1188 r1189  
    117117
    118118#define P0138_USE_ALT_CPB_PARAMS_FLAG    1      ///< JCTVC-P0138: use_alt_cpb_params_flag syntax in buffering period SEI message extension
    119 #define DPB_INTERNAL_BL_SIG              1      ///< JCTVC-R0153: external base layer
    120119#define OLS_IDX_CHK                      1      ///< JCTVC-R0155: Proposal 2 valid range for output_layer_set_idx_to_vps[i]
    121120#define R0157_RESTRICT_PPSID_FOR_CGS_LUT 1      ///< JCTVC-R0157: when pps_pic_parameter_set_id greater than or equal to 8, colour_mapping_enabled_flag shall be equal to 0
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1188 r1189  
    33093309        }
    33103310      }
     3311
    33113312      if( vps->getSubLayerDpbInfoPresentFlag(i, j) )  // If sub-layer DPB information is present
    33123313      {
    33133314        for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++)
    33143315        {
    3315 #if DPB_INTERNAL_BL_SIG
    3316             uiCode=0;
    3317 
    3318         if( vps->getNecessaryLayerFlag(i, k) && ( vps->getBaseLayerInternalFlag() || vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) ) )
    3319 #endif
    3320           READ_UVLC( uiCode, "max_vps_dec_pic_buffering_minus1[i][k][j]" ); vps->setMaxVpsDecPicBufferingMinus1( i, k, j, uiCode );
     3316          uiCode=0;
     3317
     3318          if( vps->getNecessaryLayerFlag(i, k) && ( vps->getBaseLayerInternalFlag() || vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) ) )
     3319          {
     3320            READ_UVLC( uiCode, "max_vps_dec_pic_buffering_minus1[i][k][j]" ); vps->setMaxVpsDecPicBufferingMinus1( i, k, j, uiCode );
     3321          }
    33213322        }
    33223323        READ_UVLC( uiCode, "max_vps_num_reorder_pics[i][j]" );              vps->setMaxVpsNumReorderPics( i, j, uiCode);
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1187 r1189  
    23152315Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps)
    23162316{
    2317   for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
     2317  for( Int i = 1; i < vps->getNumOutputLayerSets(); i++ )
    23182318  {
    23192319    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
     
    23272327        WRITE_FLAG( vps->getSubLayerDpbInfoPresentFlag( i, j), "sub_layer_dpb_info_present_flag[i]"); 
    23282328      }
     2329
    23292330      if( vps->getSubLayerDpbInfoPresentFlag(i, j) )
    23302331      {
    23312332        for(Int k = 0; k < vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet ); k++)
    23322333        {
    2333 #if DPB_INTERNAL_BL_SIG
    2334         if( vps->getNecessaryLayerFlag(i, k) && (vps->getBaseLayerInternalFlag() || (vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) != 0)) )
    2335 #endif
    2336           WRITE_UVLC( vps->getMaxVpsDecPicBufferingMinus1( i, k, j ), "max_vps_dec_pic_buffering_minus1[i][k][j]" );
    2337         }
     2334          if( vps->getNecessaryLayerFlag(i, k) && (vps->getBaseLayerInternalFlag() || (vps->getLayerSetLayerIdList(layerSetIdxForOutputLayerSet, k) != 0)) )
     2335          {
     2336            WRITE_UVLC( vps->getMaxVpsDecPicBufferingMinus1( i, k, j ), "max_vps_dec_pic_buffering_minus1[i][k][j]" );
     2337          }
     2338        }
     2339
    23382340        WRITE_UVLC( vps->getMaxVpsNumReorderPics( i, j), "max_vps_num_reorder_pics[i][j]" );             
    23392341
Note: See TracChangeset for help on using the changeset viewer.