Changeset 187 in SHVCSoftware for branches/SHM-2.0-dev/source/App


Ignore:
Timestamp:
12 May 2013, 18:11:47 (12 years ago)
Author:
seregin
Message:

enable zero number of direct references, fix for AVC base YUV input

Location:
branches/SHM-2.0-dev/source/App
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.0-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r154 r187  
    560560      if ( m_pchReconFile )
    561561      {
     562#if SYNTAX_OUTPUT && ILP_DECODED_PICTURE
     563        m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec() );
     564#else
    562565        const Window &conf = pcPic->getConformanceWindow();
    563566        const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window();
    564 #if SYNTAX_OUTPUT && ILP_DECODED_PICTURE
    565       m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec() );
    566 #else
    567567        m_cTVideoIOYuvReconFile.write( pcPic->getPicYuvRec(),
    568568                                       conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),
  • branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r184 r187  
    6666TAppEncCfg::TAppEncCfg()
    6767: m_pBitstreamFile()
     68#if AVC_BASE
     69, m_avcBaseLayerFlag(0)
     70#endif
    6871, m_pColumnWidth()
    6972, m_pRowHeight()
     
    423426#endif
    424427#if AVC_BASE
    425   ("AvcBase",                 m_avcBaseLayerFlag,     0, "AVC_BASElayer_flag")
     428  ("AvcBase,-avc",            m_avcBaseLayerFlag,     0, "avc_base_layer_flag")
    426429  ("InputBLFile,-ibl",        cfg_BLInputFile,     string(""), "Base layer rec YUV input file name")
    427430#if AVC_SYNTAX
     
    430433#endif
    431434#if REF_IDX_FRAMEWORK
    432   ("EnableElRapB,-use-rap-b",  m_elRapSliceBEnabled, 0, "Set ILP over base-layer I picture to B picture (default is P picture_")
     435  ("EnableElRapB,-use-rap-b",  m_elRapSliceBEnabled, 0, "Set ILP over base-layer I picture to B picture (default is P picture)")
    433436#endif 
    434437#else 
     
    741744  ;
    742745 
    743 #if AVC_BASE
    744   if( m_avcBaseLayerFlag )
    745   {
    746     *cfg_InputFile[0] = cfg_BLInputFile;
    747   }
    748 #endif
    749 
    750746  for(Int i=1; i<MAX_GOP+1; i++) {
    751747    std::ostringstream cOSS;
     
    773769  /* convert std::string to c string for compatability */
    774770#if SVC_EXTENSION
     771#if AVC_BASE
     772  if( m_avcBaseLayerFlag )
     773  {
     774    *cfg_InputFile[0] = cfg_BLInputFile;
     775  }
     776#endif
    775777  m_pBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());
    776778#if AVC_SYNTAX
     
    18271829  {
    18281830    printf("=== Layer %d settings === \n", layer);
     1831#if AVC_SYNTAX
     1832    m_acLayerCfg[layer].xPrintParameter( layer );
     1833#else
    18291834    m_acLayerCfg[layer].xPrintParameter();
     1835#endif
    18301836    printf("\n");
    18311837  }
  • branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r125 r187  
    116116}
    117117
     118#if AVC_SYNTAX
     119Void TAppEncLayerCfg::xPrintParameter( UInt layerId )
     120#else
    118121Void TAppEncLayerCfg::xPrintParameter()
     122#endif
    119123{
    120124  printf("Input File                    : %s\n", m_cInputFile.c_str()  );
    121125  printf("Reconstruction File           : %s\n", m_cReconFile.c_str()  );
    122126#if AVC_SYNTAX
    123   printf("Base layer input file         : %s\n", m_cAppEncCfg->getBLSyntaxFile() );
     127  if( layerId == 0 )
     128  {
     129    printf("Base layer syntax file        : %s\n", m_cAppEncCfg->getBLSyntaxFile() );
     130  }
    124131#endif
    125132  printf("Real     Format               : %dx%d %dHz\n", m_iSourceWidth - m_confLeft - m_confRight, m_iSourceHeight - m_confTop - m_confBottom, m_iFrameRate );
  • branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r184 r187  
    6969  bool  parseCfg  ( const string& cfgFileName );              ///< parse layer configuration file to fill member variables
    7070
     71#if AVC_SYNTAX
     72  Void  xPrintParameter( UInt layerId );
     73#else
    7174  Void  xPrintParameter();
     75#endif
    7276  Bool  xCheckParameter();
    7377
Note: See TracChangeset for help on using the changeset viewer.