History

add rc function

ruil2 committed 11 years ago

Commit 5b5cc841 parent 993caea5 files · +228 −96Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+4−4
@@ -3150,7 +3150,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3149 unmodified lines
31503150 pFbi->uiTimeStamp = pSrcPic->uiTimeStamp;
31513151 // perform csc/denoise/downsample/padding, generate spatial layers
31523152 iSpatialNum = pCtx->pVpp->BuildSpatialPicList (pCtx, pSrcPic);
3153−
31543153 if (pCtx->pFuncList->pfRc.pfWelsUpdateMaxBrWindowStatus) {
31553154 pCtx->pFuncList->pfRc.pfWelsUpdateMaxBrWindowStatus (pCtx, iSpatialNum, pSrcPic->uiTimeStamp);
31563155 }
@@ -3319,15 +3318,16 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 162 unmodified lines
33193318 #ifdef LONG_TERM_REF_DUMP
33203319 DumpRef (pCtx);
33213320 #endif
3322− if ((pSvcParam->iRCMode != RC_OFF_MODE))
3321+
3322+ if (pSvcParam->iRCMode != RC_OFF_MODE)
33233323 pCtx->pVpp->AnalyzePictureComplexity (pCtx, pCtx->pEncPic, ((pCtx->eSliceType == P_SLICE)
33243324 && (pCtx->iNumRef0 > 0)) ? pCtx->pRefList0[0] : NULL,
3325− iCurDid, (pCtx->eSliceType == P_SLICE) && (pSvcParam->bEnableBackgroundDetection));
3325+ iCurDid, (pCtx->eSliceType == P_SLICE) && pSvcParam->bEnableBackgroundDetection);
33263326 WelsUpdateRefSyntax (pCtx, pCtx->iPOC,
33273327 eFrameType); //get reordering syntax used for writing slice header and transmit to encoder.
33283328 PrefetchReferencePicture (pCtx, eFrameType); // update reference picture for current pDq layer
33293329
3330− pCtx->pFuncList->pfRc.pfWelsRcPictureInit (pCtx);
3330+ pCtx->pFuncList->pfRc.pfWelsRcPictureInit (pCtx, pSrcPic->uiTimeStamp);
33313331 PreprocessSliceCoding (pCtx); // MUST be called after pfWelsRcPictureInit() and WelsInitCurrentLayer()
33323332
33333333 //TODO Complexity Calculation here for screen content

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