Changeset 1334 in SHVCSoftware
- Timestamp:
- 22 Jul 2015, 01:55:58 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1333 r1334 1201 1201 ("SummaryOutFilename", m_summaryOutFilename, string(), "Filename to use for producing summary output file. If empty, do not produce a file.") 1202 1202 ("SummaryPicFilenameBase", m_summaryPicFilenameBase, string(), "Base filename to use for producing summary picture output files. The actual filenames used will have I.txt, P.txt and B.txt appended. If empty, do not produce a file.") 1203 ("SummaryVerboseness", m_summaryVerboseness, 0u, "Specifies the level of the verboseness of the text output") 1203 1204 1204 1205 //Field coding parameters -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1333 r1334 443 443 std::string m_summaryOutFilename; ///< filename to use for producing summary output file. 444 444 std::string m_summaryPicFilenameBase; ///< Base filename to use for producing summary picture output files. The actual filenames used will have I.txt, P.txt and B.txt appended. 445 UInt m_summaryVerboseness; ///< Specifies the level of the verboseness of the text output. 445 446 446 447 #if LAYERS_NOT_PRESENT_SEI -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1333 r1334 728 728 m_acTEncTop[layer].setSummaryOutFilename ( m_summaryOutFilename ); 729 729 m_acTEncTop[layer].setSummaryPicFilenameBase ( m_summaryPicFilenameBase ); 730 m_acTEncTop[layer].setSummaryVerboseness ( m_summaryVerboseness ); 730 731 731 732 if( layer > 0 ) … … 1111 1112 m_cTEncTop.setSummaryOutFilename ( m_summaryOutFilename ); 1112 1113 m_cTEncTop.setSummaryPicFilenameBase ( m_summaryPicFilenameBase ); 1114 m_cTEncTop.setSummaryVerboseness ( m_summaryVerboseness ); 1113 1115 } 1114 1116 #endif //SVC_EXTENSION … … 2437 2439 #endif 2438 2440 printf("Bytes written to file: %u (%.3f kbps)\n", m_totalBytes, 0.008 * m_totalBytes / time); 2439 #if VERBOSE_RATE 2440 printf("Bytes for SPS/PPS/Slice (Incl. Annex B): %u (%.3f kbps)\n", m_essentialBytes, 0.008 * m_essentialBytes / time); 2441 #endif 2441 if (m_summaryVerboseness > 0) 2442 { 2443 printf("Bytes for SPS/PPS/Slice (Incl. Annex B): %u (%.3f kbps)\n", m_essentialBytes, 0.008 * m_essentialBytes / time); 2444 } 2442 2445 } 2443 2446 -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1329 r1334 248 248 #endif 249 249 250 #define VERBOSE_RATE 0 ///< Print additional rate information in encoder251 252 250 #define AMVP_DECIMATION_FACTOR 4 253 251 … … 279 277 #define MDCS_MAXIMUM_WIDTH 8 ///< (default 8) (measured in pixels) TUs with width greater than this can only use diagonal scan 280 278 #define MDCS_MAXIMUM_HEIGHT 8 ///< (default 8) (measured in pixels) TUs with height greater than this can only use diagonal scan 281 282 #define FAST_UDI_USE_MPM 1283 279 284 280 #define RDO_WITHOUT_DQP_BITS 0 ///< Disable counting dQP bits in RDO-based mode decision -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1333 r1334 382 382 std::string m_summaryOutFilename; ///< filename to use for producing summary output file. 383 383 std::string m_summaryPicFilenameBase; ///< Base filename to use for producing summary picture output files. The actual filenames used will have I.txt, P.txt and B.txt appended. 384 UInt m_summaryVerboseness; ///< Specifies the level of the verboseness of the text output. 384 385 385 386 #if SVC_EXTENSION … … 1028 1029 Void setSummaryPicFilenameBase(const std::string &s) { m_summaryPicFilenameBase = s; } 1029 1030 const std::string& getSummaryPicFilenameBase() const { return m_summaryPicFilenameBase; } 1031 Void setSummaryVerboseness(UInt v) { m_summaryVerboseness = v; } 1032 UInt getSummaryVerboseness( ) const { return m_summaryVerboseness; } 1030 1033 1031 1034 #if Q0189_TMVP_CONSTRAINTS -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1333 r1334 3077 3077 } 3078 3078 3079 #if VERBOSE_RATE3080 3079 static const Char* nalUnitTypeToString(NalUnitType type) 3081 3080 { … … 3110 3109 } 3111 3110 } 3112 #endif3113 3111 3114 3112 Void TEncGOP::xCalculateAddPSNRs( const Bool isField, const Bool isFieldTopFieldFirst, const Int iGOPid, TComPic* pcPic, const AccessUnit&accessUnit, TComList<TComPic*> &rcListPic, const Double dEncTime, const InputColourSpaceConversion snr_conversion, const Bool printFrameMSE ) … … 3242 3240 { 3243 3241 UInt numRBSPBytes_nal = UInt((*it)->m_nalUnitData.str().size()); 3244 #if VERBOSE_RATE 3245 printf("*** %6s numBytesInNALunit: %u\n", nalUnitTypeToString((*it)->m_nalUnitType), numRBSPBytes_nal); 3246 #endif 3242 if (m_pcCfg->getSummaryVerboseness() > 0) 3243 { 3244 printf("*** %6s numBytesInNALunit: %u\n", nalUnitTypeToString((*it)->m_nalUnitType), numRBSPBytes_nal); 3245 } 3247 3246 if ((*it)->m_nalUnitType != NAL_UNIT_PREFIX_SEI && (*it)->m_nalUnitType != NAL_UNIT_SUFFIX_SEI) 3248 3247 {
Note: See TracChangeset for help on using the changeset viewer.