History

fix RC log numbers

sijchen@cisco.com committed 8 years ago

Commit 987609a1 parent c6f078d4 files · +10 −8Browse files

Showing the changes to codec/encoder/core/src/ratectl.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/core/src/ratectl.cpp+4−3
@@ -1004,7 +1004,7 @@ void RcVBufferCalculationPadding (sWelsEncCtx* pEncCtx) { · 1003 unmodified lines
10041004 }
10051005
10061006
1007−void RcTraceFrameBits (sWelsEncCtx* pEncCtx, long long uiTimeStamp) {
1007+void RcTraceFrameBits (sWelsEncCtx* pEncCtx, long long uiTimeStamp, int32_t iFrameSize) {
10081008 SWelsSvcRc* pWelsSvcRc = &pEncCtx->pWelsSvcRc[pEncCtx->uiDependencyId];
10091009 SSpatialLayerInternal* pParamInternal = &pEncCtx->pSvcParam->sDependencyLayers[pEncCtx->uiDependencyId];
10101010 if (pWelsSvcRc->iPredFrameBit != 0)
@@ -1019,7 +1019,8 @@ void RcTraceFrameBits (sWelsEncCtx* pEncCtx, long long uiTimeStamp) { · 8 unmodified lines
10191019 pEncCtx->uiDependencyId, uiTimeStamp, pEncCtx->eSliceType, pEncCtx->iGlobalQp, pWelsSvcRc->iAverageFrameQp,
10201020 pWelsSvcRc->iMaxFrameQp,
10211021 pWelsSvcRc->iMinFrameQp,
1022− pParamInternal->iFrameIndex, pEncCtx->uiTemporalId, pWelsSvcRc->iFrameDqBits, pWelsSvcRc->iBitsPerFrame,
1022+ pParamInternal->iFrameIndex, pEncCtx->uiTemporalId, pWelsSvcRc->iFrameDqBits,
1023+ ( pWelsSvcRc->iBitsPerFrame>0 ) ? pWelsSvcRc->iBitsPerFrame : (iFrameSize<<3),
10231024 pWelsSvcRc->iTargetBits, pWelsSvcRc->iRemainingBits, pWelsSvcRc->iBufferSizeSkip);
10241025
10251026 }
@@ -1298,7 +1299,7 @@ void WelRcPictureInitBufferBasedQp (sWelsEncCtx* pEncCtx, long long uiTimeStamp) · 272 unmodified lines
12981299 else
12991300 pEncCtx->iGlobalQp += 2;
13001301 pEncCtx->iGlobalQp = WELS_CLIP3 (pEncCtx->iGlobalQp, iMinQp, pWelsSvcRc->iMaxQp);
1301− pWelsSvcRc->iAverageFrameQp = pEncCtx->iGlobalQp;
1302+ pWelsSvcRc->iAverageFrameQp = pWelsSvcRc->iMaxFrameQp = pWelsSvcRc->iMinFrameQp = pEncCtx->iGlobalQp;
13021303 }
13031304 void WelRcPictureInitScc (sWelsEncCtx* pEncCtx, long long uiTimeStamp) {
13041305 SWelsSvcRc* pWelsSvcRc = &pEncCtx->pWelsSvcRc[pEncCtx->uiDependencyId];

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