Changeset 1057 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder


Ignore:
Timestamp:
4 Mar 2015, 09:55:40 (10 years ago)
Author:
seregin
Message:

revert back using layerIdx for m_ppcTEncTop, fix RefLayerId settings and related

Location:
branches/SHM-dev/source/App/TAppDecoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp

    r1044 r1057  
    6969#if SVC_EXTENSION
    7070  string cfg_ReconFile [MAX_LAYERS];
    71   Int nLayerNum;
     71  Int layerNum, targetLayerId;
    7272#if OUTPUT_LAYER_SET_INDEX
    7373  Int olsIdx;
     
    103103#endif
    104104#if FIX_CONF_MODE
    105   ("LayerNum,-ls", nLayerNum, MAX_NUM_LAYER_IDS, "Number of layers to be decoded.")
     105  ("TargetLayerId,-lid", targetLayerId, -1, "Target layer id")
     106  ("LayerNum,-ls", layerNum, MAX_NUM_LAYER_IDS, "Target layer id") // Legacy option
    106107#else
    107108  ("LayerNum,-ls", nLayerNum, 1, "Number of layers to be decoded.")
     
    165166  m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());
    166167#if SVC_EXTENSION
    167   m_tgtLayerId = nLayerNum - 1;
    168   assert( m_tgtLayerId >= 0 );
     168  if( targetLayerId < 0 )
     169  {
     170    targetLayerId = layerNum - 1;
     171  }
     172
     173  assert( targetLayerId >= 0 );
    169174#if !FIX_CONF_MODE
    170175  assert( m_tgtLayerId < MAX_LAYERS );  // If this is wrong, it should be caught by asserts in other locations.
    171176#endif
    172177#if O0137_MAX_LAYERID
    173   assert( m_tgtLayerId < MAX_NUM_LAYER_IDS );
     178  assert( targetLayerId < MAX_NUM_LAYER_IDS );
    174179#endif
    175180#if OUTPUT_LAYER_SET_INDEX
     
    207212#endif
    208213  m_commonDecoderParams.setTargetOutputLayerSetIdx( olsIdx );
    209   m_commonDecoderParams.setTargetLayerId( m_tgtLayerId );
     214  m_commonDecoderParams.setTargetLayerId( targetLayerId );
    210215#endif
    211216#if FIX_CONF_MODE
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.h

    r1029 r1057  
    7575
    7676#if SVC_EXTENSION
    77   Int           m_tgtLayerId;                        ///< target layer ID
    7877#if AVC_BASE
    7978  Char*         m_pchBLReconFile;                     ///< input BL reconstruction file name
     
    118117#endif
    119118#if SVC_EXTENSION
    120   , m_tgtLayerId(0)
    121119#if AVC_BASE && !REPN_FORMAT_IN_VPS
    122120  , m_iBLSourceWidth(0)
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r1052 r1057  
    223223      if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu)  ||
    224224#if FIX_CONF_MODE
    225         (nalu.m_layerId > this->getCommonDecoderParams()->getTargetLayerId()) )
     225        (nalu.m_layerId > m_commonDecoderParams.getTargetLayerId()) )
    226226#else
    227227        (nalu.m_layerId > m_tgtLayerId) )
Note: See TracChangeset for help on using the changeset viewer.