Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all
Unified · Split
| @@ -3002,6 +3002,10 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3001 unmodified lines | ||
| 3002 | 3002 | #ifdef LONG_TERM_REF_DUMP |
| 3003 | 3003 | dump_ref (pCtx); |
| 3004 | 3004 | #endif |
| 3005 | + if((pSvcParam->iUsageType == SCREEN_CONTENT_REAL_TIME)&&(pSvcParam->iRCMode != RC_OFF_MODE)) | |
| 3006 | + pCtx->pVpp->AnalyzePictureComplexity(pCtx,pCtx->pEncPic,((pCtx->eSliceType == P_SLICE)&&(pCtx->iNumRef0>0))?pCtx->pRefList0[0]:NULL, | |
| 3007 | + iCurDid,pSvcParam->bEnableBackgroundDetection); | |
| 3008 | + | |
| 3005 | 3009 | WelsUpdateRefSyntax (pCtx, pCtx->iPOC, |
| 3006 | 3010 | eFrameType); //get reordering syntax used for writing slice header and transmit to encoder. |
| 3007 | 3011 | PrefetchReferencePicture (pCtx, eFrameType); // update reference picture for current pDq layer |