History

modify delivery status interface

ruil2 committed 12 years ago

Commit 2f041c71 parent 43dc6f04 files · +127 −125Browse 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+5−3
@@ -709,7 +709,7 @@ void RcVBufferCalculationSkip (sWelsEncCtx* pEncCtx) { · 708 unmodified lines
709709 || (dIncPercent > pWelsSvcRc->iRcVaryPercentage)) {
710710 pEncCtx->iSkipFrameFlag = 1;
711711 pWelsSvcRc->iBufferFullnessSkip = pWelsSvcRc->iBufferFullnessSkip - kiOutputBits;
712− WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_INFO,"skip one frame");
712+ WelsLog (& (pEncCtx->sLogCtx), WELS_LOG_INFO, "skip one frame");
713713 }
714714
715715 if (pWelsSvcRc->iBufferFullnessSkip < 0)
@@ -1005,8 +1005,10 @@ void WelRcPictureInitBufferBasedQp (void* pCtx) { · 289 unmodified lines
10051005 iMinQp = MIN_SCREEN_QP + 1;
10061006 else
10071007 iMinQp = MIN_SCREEN_QP;
1008−
1009− pEncCtx->iGlobalQp += pEncCtx->iDropNumber;
1008+ if (pEncCtx->bDeliveryFlag)
1009+ pEncCtx->iGlobalQp -= 1;
1010+ else
1011+ pEncCtx->iGlobalQp += 2;
10101012 pEncCtx->iGlobalQp = WELS_CLIP3 (pEncCtx->iGlobalQp, iMinQp, MAX_SCREEN_QP);
10111013 }
10121014 void WelsRcInitModule (void* pCtx, RC_MODES iRcMode) {

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