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 | iEnd = WelsTime(); | 608 | iEnd = WelsTime(); |
| 609 | m_pDecContext->dDecTime += (iEnd - iStart) / 1e3; | 609 | m_pDecContext->dDecTime += (iEnd - iStart) / 1e3; |
| 610 | |||
| 611 | OutputStatisticsLog (m_pDecContext->sDecoderStatistics); | ||
| 612 | |||
| 610 | return (DECODING_STATE) m_pDecContext->iErrorCode; | 613 | return (DECODING_STATE) m_pDecContext->iErrorCode; |
| 611 | } | 614 | } |
| 612 | // else Error free, the current codec works well | 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 | ResetDecStatNums (&m_pDecContext->sDecoderStatistics); | 621 | ResetDecStatNums (&m_pDecContext->sDecoderStatistics); |
| 619 | m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++; | 622 | m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++; |
| 620 | } | 623 | } |
| 624 | |||
| 625 | OutputStatisticsLog (m_pDecContext->sDecoderStatistics); | ||
| 621 | } | 626 | } |
| 622 | iEnd = WelsTime(); | 627 | iEnd = WelsTime(); |
| 623 | m_pDecContext->dDecTime += (iEnd - iStart) / 1e3; | 628 | m_pDecContext->dDecTime += (iEnd - iStart) / 1e3; |
| 624 | 629 | ||
| 625 | OutputStatisticsLog (m_pDecContext->sDecoderStatistics); | 630 | |
| 626 | 631 | ||
| 627 | return dsErrorFree; | 632 | return dsErrorFree; |
| 628 | } | 633 | } |
| @@ -631,7 +636,7 @@ void CWelsDecoder::OutputStatisticsLog (SDecoderStatistics& sDecoderStatistics) · 2 unmodified lines | |||
| 631 | if ((sDecoderStatistics.uiDecodedFrameCount > 0) && (sDecoderStatistics.iStatisticsLogInterval > 0) | 636 | if ((sDecoderStatistics.uiDecodedFrameCount > 0) && (sDecoderStatistics.iStatisticsLogInterval > 0) |
| 632 | && ((sDecoderStatistics.uiDecodedFrameCount % sDecoderStatistics.iStatisticsLogInterval) == 0)) { | 637 | && ((sDecoderStatistics.uiDecodedFrameCount % sDecoderStatistics.iStatisticsLogInterval) == 0)) { |
| 633 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, | 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 | uiDecodedFrameCount=%d, uiResolutionChangeTimes=%d, uiIDRCorrectNum=%d, \ | 640 | uiDecodedFrameCount=%d, uiResolutionChangeTimes=%d, uiIDRCorrectNum=%d, \ |
| 636 | uiAvgEcRatio=%d, uiAvgEcPropRatio=%d, uiEcIDRNum=%d, uiEcFrameNum=%d, \ | 641 | uiAvgEcRatio=%d, uiAvgEcPropRatio=%d, uiEcIDRNum=%d, uiEcFrameNum=%d, \ |
| 637 | uiIDRLostNum=%d, uiFreezingIDRNum=%d, uiFreezingNonIDRNum=%d, iAvgLumaQp=%d, \ | 642 | uiIDRLostNum=%d, uiFreezingIDRNum=%d, uiFreezingNonIDRNum=%d, iAvgLumaQp=%d, \ |