Changeset 56 in 3DVCSoftware for trunk/source/Lib/TLibExtractor/TExtrTop.cpp
- Timestamp:
- 11 May 2012, 21:20:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibExtractor/TExtrTop.cpp
r42 r56 46 46 } 47 47 48 Void TExtrTop::create()49 {50 }51 52 Void TExtrTop::destroy()53 {54 m_acSPSBuffer.clear();55 }56 57 48 Void TExtrTop::init() 58 49 { … … 62 53 } 63 54 55 Bool TExtrTop::extract( InputNALUnit& nalu, std::set<UInt>& rsuiExtractLayerIds ) 56 { 57 UInt uiLayerId = xGetLayerId( nalu.m_viewId, nalu.m_isDepth ); 64 58 65 Bool TExtrTop::extract( TComBitstream* pcBitstream, std::set<UInt>& rsuiExtractLayerIds )66 {67 59 // 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 ); 70 62 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 ) 77 64 { 78 65 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 80 73 m_cEntropyDecoder.decodeSPS( &cSPS ); 81 cSPS.setLayerId( uiLayerId ); 74 #endif 82 75 83 76 m_acSPSBuffer.push_back( cSPS ); … … 95 88 { 96 89 rcSpsInfoHandle << std::endl; 97 rcSpsInfoHandle << "layer_id = " << iterSPS->getLayerId() << std::endl;90 rcSpsInfoHandle << "layer_id = " << xGetLayerId( iterSPS->getViewId(), iterSPS->isDepth() ) << std::endl; 98 91 rcSpsInfoHandle << "seq_parameter_set_id = " << iterSPS->getSPSId() << std::endl; 99 92 rcSpsInfoHandle << "view_id = " << iterSPS->getViewId() << std::endl;
Note: See TracChangeset for help on using the changeset viewer.