History

add average QP in statistics

lyao2 committed 11 years ago

Commit ca2436b1 parent 827c7b22 files · +4 −2Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+3−2
@@ -603,6 +603,7 @@ void CWelsH264SVCEncoder::UpdateStatistics (const int64_t kiCurrentFrameTs, EVid · 602 unmodified lines
603603 }
604604 pStatistics->fLatestFrameRate = m_pEncContext->pWelsSvcRc->fLatestFrameRate; //TODO: finish the calculation in RC
605605 pStatistics->uiBitRate = m_pEncContext->pWelsSvcRc->iActualBitRate; //TODO: finish the calculation in RC
606+ pStatistics->uiAverageFrameQP = m_pEncContext->pWelsSvcRc->iAverageFrameQp;
606607
607608 if (videoFrameTypeIDR == eFrameType || videoFrameTypeI == eFrameType) {
608609 pStatistics->uiIDRSentNum ++;
@@ -631,11 +632,11 @@ void CWelsH264SVCEncoder::UpdateStatistics (const int64_t kiCurrentFrameTs, EVid · 22 unmodified lines
631632
632633 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
633634 "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, \
635636 uiResolutionChangeTimes=%d, uIDRReqNum=%d, uIDRSentNum=%d, uLTRSentNum=NA",
636637 pStatistics->uiWidth, pStatistics->uiHeight,
637638 pStatistics->fAverageFrameSpeedInMs, pStatistics->fAverageFrameRate,
638− pStatistics->fLatestFrameRate, pStatistics->uiBitRate,
639+ pStatistics->fLatestFrameRate, pStatistics->uiBitRate, pStatistics->uiAverageFrameQP,
639640 pStatistics->uiInputFrameCount, pStatistics->uiSkippedFrameCount,
640641 pStatistics->uiResolutionChangeTimes, pStatistics->uiIDRReqNum, pStatistics->uiIDRSentNum);
641642 //TODO: the following statistics will be calculated and added later

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