Changeset 401 in 3DVCSoftware for branches/HTM-DEV-0.1-dev/source/App


Ignore:
Timestamp:
13 May 2013, 16:09:14 (12 years ago)
Author:
tech
Message:
  • Fixed trace files for MV-HEVC.
  • Fixed assertion mismatch due to NumPocTotalCurr.
Location:
branches/HTM-DEV-0.1-dev/source/App/TAppDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.1-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r368 r401  
    151151     * nal unit. */
    152152    streampos location = bitstreamFile.tellg();
     153#if H_MV
     154#if ENC_DEC_TRACE
     155    Int64 symCount = g_nSymbolCounter;
     156#endif
     157#endif
    153158    AnnexBStats stats = AnnexBStats();
    154159#if !H_MV
     
    246251          bitstreamFile.seekg(location-streamoff(3));
    247252          bytestream.reset();
     253#if H_MV
     254#if ENC_DEC_TRACE
     255          g_nSymbolCounter = symCount;
     256#endif
     257#endif
     258
    248259        }
    249260#if !H_MV
     
    591602}
    592603
     604#if H_MV
     605Int TAppDecTop::xGetDecoderIdx( Int layerId, Bool createFlag /*= false */ )
     606{
     607  Int decIdx = -1;
     608  if ( m_layerIdToDecIdx[ layerId ] != -1 )
     609  {     
     610    decIdx = m_layerIdToDecIdx[ layerId ];
     611  }
     612  else
     613  {     
     614    assert ( createFlag );
     615    assert( m_numDecoders < MAX_NUM_LAYERS );
     616
     617    decIdx = m_numDecoders;
     618
     619    // Init decoder
     620    m_tDecTop[ decIdx ] =  new TDecTop;
     621    m_tDecTop[ decIdx ]->create();
     622    m_tDecTop[ decIdx ]->init( );
     623    m_tDecTop[ decIdx ]->setLayerId( layerId );
     624    m_tDecTop[ decIdx ]->setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled);
     625    m_tDecTop[ decIdx ]->setIvPicLists( &m_ivPicLists );
     626
     627    // append pic list of new decoder to PicLists
     628    assert( m_ivPicLists.size() == m_numDecoders );
     629    m_ivPicLists.push_back( m_tDecTop[ decIdx ]->getListPic() );
     630
     631    // create recon file related stuff     
     632    Char* pchTempFilename = NULL;
     633    if ( m_pchReconFile )
     634    {     
     635      Char buffer[4];     
     636      sprintf(buffer,"_%i", layerId );
     637      assert ( m_pchReconFile );
     638      xAppendToFileNameEnd( m_pchReconFile , buffer, pchTempFilename );
     639      assert( m_pchReconFiles.size() == m_numDecoders );
     640    }
     641
     642    m_pchReconFiles.push_back( pchTempFilename );   
     643
     644    m_tVideoIOYuvReconFile[ decIdx ] = new TVideoIOYuv;
     645    m_reconOpen           [ decIdx ] = false;
     646
     647    // set others
     648    m_pocLastDisplay      [ decIdx ] = -MAX_INT;
     649    m_layerIdToDecIdx     [ layerId ] = decIdx;
     650
     651    m_numDecoders++;
     652  };
     653  return decIdx;
     654}
     655#endif
    593656//! \}
  • branches/HTM-DEV-0.1-dev/source/App/TAppDecoder/TAppDecTop.h

    r368 r401  
    9797  Void  xWriteOutput      ( TComList<TComPic*>* pcListPic, Int layerId, Int tId ); ///< write YUV to file
    9898  Void  xFlushOutput      ( TComList<TComPic*>* pcListPic, Int layerId ); ///< flush all remaining decoded pictures to file
    99   Int   xGetDecoderIdx    ( Int layerId, Bool createFlag = false )
    100   {
    101     Int decIdx = -1;
    102     if ( m_layerIdToDecIdx[ layerId ] != -1 )
    103     {     
    104       decIdx = m_layerIdToDecIdx[ layerId ];
    105     }
    106     else
    107     {     
    108       assert ( createFlag );
    109       assert( m_numDecoders < MAX_NUM_LAYERS );
    110 
    111       decIdx = m_numDecoders;
    112      
    113       // Init decoder
    114       m_tDecTop[ decIdx ] =  new TDecTop;
    115       m_tDecTop[ decIdx ]->create();
    116       m_tDecTop[ decIdx ]->init( );
    117       m_tDecTop[ decIdx ]->setLayerId( layerId );
    118       m_tDecTop[ decIdx ]->setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled);
    119       m_tDecTop[ decIdx ]->setIvPicLists( &m_ivPicLists );
    120      
    121       // append pic list of new decoder to PicLists
    122       assert( m_ivPicLists.size() == m_numDecoders );
    123       m_ivPicLists.push_back( m_tDecTop[ decIdx ]->getListPic() );
    124 
    125       // create recon file related stuff     
    126       Char* pchTempFilename = NULL;
    127       if ( m_pchReconFile )
    128       {     
    129         Char buffer[4];     
    130         sprintf(buffer,"_%i", layerId );
    131         assert ( m_pchReconFile );
    132         xAppendToFileNameEnd( m_pchReconFile , buffer, pchTempFilename );
    133         assert( m_pchReconFiles.size() == m_numDecoders );
    134       }
    135 
    136       m_pchReconFiles.push_back( pchTempFilename );   
    137 
    138       m_tVideoIOYuvReconFile[ decIdx ] = new TVideoIOYuv;
    139       m_reconOpen           [ decIdx ] = false;
    140 
    141       // set others
    142       m_pocLastDisplay      [ decIdx ] = -MAX_INT;
    143       m_layerIdToDecIdx     [ layerId ] = decIdx;
    144 
    145       m_numDecoders++;
    146     };
    147     return decIdx;
    148   }
     99  Int   xGetDecoderIdx    ( Int layerId, Bool createFlag = false );
    149100#else
    150101  Void  xWriteOutput      ( TComList<TComPic*>* pcListPic , UInt tId); ///< write YUV to file
Note: See TracChangeset for help on using the changeset viewer.