Changeset 579 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
29 Jan 2014, 02:55:53 (11 years ago)
Author:
qualcomm
Message:

Change indexing of NumSubDpbs (Macro: CHANGE_NUMSUBDPB_IDX)

Change indexing of NumSubDpbs from output layer set to layer set, to be aligned with the Spec.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.cpp

    r577 r579  
    21862186{
    21872187  // Derive number of sub-DPBs
     2188#if CHANGE_NUMSUBDPB_IDX
     2189  // For layer set 0
     2190  setNumSubDpbs(0, 1);
     2191  // For other layer sets
     2192  for( Int i = 1; i < getNumLayerSets(); i++)
     2193  {
     2194    setNumSubDpbs( i, getNumLayersInIdList( i ) );
     2195  }
     2196#else
    21882197  // For output layer set 0
    21892198  setNumSubDpbs(0, 1);
     
    21932202    setNumSubDpbs( i, getNumLayersInIdList( getOutputLayerSetIdx(i)) );
    21942203  }
     2204#endif
    21952205}
    21962206#endif
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h

    r577 r579  
    652652  Int     m_maxVpsNumReorderPics        [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS];
    653653  Int     m_maxVpsLatencyIncreasePlus1  [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS];
     654#if CHANGE_NUMSUBDPB_IDX
     655  Int     m_numSubDpbs                  [MAX_VPS_LAYER_SETS_PLUS1];
     656#else
    654657  Int     m_numSubDpbs                  [MAX_VPS_OP_LAYER_SETS_PLUS1];
     658#endif
    655659#endif
    656660
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h

    r577 r579  
    5656#define DISCARDABLE_PIC_RPS              1      ///< JCTVC-P0130: Inter-layer RPS and temporal RPS should not contain picture with discardable_flag equal to 1
    5757#define VPS_EXTN_UEV_CODING              1      ///< JCTVC-P0306: Code some syntax elements as ue(v), and remove some syntax elements that duplicate behaviour
     58#define CHANGE_NUMSUBDPB_IDX             1      ///< Change index of NumSubDpb from output layer set to layer set, to be more aligned with the Spec
    5859#define O0109_O0199_FLAGS_TO_VUI         1      ///< JCTVC-O0109, O0199: move single_layer_for_non_irap_flag and higher_layer_flag to vps_vui
    5960#define O0109_VIEW_ID_LEN                1      ///< JCTVC-O0109: view_id_len_minus1 to view_id_len, and add constraint (1<<view_id_len) is greater than or equal to NumViews
Note: See TracChangeset for help on using the changeset viewer.