Changeset 42 in SHVCSoftware for branches/SHM-1.1-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
21 Feb 2013, 00:01:40 (12 years ago)
Author:
seregin
Message:

initializing base layer reference lists by copying the enhancement layer picture lists structure for the AVC metadata file reading

File:
1 edited

Legend:

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

    r38 r42  
    561561  if (m_bFirstSliceInPicture)
    562562  {
    563 
    564563#if AVC_BASE
    565564  if( m_layerId == 1 )
     
    609608      }
    610609    }
    611 #if AVC_SYNTAX
    612     if( m_apcSlicePilot->getPOC() == 0 )
    613     {
    614       // initialize partition order.
    615       UInt* piTmp = &g_auiZscanToRaster[0];
    616       initZscanToRaster( pBLPic->getPicSym()->getMaxDepth() + 1, 1, 0, piTmp );
    617       initRasterToZscan( pBLPic->getPicSym()->getMaxCUWidth(), pBLPic->getPicSym()->getMaxCUHeight(), pBLPic->getPicSym()->getMaxDepth() + 1 );
    618     }
    619     pBLPic->getSlice( 0 )->setPOC( m_apcSlicePilot->getPOC() );
    620     pBLPic->getSlice( 0 )->setSliceType( m_apcSlicePilot->getSliceType() );
    621     pBLPic->readBLSyntax( m_ppcTDecTop[0]->getBLSyntaxFile(), SYNTAX_BYTES );
    622 #endif
    623610  }
    624611#endif
     
    758745  {
    759746    pcSlice->checkCRA(pcSlice->getRPS(), m_pocCRA, m_prevRAPisBLA, m_cListPic);
    760 #if !REF_IDX_FRAMEWORK
     747#if !REF_IDX_FRAMEWORK || AVC_SYNTAX
    761748    // Set reference list
    762749    pcSlice->setRefPicList( m_cListPic );
     
    768755#if AVC_BASE
    769756      pcSlice->setBaseColPic ( *m_ppcTDecTop[0]->getListPic()->begin() );
     757#if AVC_SYNTAX
     758      TComPic* pBLPic = pcSlice->getBaseColPic();
     759      if( pcSlice->getPOC() == 0 )
     760      {
     761        // initialize partition order.
     762        UInt* piTmp = &g_auiZscanToRaster[0];
     763        initZscanToRaster( pBLPic->getPicSym()->getMaxDepth() + 1, 1, 0, piTmp );
     764        initRasterToZscan( pBLPic->getPicSym()->getMaxCUWidth(), pBLPic->getPicSym()->getMaxCUHeight(), pBLPic->getPicSym()->getMaxDepth() + 1 );
     765      }     
     766      pBLPic->getSlice( 0 )->initBaseLayerRPL( pcSlice );
     767      pBLPic->readBLSyntax( m_ppcTDecTop[0]->getBLSyntaxFile(), SYNTAX_BYTES );
     768#endif
     769
    770770#else
    771771      TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
     
    788788
    789789#if REF_IDX_FRAMEWORK
     790#if !AVC_SYNTAX
    790791    // Set reference list
    791792    pcSlice->setRefPicList( m_cListPic );
     793#endif
    792794    if(m_layerId > 0)
    793795    {
Note: See TracChangeset for help on using the changeset viewer.