Changeset 56 in 3DVCSoftware for trunk/source/Lib/TLibExtractor/TExtrTop.cpp


Ignore:
Timestamp:
11 May 2012, 21:20:17 (13 years ago)
Author:
hschwarz
Message:

updated trunk (move to HM6.1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibExtractor/TExtrTop.cpp

    r42 r56  
    4646}
    4747
    48 Void TExtrTop::create()
    49 {
    50 }
    51 
    52 Void TExtrTop::destroy()
    53 {
    54   m_acSPSBuffer.clear();
    55 }
    56 
    5748Void TExtrTop::init()
    5849{
     
    6253}
    6354
     55Bool TExtrTop::extract( InputNALUnit& nalu, std::set<UInt>& rsuiExtractLayerIds )
     56{
     57  UInt uiLayerId = xGetLayerId( nalu.m_viewId, nalu.m_isDepth );
    6458
    65 Bool TExtrTop::extract( TComBitstream* pcBitstream, std::set<UInt>& rsuiExtractLayerIds )
    66 {
    6759  // Initialize entropy decoder
    68   m_cEntropyDecoder.setEntropyDecoder (&m_cCavlcDecoder);
    69   m_cEntropyDecoder.setBitstream      (pcBitstream);
     60  m_cEntropyDecoder.setEntropyDecoder( &m_cCavlcDecoder );
     61  m_cEntropyDecoder.setBitstream     ( nalu.m_Bitstream );
    7062 
    71   NalUnitType eNalUnitType;
    72   UInt uiTemporalId, uiLayerId;
    73 
    74   m_cEntropyDecoder.decodeNalUnitHeader( eNalUnitType, uiTemporalId, uiLayerId ); 
    75 
    76   if ( eNalUnitType == NAL_UNIT_SPS )
     63  if ( nalu.m_nalUnitType == NAL_UNIT_SPS )
    7764  {
    7865     TComSPS cSPS;
    79 
     66#if RPS_IN_SPS
     67     TComRPSList cRPS;
     68     cSPS.setRPSList( &cRPS );
     69#endif
     70#if HHI_MPI
     71     m_cEntropyDecoder.decodeSPS( &cSPS, nalu.m_isDepth );
     72#else
    8073     m_cEntropyDecoder.decodeSPS( &cSPS );
    81      cSPS.setLayerId( uiLayerId );
     74#endif
    8275
    8376     m_acSPSBuffer.push_back( cSPS );
     
    9588  {
    9689     rcSpsInfoHandle << std::endl;
    97      rcSpsInfoHandle << "layer_id = "              << iterSPS->getLayerId() << std::endl;
     90     rcSpsInfoHandle << "layer_id = "              << xGetLayerId( iterSPS->getViewId(), iterSPS->isDepth() ) << std::endl;
    9891     rcSpsInfoHandle << "seq_parameter_set_id = "  << iterSPS->getSPSId() << std::endl;
    9992     rcSpsInfoHandle << "view_id = "               << iterSPS->getViewId() << std::endl;
Note: See TracChangeset for help on using the changeset viewer.