Changeset 1135 in SHVCSoftware


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

macro cleanup: CHANGE_NUMSUBDPB_IDX

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

Legend:

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

    r1132 r1135  
    16981698  for(i = 1; i < vps->getNumOutputLayerSets(); i++)
    16991699  {
    1700 #if CHANGE_NUMSUBDPB_IDX
    17011700    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
    1702 #endif
    17031701    Int layerSetId = vps->getOutputLayerSetIdx(i);
    17041702
     
    17071705
    17081706      Int maxNumReorderPics = -1;
    1709 #if CHANGE_NUMSUBDPB_IDX
    17101707      for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++)
    1711 #else
    1712       for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
    1713 #endif
    17141708      {
    17151709        Int layerId = vps->getLayerSetLayerIdList(layerSetId, k); // k-th layer in the output layer set
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1132 r1135  
    32073207{
    32083208  // Derive number of sub-DPBs
    3209 #if CHANGE_NUMSUBDPB_IDX
    32103209  // For layer set 0
    32113210  m_numSubDpbs[0] = 1;
     
    32153214    m_numSubDpbs[i] = m_numLayerInIdList[i];
    32163215  }
    3217 #else
    3218   // For output layer set 0
    3219   setNumSubDpbs(0, 1);
    3220   // For other output layer sets
    3221   for( Int i = 1; i < getNumOutputLayerSets(); i++)
    3222   {
    3223     setNumSubDpbs( i, getNumLayersInIdList( getOutputLayerSetIdx(i)) );
    3224   }
    3225 #endif
    32263216}
    32273217#endif
     
    34393429                                      // then will be continue to be false - i.e. the j-th sub-layer DPB info is not signaled
    34403430        checkFlagInner[j] |= ( getMaxVpsNumReorderPics(i, j) != getMaxVpsNumReorderPics(i, j - 1) );
    3441 #if CHANGE_NUMSUBDPB_IDX
     3431
    34423432        for(Int subDpbIdx = 0; subDpbIdx < getNumSubDpbs(layerSetIdxForOutputLayerSet) && !checkFlagInner[j]; subDpbIdx++)  // If checkFlagInner[j] is true, break and signal the values
    3443 #else
    3444         for(Int k = 0; k < getNumSubDpbs(i) && !checkFlagInner[j]; k++)  // If checkFlagInner[j] is true, break and signal the values
    3445 #endif
    34463433        {
    34473434          checkFlagInner[j] |= ( getMaxVpsDecPicBufferingMinus1(i, subDpbIdx, j - 1) != getMaxVpsDecPicBufferingMinus1(i, subDpbIdx, j) );
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1132 r1135  
    787787  Int        m_maxVpsNumReorderPics        [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS];
    788788  Int        m_maxVpsLatencyIncreasePlus1  [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS];
    789 #if CHANGE_NUMSUBDPB_IDX
    790789#if Q0078_ADD_LAYER_SETS
    791790  Int        m_numSubDpbs                  [MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS];
    792791#else
    793792  Int        m_numSubDpbs                  [MAX_VPS_LAYER_SETS_PLUS1];
    794 #endif
    795 #else
    796   Int        m_numSubDpbs                  [MAX_VPS_OP_LAYER_SETS_PLUS1];
    797793#endif
    798794#endif
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1134 r1135  
    8282#define DISCARDABLE_PIC_RPS              1      ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1
    8383#define VPS_EXTN_UEV_CODING              1      ///< JCTVC-P0306: Code some syntax elements as ue(v), and remove some syntax elements that duplicate behaviour
    84 #define CHANGE_NUMSUBDPB_IDX             1      ///< Change index of NumSubDpb from output layer set to layer set, to be more aligned with the Spec
    8584#define ALIGNED_BUMPING                  1      ///< JCTVC-P0192: Align bumping of pictures in an AU
    8685#define FIX_ALIGN_BUMPING                1
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1132 r1135  
    35363536  {
    35373537    UInt maxSLMinus1 = 0;
    3538 #if CHANGE_NUMSUBDPB_IDX
    35393538    Int optLsIdx = vps->getOutputLayerSetIdx( i );
    3540 #else
    3541     Int optLsIdx = i;
    3542 #endif
    35433539#if BITRATE_PICRATE_SIGNALLING
    35443540    optLsIdx = i;
     
    35603556  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    35613557  {
    3562 #if CHANGE_NUMSUBDPB_IDX
    35633558    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
    3564 #endif
     3559
    35653560    READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]");  vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false );
    35663561#if SUB_LAYERS_IN_LAYER_SET
     
    35953590      if( vps->getSubLayerDpbInfoPresentFlag(i, j) )  // If sub-layer DPB information is present
    35963591      {
    3597 #if CHANGE_NUMSUBDPB_IDX
    35983592        for(Int k = 0; k < vps->getNumSubDpbs(layerSetIdxForOutputLayerSet); k++)
    3599 #else
    3600         for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
    3601 #endif
    36023593        {
    36033594#if DPB_INTERNAL_BL_SIG
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1132 r1135  
    24262426    {
    24272427        UInt maxSLMinus1 = 0;
    2428 #if CHANGE_NUMSUBDPB_IDX
    24292428        Int optLsIdx = vps->getOutputLayerSetIdx( i );
    2430 #else
    2431         Int optLsIdx = i;
    2432 #endif
    24332429#if BITRATE_PICRATE_SIGNALLING
    24342430        optLsIdx = i;
     
    24492445  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
    24502446  {
    2451 #if CHANGE_NUMSUBDPB_IDX
    24522447    Int layerSetIdxForOutputLayerSet = vps->getOutputLayerSetIdx( i );
    2453 #endif
     2448
    24542449    WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]");
    24552450#if SUB_LAYERS_IN_LAYER_SET
     
    24732468      if( vps->getSubLayerDpbInfoPresentFlag(i, j) )
    24742469      {
    2475 #if CHANGE_NUMSUBDPB_IDX
    24762470        for(Int k = 0; k < vps->getNumLayersInIdList( layerSetIdxForOutputLayerSet ); k++)
    2477 #else
    2478         for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
    2479 #endif
    24802471        {
    24812472#if DPB_INTERNAL_BL_SIG
Note: See TracChangeset for help on using the changeset viewer.