Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -603,6 +603,7 @@ void CWelsH264SVCEncoder::UpdateStatistics (const int64_t kiCurrentFrameTs, EVid · 602 unmodified lines | |||
| 603 | } | 603 | } |
| 604 | pStatistics->fLatestFrameRate = m_pEncContext->pWelsSvcRc->fLatestFrameRate; //TODO: finish the calculation in RC | 604 | pStatistics->fLatestFrameRate = m_pEncContext->pWelsSvcRc->fLatestFrameRate; //TODO: finish the calculation in RC |
| 605 | pStatistics->uiBitRate = m_pEncContext->pWelsSvcRc->iActualBitRate; //TODO: finish the calculation in RC | 605 | pStatistics->uiBitRate = m_pEncContext->pWelsSvcRc->iActualBitRate; //TODO: finish the calculation in RC |
| 606 | pStatistics->uiAverageFrameQP = m_pEncContext->pWelsSvcRc->iAverageFrameQp; | ||
| 606 | 607 | ||
| 607 | if (videoFrameTypeIDR == eFrameType || videoFrameTypeI == eFrameType) { | 608 | if (videoFrameTypeIDR == eFrameType || videoFrameTypeI == eFrameType) { |
| 608 | pStatistics->uiIDRSentNum ++; | 609 | pStatistics->uiIDRSentNum ++; |
| @@ -631,11 +632,11 @@ void CWelsH264SVCEncoder::UpdateStatistics (const int64_t kiCurrentFrameTs, EVid · 22 unmodified lines | |||
| 631 | 632 | ||
| 632 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, | 633 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, |
| 633 | "EncoderStatistics: %dx%d, SpeedInMs: %f, fAverageFrameRate=%f, \ | 634 | "EncoderStatistics: %dx%d, SpeedInMs: %f, fAverageFrameRate=%f, \ |
| 634 | LastFrameRate=%f, LatestBitRate=%d, uiInputFrameCount=%d, uiSkippedFrameCount=%d, \ | 635 | LastFrameRate=%f, LatestBitRate=%d, LastFrameQP=%d, uiInputFrameCount=%d, uiSkippedFrameCount=%d, \ |
| 635 | uiResolutionChangeTimes=%d, uIDRReqNum=%d, uIDRSentNum=%d, uLTRSentNum=NA", | 636 | uiResolutionChangeTimes=%d, uIDRReqNum=%d, uIDRSentNum=%d, uLTRSentNum=NA", |
| 636 | pStatistics->uiWidth, pStatistics->uiHeight, | 637 | pStatistics->uiWidth, pStatistics->uiHeight, |
| 637 | pStatistics->fAverageFrameSpeedInMs, pStatistics->fAverageFrameRate, | 638 | pStatistics->fAverageFrameSpeedInMs, pStatistics->fAverageFrameRate, |
| 638 | pStatistics->fLatestFrameRate, pStatistics->uiBitRate, | 639 | pStatistics->fLatestFrameRate, pStatistics->uiBitRate, pStatistics->uiAverageFrameQP, |
| 639 | pStatistics->uiInputFrameCount, pStatistics->uiSkippedFrameCount, | 640 | pStatistics->uiInputFrameCount, pStatistics->uiSkippedFrameCount, |
| 640 | pStatistics->uiResolutionChangeTimes, pStatistics->uiIDRReqNum, pStatistics->uiIDRSentNum); | 641 | pStatistics->uiResolutionChangeTimes, pStatistics->uiIDRReqNum, pStatistics->uiIDRSentNum); |
| 641 | //TODO: the following statistics will be calculated and added later | 642 | //TODO: the following statistics will be calculated and added later |