Changeset 962 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibDecoder


Ignore:
Timestamp:
6 Jan 2015, 04:36:57 (10 years ago)
Author:
seregin
Message:

port fixes for conformance testing and non-output layers (rev 953)

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecTop.cpp

    r961 r962  
    132132  m_confModeFlag = false;
    133133#endif
     134#if FIX_NON_OUTPUT_LAYER
     135  m_isOutputLayerFlag = false;
     136#endif
    134137}
    135138
     
    473476
    474477  m_cGopDecoder.filterPicture(pcPic);
     478
     479#if FIX_NON_OUTPUT_LAYER
     480  if( this->getLayerDec(pcPic->getLayerId())->m_isOutputLayerFlag == false )
     481  {
     482    pcPic->setOutputMark( false );
     483  }
     484#endif
    475485
    476486  TComSlice::sortPicList( m_cListPic ); // sorting for application output
     
    29032913  CommonDecoderParams* params = this->getCommonDecoderParams();
    29042914
     2915#if !FIX_CONF_MODE
    29052916  assert( params->getTargetLayerId() < vps->getMaxLayers() );
     2917#endif
    29062918
    29072919  if( params->getValueCheckedFlag() )
     
    30063018  Int targetLsIdx = vps->getOutputLayerSetIdx( targetOlsIdx );
    30073019  params->setTargetLayerId( vps->getLayerSetLayerIdList( targetLsIdx, vps->getNumLayersInIdList(targetLsIdx)-1 ) );
     3020#endif
     3021#if FIX_NON_OUTPUT_LAYER
     3022  // Check if the current layer is an output layer
     3023  for(Int i = 0; i < vps->getNumLayersInIdList( targetLsIdx ); i++)
     3024  {
     3025    if( vps->getOutputLayerFlag( targetOlsIdx, i ) )
     3026    {
     3027      this->getLayerDec( vps->getLayerSetLayerIdList( targetLsIdx, i ) )->m_isOutputLayerFlag = true;
     3028    }
     3029  }
    30083030#endif
    30093031}
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecTop.h

    r928 r962  
    174174  std::vector<TComPic>   m_confListPic;         //  Dynamic buffer for storing pictures for conformance purposes
    175175#endif
     176#if FIX_NON_OUTPUT_LAYER
     177  Bool m_isOutputLayerFlag;
     178#endif
    176179public:
    177180#if POC_RESET_RESTRICTIONS
Note: See TracChangeset for help on using the changeset viewer.