Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -607,6 +607,9 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 606 unmodified lines | ||
| 607 | 607 | } |
| 608 | 608 | iEnd = WelsTime(); |
| 609 | 609 | m_pDecContext->dDecTime += (iEnd - iStart) / 1e3; |
| 610 | + | |
| 611 | + OutputStatisticsLog (m_pDecContext->sDecoderStatistics); | |
| 612 | + | |
| 610 | 613 | return (DECODING_STATE) m_pDecContext->iErrorCode; |
| 611 | 614 | } |
| 612 | 615 | // else Error free, the current codec works well |
| @@ -618,11 +621,13 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 5 unmodified lines | ||
| 618 | 621 | ResetDecStatNums (&m_pDecContext->sDecoderStatistics); |
| 619 | 622 | m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++; |
| 620 | 623 | } |
| 624 | + | |
| 625 | + OutputStatisticsLog (m_pDecContext->sDecoderStatistics); | |
| 621 | 626 | } |
| 622 | 627 | iEnd = WelsTime(); |
| 623 | 628 | m_pDecContext->dDecTime += (iEnd - iStart) / 1e3; |
| 624 | 629 | |
| 625 | − OutputStatisticsLog (m_pDecContext->sDecoderStatistics); | |
| 630 | + | |
| 626 | 631 | |
| 627 | 632 | return dsErrorFree; |
| 628 | 633 | } |
| @@ -631,7 +636,7 @@ void CWelsDecoder::OutputStatisticsLog (SDecoderStatistics& sDecoderStatistics) · 2 unmodified lines | ||
| 631 | 636 | if ((sDecoderStatistics.uiDecodedFrameCount > 0) && (sDecoderStatistics.iStatisticsLogInterval > 0) |
| 632 | 637 | && ((sDecoderStatistics.uiDecodedFrameCount % sDecoderStatistics.iStatisticsLogInterval) == 0)) { |
| 633 | 638 | 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, \ | |
| 635 | 640 | uiDecodedFrameCount=%d, uiResolutionChangeTimes=%d, uiIDRCorrectNum=%d, \ |
| 636 | 641 | uiAvgEcRatio=%d, uiAvgEcPropRatio=%d, uiEcIDRNum=%d, uiEcFrameNum=%d, \ |
| 637 | 642 | uiIDRLostNum=%d, uiFreezingIDRNum=%d, uiFreezingNonIDRNum=%d, iAvgLumaQp=%d, \ |