Ticket #1382: printSummary_fixed.patch

File printSummary_fixed.patch, 1.9 KB (added by jani.lainema, 9 years ago)
  • Lib/TLibCommon/CommonDef.h

     
    110110// Common constants
    111111// ====================================================================================================================
    112112
    113 #define _SUMMARY_OUT_               0           ///< print-out PSNR results of all slices to summary.txt
     113#define _SUMMARY_OUT_               1           ///< print-out PSNR results of all slices to summary.txt
    114114#define _SUMMARY_PIC_               0           ///< print-out PSNR results for each slice type to summary.txt
    115115
    116116#define MAX_GOP                     64          ///< max. value of hierarchical GOP size
  • Lib/TLibEncoder/TEncGOP.cpp

     
    17701770  m_gcAnalyzeB.printOut('b', chFmt, printMSEBasedSNR, printSequenceMSE, bitDepths);
    17711771
    17721772#if _SUMMARY_OUT_
    1773   m_gcAnalyzeAll.printSummary(chFmt, printSequenceMSE);
     1773  m_gcAnalyzeAll.printSummary(chFmt, printSequenceMSE, bitDepths);
    17741774#endif
    17751775#if _SUMMARY_PIC_
    1776   m_gcAnalyzeI.printSummary(chFmt, printSequenceMSE,'I');
    1777   m_gcAnalyzeP.printSummary(chFmt, printSequenceMSE,'P');
    1778   m_gcAnalyzeB.printSummary(chFmt, printSequenceMSE,'B');
     1776  m_gcAnalyzeI.printSummary(chFmt, printSequenceMSE, bitDepths, 'I');
     1777  m_gcAnalyzeP.printSummary(chFmt, printSequenceMSE, bitDepths, 'P');
     1778  m_gcAnalyzeB.printSummary(chFmt, printSequenceMSE, bitDepths, 'B');
    17791779#endif
    17801780
    17811781  if(isField)
     
    17891789    m_gcAnalyzeAll_in.printOut('a', chFmt, printMSEBasedSNR, printSequenceMSE, bitDepths);
    17901790
    17911791#if _SUMMARY_OUT_
    1792     m_gcAnalyzeAll_in.printSummary(chFmt, printSequenceMSE);
     1792    m_gcAnalyzeAll_in.printSummary(chFmt, printSequenceMSE, bitDepths);
    17931793#endif
    17941794  }
    17951795