Changeset 1366 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 22 Jul 2015, 04:32:08 (9 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1364 r1366 109 109 #if SVC_EXTENSION 110 110 TAppEncCfg::TAppEncCfg() 111 : m_p BitstreamFile()111 : m_pchBitstreamFile() 112 112 #if AVC_BASE 113 113 , m_nonHEVCBaseLayerFlag(0) … … 148 148 TAppEncCfg::~TAppEncCfg() 149 149 { 150 #if SVC_EXTENSION 151 if( m_pBitstreamFile ) 152 { 153 free(m_pBitstreamFile); 154 m_pBitstreamFile = NULL; 155 } 156 #else 150 #if !SVC_EXTENSION 157 151 if ( m_aidQP ) 158 152 { … … 176 170 177 171 free(m_pchInputFile); 172 #endif 178 173 free(m_pchBitstreamFile); 179 #endif180 174 #if !SVC_EXTENSION 181 175 free(m_pchReconFile); … … 1772 1766 } 1773 1767 #endif 1774 m_pBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str());1775 1768 #else //SVC_EXTENSION 1776 1769 m_pchInputFile = cfg_InputFile.empty() ? NULL : strdup(cfg_InputFile.c_str()); 1770 #endif 1777 1771 m_pchBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str()); 1772 #if !SVC_EXTENSION 1778 1773 m_pchReconFile = cfg_ReconFile.empty() ? NULL : strdup(cfg_ReconFile.c_str()); 1779 1774 m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str()); … … 4341 4336 } 4342 4337 printf("=== Common configuration settings === \n"); 4343 printf("Bitstream File : %s\n", m_p BitstreamFile );4338 printf("Bitstream File : %s\n", m_pchBitstreamFile ); 4344 4339 #else //SVC_EXTENSION 4345 4340 printf("\n"); -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1356 r1366 64 64 Int m_numLayers; ///< number of layers 65 65 Int m_scalabilityMask[MAX_VPS_NUM_SCALABILITY_TYPES]; ///< scalability_mask 66 Char* m_pBitstreamFile; ///< output bitstream file67 Double m_adLambdaModifier[ MAX_TLAYER ]; ///< Lambda modifier array for each temporal layer68 // source specification69 UInt m_FrameSkip; ///< number of skipped frames from the beginning70 Int m_framesToBeEncoded; ///< number of encoded frames71 66 #if AVC_BASE 72 67 Int m_nonHEVCBaseLayerFlag; ///< non HEVC BL … … 88 83 #else 89 84 Char* m_pchInputFile; ///< source file name 85 #endif 90 86 Char* m_pchBitstreamFile; ///< output bitstream file 87 #if !SVC_EXTENSION 91 88 Char* m_pchReconFile; ///< output reconstruction file 89 #endif 92 90 Double m_adLambdaModifier[ MAX_TLAYER ]; ///< Lambda modifier array for each temporal layer 93 91 // source specification 92 #if !SVC_EXTENSION 94 93 Int m_iFrameRate; ///< source frame-rates (Hz) 94 #endif 95 95 UInt m_FrameSkip; ///< number of skipped frames from the beginning 96 #if !SVC_EXTENSION 96 97 Int m_iSourceWidth; ///< source width in pixel 97 98 Int m_iSourceHeight; ///< source height in pixel (when interlaced = field height) … … 110 111 Int m_confWinTop; 111 112 Int m_confWinBottom; 113 #endif 112 114 Int m_framesToBeEncoded; ///< number of encoded frames 115 #if !SVC_EXTENSION 113 116 Int m_aiPad[2]; ///< number of padded pixels for width and height 114 117 #endif -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1356 r1366 1680 1680 Void TAppEncTop::encode() 1681 1681 { 1682 fstream bitstreamFile(m_p BitstreamFile, fstream::binary | fstream::out);1682 fstream bitstreamFile(m_pchBitstreamFile, fstream::binary | fstream::out); 1683 1683 if (!bitstreamFile) 1684 1684 { 1685 fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_p BitstreamFile);1685 fprintf(stderr, "\nfailed to open bitstream file `%s' for writing\n", m_pchBitstreamFile); 1686 1686 exit(EXIT_FAILURE); 1687 1687 }
Note: See TracChangeset for help on using the changeset viewer.