Changeset 71 in 3DVCSoftware for branches/HTM-3.0-Vidyo/source/Lib/TLibDecoder


Ignore:
Timestamp:
5 Jun 2012, 04:47:14 (13 years ago)
Author:
vidyo
Message:

additional changes to make decoder use VPS parameters

Location:
branches/HTM-3.0-Vidyo/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-3.0-Vidyo/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r70 r71  
    13491349  READ_FLAG( uiCode,  "temporal_id_nesting_flag" );       pcVPS->setTemporalNestingFlag( uiCode ? true:false );
    13501350  READ_UVLC( uiCode,  "video_parameter_set_id" );         pcVPS->setVPSId( uiCode );
    1351   for(UInt i=0; i <= pcVPS->getMaxTLayers()-1; i++)
     1351  for(UInt i = 0; i <= pcVPS->getMaxTLayers()-1; i++)
    13521352  {
    13531353    READ_UVLC( uiCode,  "max_dec_pic_buffering[i]" );     pcVPS->setMaxDecPicBuffering( uiCode, i );
     
    13621362    READ_UVLC( uiCode,  "extension_type" );               pcVPS->setExtensionType( uiCode );
    13631363   
    1364     if( pcVPS->getExtensionType() == 0)
    1365       READ_SVLC( iCode,  "view_order_idx[0]" );           pcVPS->setViewOrderIdx( iCode, 0 );
    1366    
    1367     for(UInt i=0; i <= pcVPS->getMaxLayers()-1; i++)
     1364    pcVPS->setViewOrderIdx( 0, 0 );
     1365    pcVPS->setViewId( 0, 0 );
     1366    pcVPS->setDepthFlag( 0, 0 );
     1367    for(UInt i = 1; i <= pcVPS->getMaxLayers()-1; i++)
    13681368    {
    13691369      READ_FLAG( uiCode, "dependent_flag[i]" );           pcVPS->setDependentFlag( uiCode ? true:false, i);
  • branches/HTM-3.0-Vidyo/source/Lib/TLibDecoder/TDecTop.cpp

    r70 r71  
    319319  m_tAppDecTop = pcTAppDecTop;
    320320#if DEPTH_MAP_GENERATION
     321#if VIDYO_VPS_INTEGRATION
     322  m_cDepthMapGenerator.init( &m_cPrediction, m_tAppDecTop->getVPSAccess(), m_tAppDecTop->getSPSAccess(), m_tAppDecTop->getAUPicAccess() );
     323#else
    321324  m_cDepthMapGenerator.init( &m_cPrediction, m_tAppDecTop->getSPSAccess(), m_tAppDecTop->getAUPicAccess() );
     325#endif
    322326#endif
    323327#if HHI_INTER_VIEW_RESIDUAL_PRED
     
    574578  TComVPS *vps = m_parameterSetManagerDecoder.getVPS(sps->getVPSId());
    575579  assert (vps != 0);
     580  if( m_apcSlicePilot->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || m_apcSlicePilot->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA )
     581    // VPS can only be activated on IDR or CRA...
     582    getTAppDecTop()->getVPSAccess()->setActiveVPSId( sps->getVPSId() );
    576583#endif
    577584  m_apcSlicePilot->setPPS(pps);
     
    10821089  m_cEntropyDecoder.decodeVPS( vps );
    10831090  m_parameterSetManagerDecoder.storePrefetchedVPS(vps); 
    1084 
     1091  getTAppDecTop()->getVPSAccess()->addVPS( vps );
    10851092}
    10861093#endif
Note: See TracChangeset for help on using the changeset viewer.