ref: 8228ea64cbf01dd6c7e8fa39e10a3a57975ef2c6
parent: 8f54d2d92d8781313bd98b537ace309713967eae
parent: 65355c499e123c0711e8e656d0dc199c5999f286
author: huili2 <huili2@cisco.com>
date: Mon Jun 26 05:00:09 EDT 2017
Merge pull request #2773 from sijchen/master [Decoder] improve decoder logging
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -607,6 +607,9 @@
}
iEnd = WelsTime();
m_pDecContext->dDecTime += (iEnd - iStart) / 1e3;
+
+ OutputStatisticsLog (m_pDecContext->sDecoderStatistics);
+
return (DECODING_STATE) m_pDecContext->iErrorCode;
}
// else Error free, the current codec works well
@@ -618,12 +621,14 @@
ResetDecStatNums (&m_pDecContext->sDecoderStatistics);
m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++;
}
+
+ OutputStatisticsLog (m_pDecContext->sDecoderStatistics);
}
iEnd = WelsTime();
m_pDecContext->dDecTime += (iEnd - iStart) / 1e3;
- OutputStatisticsLog (m_pDecContext->sDecoderStatistics);
+
return dsErrorFree;
}
@@ -631,7 +636,7 @@
if ((sDecoderStatistics.uiDecodedFrameCount > 0) && (sDecoderStatistics.iStatisticsLogInterval > 0)
&& ((sDecoderStatistics.uiDecodedFrameCount % sDecoderStatistics.iStatisticsLogInterval) == 0)) {
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
- "uiWidth=%d, uiHeight=%d, fAverageFrameSpeedInMs=%.1f, fActualAverageFrameSpeedInMs=%.1f, \
+ "DecoderStatistics: uiWidth=%d, uiHeight=%d, fAverageFrameSpeedInMs=%.1f, fActualAverageFrameSpeedInMs=%.1f, \
uiDecodedFrameCount=%d, uiResolutionChangeTimes=%d, uiIDRCorrectNum=%d, \
uiAvgEcRatio=%d, uiAvgEcPropRatio=%d, uiEcIDRNum=%d, uiEcFrameNum=%d, \
uiIDRLostNum=%d, uiFreezingIDRNum=%d, uiFreezingNonIDRNum=%d, iAvgLumaQp=%d, \