Changeset 1008 in SHVCSoftware


Ignore:
Timestamp:
28 Jan 2015, 19:12:58 (10 years ago)
Author:
seregin
Message:

port the fix for the ticket #58 (rev 1007)

Location:
branches/SHM-upgrade/source
Files:
2 edited

Legend:

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

    r1006 r1008  
    206206  }
    207207#endif
    208   this->getCommonDecoderParams()->setTargetOutputLayerSetIdx( olsIdx      );
    209   this->getCommonDecoderParams()->setTargetLayerId    ( m_tgtLayerId );
     208  m_commonDecoderParams.setTargetOutputLayerSetIdx( olsIdx );
     209  m_commonDecoderParams.setTargetLayerId( m_tgtLayerId );
    210210#endif
    211211#if FIX_CONF_MODE
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecTop.cpp

    r1006 r1008  
    851851      assert(layerIdx > m_apcSlicePilot->getVPS()->getVpsNumLayerSetsMinus1());
    852852    }
    853   }
    854   if (m_apcSlicePilot->getVPS()->getNumAddLayerSets() == 0)
    855   {
    856     checkValueOfTargetOutputLayerSetIdx(m_apcSlicePilot->getVPS());
    857   }
     853  } 
    858854#else
    859855  checkValueOfTargetOutputLayerSetIdx( m_apcSlicePilot->getVPS());
     
    23042300  m_cEntropyDecoder.decodeVPS( vps );
    23052301  m_parameterSetManagerDecoder.storePrefetchedVPS(vps);
     2302#if R0235_SMALLEST_LAYER_ID
     2303  checkValueOfTargetOutputLayerSetIdx(vps);
     2304#endif
    23062305}
    23072306
     
    30313030  {
    30323031    // Check if the target decoded layer is the highest layer in the list
     3032#if R0235_SMALLEST_LAYER_ID
     3033    assert( params->getTargetOutputLayerSetIdx() < vps->getNumOutputLayerSets() );
     3034#endif
    30333035#if !CONFORMANCE_BITSTREAM_MODE
    30343036    assert( params->getTargetOutputLayerSetIdx() < vps->getNumLayerSets() );
     
    30383040    assert( params->getTargetLayerId() == vps->getNumLayersInIdList( layerSetIdx ) - 1);
    30393041#endif
    3040 
     3042   
     3043#if !R0235_SMALLEST_LAYER_ID
    30413044    Bool layerSetMatchFlag = true;
    30423045    for(Int j = 0; j < vps->getNumLayersInIdList( layerSetIdx ); j++)
     
    30503053
    30513054    assert(layerSetMatchFlag);    // Signaled output layer set index does not match targetOutputLayerId.
     3055#endif
    30523056   
    30533057    // Check if the targetdeclayerIdlist matches the output layer set
     
    32393243{
    32403244  UInt smallestLayerId;
    3241   UInt targetOlsIdx = getCommonDecoderParams()->getTargetOutputLayerSetIdx();
     3245  Int  targetOlsIdx = m_commonDecoderParams->getTargetOutputLayerSetIdx();
     3246  assert( targetOlsIdx >= 0 );
     3247
    32423248  UInt targetDecLayerSetIdx = vps->getOutputLayerSetIdx(targetOlsIdx);
    32433249  UInt lsIdx = targetDecLayerSetIdx;
Note: See TracChangeset for help on using the changeset viewer.