Changeset 1366 in SHVCSoftware for branches/SHM-dev/source/App


Ignore:
Timestamp:
22 Jul 2015, 04:32:08 (9 years ago)
Author:
seregin
Message:

port rev 4483 and fixes for previous revisions

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1364 r1366  
    109109#if SVC_EXTENSION
    110110TAppEncCfg::TAppEncCfg()
    111 : m_pBitstreamFile()
     111: m_pchBitstreamFile()
    112112#if AVC_BASE
    113113, m_nonHEVCBaseLayerFlag(0)
     
    148148TAppEncCfg::~TAppEncCfg()
    149149{
    150 #if SVC_EXTENSION
    151   if( m_pBitstreamFile )
    152   {
    153     free(m_pBitstreamFile);
    154     m_pBitstreamFile = NULL;
    155   }
    156 #else 
     150#if !SVC_EXTENSION
    157151  if ( m_aidQP )
    158152  {
     
    176170
    177171  free(m_pchInputFile);
     172#endif
    178173  free(m_pchBitstreamFile);
    179 #endif
    180174#if !SVC_EXTENSION 
    181175  free(m_pchReconFile);
     
    17721766  }
    17731767#endif
    1774   m_pBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());
    17751768#else //SVC_EXTENSION
    17761769  m_pchInputFile = cfg_InputFile.empty() ? NULL : strdup(cfg_InputFile.c_str());
     1770#endif
    17771771  m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());
     1772#if !SVC_EXTENSION
    17781773  m_pchReconFile = cfg_ReconFile.empty() ? NULL : strdup(cfg_ReconFile.c_str());
    17791774  m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str());
     
    43414336  }
    43424337  printf("=== Common configuration settings === \n");
    4343   printf("Bitstream      File               : %s\n", m_pBitstreamFile      );
     4338  printf("Bitstream      File               : %s\n", m_pchBitstreamFile      );
    43444339#else //SVC_EXTENSION
    43454340  printf("\n");
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1356 r1366  
    6464  Int       m_numLayers;                                      ///< number of layers
    6565  Int       m_scalabilityMask[MAX_VPS_NUM_SCALABILITY_TYPES]; ///< scalability_mask
    66   Char*     m_pBitstreamFile;                                 ///< output bitstream file
    67   Double    m_adLambdaModifier[ MAX_TLAYER ];                 ///< Lambda modifier array for each temporal layer
    68   // source specification
    69   UInt      m_FrameSkip;                                      ///< number of skipped frames from the beginning
    70   Int       m_framesToBeEncoded;                              ///< number of encoded frames
    7166#if AVC_BASE
    7267  Int       m_nonHEVCBaseLayerFlag;                           ///< non HEVC BL
     
    8883#else
    8984  Char*     m_pchInputFile;                                   ///< source file name
     85#endif
    9086  Char*     m_pchBitstreamFile;                               ///< output bitstream file
     87#if !SVC_EXTENSION
    9188  Char*     m_pchReconFile;                                   ///< output reconstruction file
     89#endif
    9290  Double    m_adLambdaModifier[ MAX_TLAYER ];                 ///< Lambda modifier array for each temporal layer
    9391  // source specification
     92#if !SVC_EXTENSION
    9493  Int       m_iFrameRate;                                     ///< source frame-rates (Hz)
     94#endif
    9595  UInt      m_FrameSkip;                                   ///< number of skipped frames from the beginning
     96#if !SVC_EXTENSION
    9697  Int       m_iSourceWidth;                                   ///< source width in pixel
    9798  Int       m_iSourceHeight;                                  ///< source height in pixel (when interlaced = field height)
     
    110111  Int       m_confWinTop;
    111112  Int       m_confWinBottom;
     113#endif
    112114  Int       m_framesToBeEncoded;                              ///< number of encoded frames
     115#if !SVC_EXTENSION
    113116  Int       m_aiPad[2];                                       ///< number of padded pixels for width and height
    114117#endif 
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1356 r1366  
    16801680Void TAppEncTop::encode()
    16811681{
    1682   fstream bitstreamFile(m_pBitstreamFile, fstream::binary | fstream::out);
     1682  fstream bitstreamFile(m_pchBitstreamFile, fstream::binary | fstream::out);
    16831683  if (!bitstreamFile)
    16841684  {
    1685     fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_pBitstreamFile);
     1685    fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_pchBitstreamFile);
    16861686    exit(EXIT_FAILURE);
    16871687  }
Note: See TracChangeset for help on using the changeset viewer.