Changeset 55 in SHVCSoftware for trunk/source/App/TAppEncoder


Ignore:
Timestamp:
4 Mar 2013, 22:43:28 (12 years ago)
Author:
seregin
Message:

Reintegrate SHM-1.1-dev branch into the trunk

Location:
trunk/source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source

  • trunk/source/App/TAppEncoder/TAppEncCfg.cpp

    r21 r55  
    229229    cfg_CroppingMode[layer] = &m_acLayerCfg[layer].m_croppingMode;
    230230  }
     231#if AVC_SYNTAX
     232  string  cfg_BLSyntaxFile;
     233#endif
    231234#else
    232235  string cfg_InputFile;
     
    259262  ("InternalBitDepth",        m_uiInternalBitDepth, 0u, "Internal bit-depth (BitDepth+BitIncrement)")
    260263#if AVC_BASE
    261   ("InputBLFile,-ibl",        *cfg_InputFile[0],     string(""), "Original BL rec YUV input file name")
     264  ("InputBLFile,-ibl",        *cfg_InputFile[0],     string(""), "Base layer rec YUV input file name")
     265#if AVC_SYNTAX
     266  ("InputBLSyntaxFile,-ibs",  cfg_BLSyntaxFile,     string(""), "Base layer syntax input file name")
     267#endif
    262268#endif
    263269#if REF_IDX_FRAMEWORK
     
    516522#if SVC_EXTENSION
    517523  m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());
     524#if AVC_SYNTAX
     525  m_BLSyntaxFile = cfg_BLSyntaxFile.empty() ? NULL : strdup(cfg_BLSyntaxFile.c_str());
     526#endif
    518527#else
    519528  m_pchInputFile = cfg_InputFile.empty() ? NULL : strdup(cfg_InputFile.c_str());
     
    13081317  printf("RecalQP:%d ", m_recalculateQPAccordingToLambda ? 1 : 0 );
    13091318#endif
     1319  printf("AVC_BASE:%d ", AVC_BASE);
    13101320#if REF_IDX_FRAMEWORK
    13111321  printf("REF_IDX_FRAMEWORK:%d ", REF_IDX_FRAMEWORK);
     
    13131323  printf("REF_IDX_ME_AROUND_ZEROMV:%d ", REF_IDX_ME_AROUND_ZEROMV);
    13141324  printf("REF_IDX_ME_ZEROMV: %d", REF_IDX_ME_ZEROMV);
    1315 #else
     1325#elif INTRA_BL
    13161326  printf("INTRA_BL:%d ", INTRA_BL);
    1317   printf("AVC_BASE:%d ", AVC_BASE);
    13181327#if !AVC_BASE
    13191328  printf("SVC_MVP:%d ", SVC_MVP );
  • trunk/source/App/TAppEncoder/TAppEncCfg.h

    r2 r55  
    6767  unsigned int m_FrameSkip;                                   ///< number of skipped frames from the beginning
    6868  Int       m_iFrameToBeEncoded;                              ///< number of encoded frames
     69#if AVC_SYNTAX
     70  char*     m_BLSyntaxFile;                                   ///< input syntax file
     71#endif
    6972#else
    7073  char*     m_pchInputFile;                                   ///< source file name
     
    305308  Void getDirFilename(string& filename, string& dir, const string path);
    306309  Int  getWaveFrontSynchro()        { return m_iWaveFrontSynchro; }
     310#if AVC_SYNTAX
     311  Char* getBLSyntaxFile()           { return m_BLSyntaxFile;      }
     312#endif
    307313#endif
    308314};// END CLASS DEFINITION TAppEncCfg
  • trunk/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r2 r55  
    120120  printf("Input File                    : %s\n", m_cInputFile.c_str()  );
    121121  printf("Reconstruction File           : %s\n", m_cReconFile.c_str()  );
     122#if AVC_SYNTAX
     123  printf("Base layer input file         : %s\n", m_cAppEncCfg->getBLSyntaxFile() );
     124#endif
    122125  printf("Real     Format               : %dx%d %dHz\n", m_iSourceWidth - m_cropLeft - m_cropRight, m_iSourceHeight - m_cropTop - m_cropBottom, m_iFrameRate );
    123126  printf("Internal Format               : %dx%d %dHz\n", m_iSourceWidth, m_iSourceHeight, m_iFrameRate );
  • trunk/source/App/TAppEncoder/TAppEncTop.cpp

    r33 r55  
    706706  }
    707707
     708#if AVC_SYNTAX
     709  if( !m_BLSyntaxFile )
     710  {
     711    printf( "Wrong base layer syntax input file\n" );
     712    exit(EXIT_FAILURE);
     713  }
     714  fstream streamSyntaxFile( m_BLSyntaxFile, fstream::in | fstream::binary );
     715  if( !streamSyntaxFile.good() )
     716  {
     717    printf( "Base layer syntax input reading error\n" );
     718    exit(EXIT_FAILURE);
     719  }
     720  m_acTEncTop[0].setBLSyntaxFile( &streamSyntaxFile );
     721#endif
     722
    708723  Bool bFirstFrame = true;
    709724  while ( !bEos )
     
    791806  }
    792807 
     808#if AVC_SYNTAX
     809  if( streamSyntaxFile.is_open() )
     810  {
     811    streamSyntaxFile.close();
     812  }
     813#endif
     814
    793815  // delete buffers & classes
    794816  xDeleteBuffer();
Note: See TracChangeset for help on using the changeset viewer.