Changeset 820 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder
- Timestamp:
- 7 Jul 2014, 11:08:41 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r815 r820 510 510 string cfg_BLInputFile; 511 511 #endif 512 #if AVC_SYNTAX513 string cfg_BLSyntaxFile;514 #endif515 512 #if N0383_IL_CONSTRAINED_TILE_SETS_SEI 516 513 string cfg_tileSets; … … 629 626 ("AvcBase,-avc", m_avcBaseLayerFlag, 0, "avc_base_layer_flag") 630 627 ("InputBLFile,-ibl", cfg_BLInputFile, string(""), "Base layer rec YUV input file name") 631 #if AVC_SYNTAX632 ("InputBLSyntaxFile,-ibs", cfg_BLSyntaxFile, string(""), "Base layer syntax input file name")633 #endif634 628 #endif 635 629 ("EnableElRapB,-use-rap-b", m_elRapSliceBEnabled, 0, "Set ILP over base-layer I picture to B picture (default is P picture)") … … 1095 1089 #endif 1096 1090 m_pBitstreamFile = cfg_BitstreamFile.empty() ? NULL : strdup(cfg_BitstreamFile.c_str()); 1097 #if AVC_SYNTAX1098 m_BLSyntaxFile = cfg_BLSyntaxFile.empty() ? NULL : strdup(cfg_BLSyntaxFile.c_str());1099 #endif1100 1091 #else //SVC_EXTENSION 1101 1092 m_pchInputFile = cfg_InputFile.empty() ? NULL : strdup(cfg_InputFile.c_str()); … … 2933 2924 { 2934 2925 printf("=== Layer %d settings === \n", layer); 2935 #if AVC_SYNTAX2936 m_acLayerCfg[layer].xPrintParameter( layer );2937 #else2938 2926 m_acLayerCfg[layer].xPrintParameter(); 2939 #endif2940 2927 printf("\n"); 2941 2928 } 2942 2929 printf("=== Common configuration settings === \n"); 2943 2930 printf("Bitstream File : %s\n", m_pBitstreamFile ); 2944 #else 2931 #else //SVC_EXTENSION 2945 2932 printf("Input File : %s\n", m_pchInputFile ); 2946 2933 printf("Bitstream File : %s\n", m_pchBitstreamFile ); … … 2948 2935 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - m_confLeft - m_confRight, m_iSourceHeight - m_confTop - m_confBottom, m_iFrameRate ); 2949 2936 printf("Internal Format : %dx%d %dHz\n", m_iSourceWidth, m_iSourceHeight, m_iFrameRate ); 2950 #endif 2937 #endif //SVC_EXTENSION 2951 2938 if (m_isField) 2952 2939 { -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r815 r820 69 69 #if AVC_BASE 70 70 Int m_avcBaseLayerFlag; ///< avc_baselayer_flag 71 #endif72 #if AVC_SYNTAX73 Char* m_BLSyntaxFile; ///< input syntax file74 71 #endif 75 72 Bool m_maxTidRefPresentFlag; … … 470 467 Int getWaveFrontSynchro() { return m_iWaveFrontSynchro; } 471 468 Void getDirFilename(string& filename, string& dir, const string path); 472 #if AVC_SYNTAX473 Char* getBLSyntaxFile() { return m_BLSyntaxFile; }474 #endif475 469 Void cfgStringToArray(Int **arr, string cfgString, Int numEntries, const char* logString); 476 470 #if REPN_FORMAT_IN_VPS -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r713 r820 157 157 } 158 158 159 #if AVC_SYNTAX160 Void TAppEncLayerCfg::xPrintParameter( UInt layerId )161 #else162 159 Void TAppEncLayerCfg::xPrintParameter() 163 #endif164 160 { 165 161 printf("Input File : %s\n", m_cInputFile.c_str() ); 166 162 printf("Reconstruction File : %s\n", m_cReconFile.c_str() ); 167 #if AVC_SYNTAX168 if( layerId == 0 )169 {170 printf("Base layer syntax file : %s\n", m_cAppEncCfg->getBLSyntaxFile() );171 }172 #endif173 163 #if REPN_FORMAT_IN_VPS 174 164 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - ( m_confLeft + m_confRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confTop + m_confBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate ); -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r815 r820 122 122 bool parseCfg ( const string& cfgFileName ); ///< parse layer configuration file to fill member variables 123 123 124 #if AVC_SYNTAX125 Void xPrintParameter( UInt layerId );126 #else127 124 Void xPrintParameter(); 128 #endif129 125 Bool xCheckParameter( Bool isField ); 130 126 -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r815 r820 226 226 #if REF_IDX_MFM 227 227 #if AVC_BASE 228 m_acTEncTop[layer].setMFMEnabledFlag(layer == 0 ? false : ( m_avcBaseLayerFlag ? AVC_SYNTAX: true ) && m_acLayerCfg[layer].getNumMotionPredRefLayers());228 m_acTEncTop[layer].setMFMEnabledFlag(layer == 0 ? false : ( m_avcBaseLayerFlag ? false : true ) && m_acLayerCfg[layer].getNumMotionPredRefLayers()); 229 229 #else 230 230 m_acTEncTop[layer].setMFMEnabledFlag(layer == 0 ? false : ( m_acLayerCfg[layer].getNumMotionPredRefLayers() > 0 ) ); … … 1669 1669 } 1670 1670 1671 #if AVC_SYNTAX1672 fstream streamSyntaxFile;1673 if( m_acTEncTop[0].getVPS()->getAvcBaseLayerFlag() )1674 {1675 if( !m_BLSyntaxFile )1676 {1677 printf( "Wrong base layer syntax input file\n" );1678 exit(EXIT_FAILURE);1679 }1680 streamSyntaxFile.open( m_BLSyntaxFile, fstream::in | fstream::binary );1681 if( !streamSyntaxFile.good() )1682 {1683 printf( "Base layer syntax input reading error\n" );1684 exit(EXIT_FAILURE);1685 }1686 m_acTEncTop[0].setBLSyntaxFile( &streamSyntaxFile );1687 }1688 #endif1689 1690 1671 Bool bFirstFrame = true; 1691 1672 while ( !bEos ) … … 1884 1865 m_acTEncTop[layer].deletePicBuffer(); 1885 1866 } 1886 1887 #if AVC_SYNTAX1888 if( streamSyntaxFile.is_open() )1889 {1890 streamSyntaxFile.close();1891 }1892 #endif1893 1867 1894 1868 // delete buffers & classes … … 2324 2298 if (m_pchReconFile) 2325 2299 { 2326 #if SYNTAX_OUTPUT2327 2300 m_cTVideoIOYuvReconFile.write( pcPicYuvRec, m_confLeft, m_confRight, m_confTop, m_confBottom ); 2328 #endif2329 2301 } 2330 2302
Note: See TracChangeset for help on using the changeset viewer.