Ignore:
Timestamp:
3 Jun 2012, 21:48:11 (12 years ago)
Author:
vidyo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-3.0-Vidyo/source/Lib/TLibExtractor/TExtrTop.cpp

    r56 r70  
    5555Bool TExtrTop::extract( InputNALUnit& nalu, std::set<UInt>& rsuiExtractLayerIds )
    5656{
     57#if VIDYO_VPS_INTEGRATION
     58        //extraction now has to be done using layer_id
     59  UInt uiLayerId = nalu.m_layerId;
     60#else
    5761  UInt uiLayerId = xGetLayerId( nalu.m_viewId, nalu.m_isDepth );
    58 
     62#endif
    5963  // Initialize entropy decoder
    6064  m_cEntropyDecoder.setEntropyDecoder( &m_cCavlcDecoder );
    6165  m_cEntropyDecoder.setBitstream     ( nalu.m_Bitstream );
    6266 
     67#if VIDYO_VPS_INTEGRATION
     68  if ( nalu.m_nalUnitType == NAL_UNIT_VPS )
     69  {
     70    // a hack for now assuming there's only one VPS in the bitstream
     71    m_cEntropyDecoder.decodeVPS( &m_cVPS );
     72     
     73  }
     74#endif
     75
    6376  if ( nalu.m_nalUnitType == NAL_UNIT_SPS )
    6477  {
     
    6982#endif
    7083#if HHI_MPI
     84#if VIDYO_VPS_INTEGRATION
     85     m_cEntropyDecoder.decodeSPS( &cSPS, m_cVPS.getDepthFlag(uiLayerId) );
     86#else
    7187     m_cEntropyDecoder.decodeSPS( &cSPS, nalu.m_isDepth );
     88#endif
    7289#else
    7390     m_cEntropyDecoder.decodeSPS( &cSPS );
Note: See TracChangeset for help on using the changeset viewer.