Changeset 364 in 3DVCSoftware for branches/HTM-DEV-0.1-dev/source/App/TAppEncoder
- Timestamp:
- 3 May 2013, 16:34:51 (11 years ago)
- Location:
- branches/HTM-DEV-0.1-dev/source/App/TAppEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.1-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r363 r364 107 107 delete[] m_aidQP; 108 108 } 109 free(m_pchInputFile);110 109 #endif 111 110 #if J0149_TONE_MAPPING_SEI … … 126 125 } 127 126 #endif 127 #if !H_MV 128 free(m_pchInputFile); 129 #endif 128 130 free(m_pchBitstreamFile); 129 130 131 #if H_MV 131 132 for(Int i = 0; i< m_pchReconFileList.size(); i++ ) … … 137 138 free(m_pchReconFile); 138 139 #endif 139 140 140 free(m_pchdQPFile); 141 141 free(m_pColumnWidth); … … 337 337 #endif 338 338 #endif 339 340 339 string cfg_dQPFile; 341 340 string cfg_ColumnWidth; … … 361 360 362 361 // File, I/O and source parameters 363 364 362 #if H_MV 365 363 ("InputFile_%d,i_%d", m_pchInputFileList, (char *) 0 , MAX_NUM_LAYER_IDS , "original Yuv input file name %d") … … 367 365 ("InputFile,i", cfg_InputFile, string(""), "Original YUV input file name") 368 366 #endif 369 370 367 ("BitstreamFile,b", cfg_BitstreamFile, string(""), "Bitstream output file name") 371 372 368 #if H_MV 373 369 ("ReconFile_%d,o_%d", m_pchReconFileList, (char *) 0 , MAX_NUM_LAYER_IDS , "reconstructed Yuv output file name %d") … … 375 371 ("ReconFile,o", cfg_ReconFile, string(""), "Reconstructed YUV output file name") 376 372 #endif 377 378 373 #if H_MV 379 374 ("NumberOfLayers", m_numberOfLayers , 1, "Number of layers") … … 413 408 414 409 // Profile and level 415 416 410 ("Profile", m_profile, Profile::NONE, "Profile to be used when encoding (Incomplete)") 417 411 ("Level", m_level, Level::NONE, "Level limit to be used, eg 5.1 (Incomplete)") … … 730 724 } 731 725 #endif 732 733 726 po::setDefaults(opts); 734 727 const list<const Char*>& argv_unhandled = po::scanArgv(opts, argc, (const Char**) argv); … … 760 753 m_pchReconFile = cfg_ReconFile.empty() ? NULL : strdup(cfg_ReconFile.c_str()); 761 754 #endif 762 763 755 m_pchdQPFile = cfg_dQPFile.empty() ? NULL : strdup(cfg_dQPFile.c_str()); 764 756 … … 824 816 free ( pRowHeight ); 825 817 #endif 826 827 818 #if SIGNAL_BITRATE_PICRATE_IN_VPS 828 819 readBoolString(cfg_bitRateInfoPresentFlag, m_bitRatePicRateMaxTLayers, m_bitRateInfoPresentFlag, "bit rate info. present flag" ); … … 1142 1133 xConfirmPara( m_iFrameRate <= 0, "Frame rate must be more than 1" ); 1143 1134 xConfirmPara( m_framesToBeEncoded <= 0, "Total Number Of Frames encoded must be more than 0" ); 1144 1145 1135 #if H_MV 1146 1136 xConfirmPara( m_numberOfLayers > MAX_NUM_LAYER_IDS , "NumberOfLayers must be less than or equal to MAX_NUM_LAYER_IDS"); … … 1155 1145 xConfirmPara( m_scalabilityMask != 1 , "Scalability Mask must be equal to 1. "); 1156 1146 #endif 1157 1147 1158 1148 m_dimIds.push_back( m_viewId ); 1159 1149 #if H_3D … … 1212 1202 1213 1203 #endif 1214 1215 1216 1204 xConfirmPara( m_iGOPSize < 1 , "GOP Size must be greater or equal to 1" ); 1217 1205 xConfirmPara( m_iGOPSize > 1 && m_iGOPSize % 2, "GOP Size must be a multiple of 2, if GOP Size is greater than 1" ); -
branches/HTM-DEV-0.1-dev/source/App/TAppEncoder/TAppEncTop.cpp
r362 r364 136 136 m_cTEncTop.setIvPicLists ( &m_ivPicLists ); 137 137 #endif 138 139 138 m_cTEncTop.setVPS(&vps); 140 139 141 140 m_cTEncTop.setProfile(m_profile); 142 141 m_cTEncTop.setLevel(m_levelTier, m_level); 143 144 142 #if L0046_CONSTRAINT_FLAGS 145 143 m_cTEncTop.setProgressiveSourceFlag(m_progressiveSourceFlag); … … 462 460 } 463 461 #endif 464 465 #if H_MV 466 } 467 #endif 468 462 #if H_MV 463 } 464 #endif 469 465 } 470 466 … … 721 717 } 722 718 #endif 723 724 719 // ==================================================================================================================== 725 720 // Protected member functions … … 795 790 } 796 791 #endif 797 798 792 } 799 793 … … 825 819 { 826 820 TComPicYuv* pcPicYuvRec = *(iterPicYuvRec++); 827 828 821 #if H_MV 829 822 if (m_pchReconFileList[layerId]) … … 853 846 } 854 847 #endif 855 856 848 } 857 849 … … 899 891 void TAppEncTop::printRateSummary() 900 892 { 901 902 893 #if H_MV 903 894 Double time = (Double) m_frameRcvd[0] / m_iFrameRate; … … 906 897 Double time = (Double) m_iFrameRcvd / m_iFrameRate; 907 898 #endif 908 909 899 printf("Bytes written to file: %u (%.3f kbps)\n", m_totalBytes, 0.008 * m_totalBytes / time); 910 900 #if VERBOSE_RATE -
branches/HTM-DEV-0.1-dev/source/App/TAppEncoder/TAppEncTop.h
r324 r364 59 59 private: 60 60 // class interface 61 62 61 #if H_MV 63 62 std::vector<TEncTop*> m_acTEncTopList ; ///< encoder class per layer … … 100 99 101 100 // file I/O 102 103 101 #if H_MV 104 102 Void xWriteOutput(std::ostream& bitstreamFile, Int iNumEncoded, std::list<AccessUnit>& accessUnits, UInt layerId); ///< write bitstream to file … … 106 104 Void xWriteOutput(std::ostream& bitstreamFile, Int iNumEncoded, const std::list<AccessUnit>& accessUnits); ///< write bitstream to file 107 105 #endif 108 109 106 void rateStatsAccum(const AccessUnit& au, const std::vector<UInt>& stats); 110 107 void printRateSummary(); … … 116 113 Int xGetMax( std::vector<Int>& vec); 117 114 #endif 118 119 115 public: 120 116 TAppEncTop(); … … 122 118 123 119 Void encode (); ///< main encoding function 124 125 120 #if H_MV 126 121 TEncTop* getTEncTopLayer(UInt layer) { return m_acTEncTopList[layer]; } ///< return pointer to encoder class for specific layer … … 131 126 TEncTop& getTEncTop () { return m_cTEncTop; } ///< return encoder class pointer reference 132 127 #endif 133 134 128 };// END CLASS DEFINITION TAppEncTop 135 129 -
branches/HTM-DEV-0.1-dev/source/App/TAppEncoder/encmain.cpp
r324 r364 62 62 fprintf( stdout, "HM software: Encoder Version [%s]", NV_VERSION ); 63 63 #endif 64 65 64 fprintf( stdout, NVM_ONOS ); 66 65 fprintf( stdout, NVM_COMPILEDBY );
Note: See TracChangeset for help on using the changeset viewer.