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


Ignore:
Timestamp:
13 Jul 2015, 20:56:47 (9 years ago)
Author:
seregin
Message:

port rev 4221

File:
1 edited

Legend:

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

    r1235 r1237  
    235235      if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu)  ||
    236236#if CONFORMANCE_BITSTREAM_MODE
    237         (nalu.m_layerId > m_commonDecoderParams.getTargetLayerId()) )
    238 #else
    239         (nalu.m_layerId > m_tgtLayerId) )
     237        (nalu.m_nuhLayerId > m_commonDecoderParams.getTargetLayerId()) )
     238#else
     239        (nalu.m_nuhLayerId > m_tgtLayerId) )
    240240#endif
    241241      {
     
    244244      else
    245245      {
    246         bNewPicture = m_acTDecTop[nalu.m_layerId].decode(nalu, m_iSkipFrame, m_aiPOCLastDisplay[nalu.m_layerId], curLayerId, bNewPOC);
     246        bNewPicture = m_acTDecTop[nalu.m_nuhLayerId].decode(nalu, m_iSkipFrame, m_aiPOCLastDisplay[nalu.m_nuhLayerId], curLayerId, bNewPOC);
    247247
    248248#if SVC_POC
    249         if( (bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 3) || (m_acTDecTop[nalu.m_layerId].getParseIdc() == 0) )
     249        if( (bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 3) || (m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 0) )
    250250#else
    251251        if (bNewPicture)
     
    267267        }
    268268#if SVC_POC
    269         else if(m_acTDecTop[nalu.m_layerId].getParseIdc() == 1)
     269        else if(m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 1)
    270270        {
    271271          bitstreamFile.clear();
     
    283283
    284284#if SVC_POC
    285     if( ( (bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 3) || m_acTDecTop[nalu.m_layerId].getParseIdc() == 0 || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) &&
    286         !m_acTDecTop[nalu.m_layerId].getFirstSliceInSequence() )
     285    if( ( (bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 3) || m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 0 || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) &&
     286        !m_acTDecTop[nalu.m_nuhLayerId].getFirstSliceInSequence() )
    287287#else
    288288    if ( (bNewPicture || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS) &&
    289         !m_acTDecTop[nalu.m_layerId].getFirstSliceInSequence() )
     289        !m_acTDecTop[nalu.m_nuhLayerId].getFirstSliceInSequence() )
    290290#endif
    291291    {
     
    302302      if (nalu.m_nalUnitType == NAL_UNIT_EOS)
    303303      {
    304         m_acTDecTop[nalu.m_layerId].setFirstSliceInSequence(true);
     304        m_acTDecTop[nalu.m_nuhLayerId].setFirstSliceInSequence(true);
    305305      }
    306306    }
    307307    else if ( (bNewPicture || !bitstreamFile || nalu.m_nalUnitType == NAL_UNIT_EOS ) &&
    308               m_acTDecTop[nalu.m_layerId].getFirstSliceInSequence () )
    309     {
    310       m_acTDecTop[nalu.m_layerId].setFirstSliceInPicture (true);
     308              m_acTDecTop[nalu.m_nuhLayerId].getFirstSliceInSequence () )
     309    {
     310      m_acTDecTop[nalu.m_nuhLayerId].setFirstSliceInPicture (true);
    311311    }
    312312
    313313#if SVC_POC
    314     if( bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() == 0 )
    315     {
    316       outputAllPictures( nalu.m_layerId, true );
     314    if( bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() == 0 )
     315    {
     316      outputAllPictures( nalu.m_nuhLayerId, true );
    317317    }
    318318#endif
     
    333333      Bool outputPicturesFlag = true; 
    334334
    335       if( m_acTDecTop[nalu.m_layerId].getNoOutputPriorPicsFlag() )
     335      if( m_acTDecTop[nalu.m_nuhLayerId].getNoOutputPriorPicsFlag() )
    336336      {
    337337        outputPicturesFlag = false;
     
    340340      if (nalu.m_nalUnitType == NAL_UNIT_EOS) // End of sequence
    341341      {
    342         flushAllPictures( nalu.m_layerId, outputPicturesFlag );       
     342        flushAllPictures( nalu.m_nuhLayerId, outputPicturesFlag );       
    343343      }
    344344
    345345#if SVC_POC
    346       if( bNewPicture && m_acTDecTop[nalu.m_layerId].getParseIdc() != 0 )
     346      if( bNewPicture && m_acTDecTop[nalu.m_nuhLayerId].getParseIdc() != 0 )
    347347      // New picture, slice header parsed but picture not decoded
    348348#else
     
    356356            || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_BLA_W_LP   )
    357357        {
    358           flushAllPictures( nalu.m_layerId, outputPicturesFlag );
     358          flushAllPictures( nalu.m_nuhLayerId, outputPicturesFlag );
    359359        }
    360360        else
    361361        {
    362           this->checkOutputBeforeDecoding( nalu.m_layerId );
     362          this->checkOutputBeforeDecoding( nalu.m_nuhLayerId );
    363363        }
    364364      }
     
    12421242  }
    12431243#if SVC_EXTENSION
    1244   if (nalu->m_layerId == 0 && (nalu->m_nalUnitType == NAL_UNIT_VPS || nalu->m_nalUnitType == NAL_UNIT_SPS || nalu->m_nalUnitType == NAL_UNIT_PPS || nalu->m_nalUnitType == NAL_UNIT_EOS))
     1244  if (nalu->m_nuhLayerId == 0 && (nalu->m_nalUnitType == NAL_UNIT_VPS || nalu->m_nalUnitType == NAL_UNIT_SPS || nalu->m_nalUnitType == NAL_UNIT_PPS || nalu->m_nalUnitType == NAL_UNIT_EOS))
    12451245  {
    12461246    return true;
     
    12491249  for (std::vector<Int>::iterator it = m_targetDecLayerIdSet.begin(); it != m_targetDecLayerIdSet.end(); it++)
    12501250  {
    1251     if ( nalu->m_reservedZero6Bits == (*it) )
     1251    if ( nalu->m_nuhLayerId == (*it) )
    12521252    {
    12531253      return true;
Note: See TracChangeset for help on using the changeset viewer.