History

improve decoder logging

sijchen@cisco.com committed 9 years ago

Commit 65355c41 parent 8f54d2d1 file · +7 −2Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+7−2
@@ -607,6 +607,9 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 606 unmodified lines
607607 }
608608 iEnd = WelsTime();
609609 m_pDecContext->dDecTime += (iEnd - iStart) / 1e3;
610+
611+ OutputStatisticsLog (m_pDecContext->sDecoderStatistics);
612+
610613 return (DECODING_STATE) m_pDecContext->iErrorCode;
611614 }
612615 // else Error free, the current codec works well
@@ -618,11 +621,13 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 5 unmodified lines
618621 ResetDecStatNums (&m_pDecContext->sDecoderStatistics);
619622 m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++;
620623 }
624+
625+ OutputStatisticsLog (m_pDecContext->sDecoderStatistics);
621626 }
622627 iEnd = WelsTime();
623628 m_pDecContext->dDecTime += (iEnd - iStart) / 1e3;
624629
625− OutputStatisticsLog (m_pDecContext->sDecoderStatistics);
630+
626631
627632 return dsErrorFree;
628633 }
@@ -631,7 +636,7 @@ void CWelsDecoder::OutputStatisticsLog (SDecoderStatistics& sDecoderStatistics) · 2 unmodified lines
631636 if ((sDecoderStatistics.uiDecodedFrameCount > 0) && (sDecoderStatistics.iStatisticsLogInterval > 0)
632637 && ((sDecoderStatistics.uiDecodedFrameCount % sDecoderStatistics.iStatisticsLogInterval) == 0)) {
633638 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
634− "uiWidth=%d, uiHeight=%d, fAverageFrameSpeedInMs=%.1f, fActualAverageFrameSpeedInMs=%.1f, \
639+ "DecoderStatistics: uiWidth=%d, uiHeight=%d, fAverageFrameSpeedInMs=%.1f, fActualAverageFrameSpeedInMs=%.1f, \
635640 uiDecodedFrameCount=%d, uiResolutionChangeTimes=%d, uiIDRCorrectNum=%d, \
636641 uiAvgEcRatio=%d, uiAvgEcPropRatio=%d, uiEcIDRNum=%d, uiEcFrameNum=%d, \
637642 uiIDRLostNum=%d, uiFreezingIDRNum=%d, uiFreezingNonIDRNum=%d, iAvgLumaQp=%d, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t