Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all
Unified · Split
| @@ -3263,11 +3263,10 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3262 unmodified lines | |||
| 3263 | #ifdef LONG_TERM_REF_DUMP | 3263 | #ifdef LONG_TERM_REF_DUMP |
| 3264 | DumpRef (pCtx); | 3264 | DumpRef (pCtx); |
| 3265 | #endif | 3265 | #endif |
| 3266 | if ((pSvcParam->iUsageType == SCREEN_CONTENT_REAL_TIME) && (pSvcParam->iRCMode != RC_OFF_MODE)) | 3266 | if ((pSvcParam->iRCMode != RC_OFF_MODE)) |
| 3267 | pCtx->pVpp->AnalyzePictureComplexity (pCtx, pCtx->pEncPic, ((pCtx->eSliceType == P_SLICE) | 3267 | pCtx->pVpp->AnalyzePictureComplexity (pCtx, pCtx->pEncPic, ((pCtx->eSliceType == P_SLICE) |
| 3268 | && (pCtx->iNumRef0 > 0)) ? pCtx->pRefList0[0] : NULL, | 3268 | && (pCtx->iNumRef0 > 0)) ? pCtx->pRefList0[0] : NULL, |
| 3269 | iCurDid, pSvcParam->bEnableBackgroundDetection); | 3269 | iCurDid,(pCtx->eSliceType == P_SLICE)&&(pSvcParam->bEnableBackgroundDetection)); |
| 3270 | |||
| 3271 | WelsUpdateRefSyntax (pCtx, pCtx->iPOC, | 3270 | WelsUpdateRefSyntax (pCtx, pCtx->iPOC, |
| 3272 | eFrameType); //get reordering syntax used for writing slice header and transmit to encoder. | 3271 | eFrameType); //get reordering syntax used for writing slice header and transmit to encoder. |
| 3273 | PrefetchReferencePicture (pCtx, eFrameType); // update reference picture for current pDq layer | 3272 | PrefetchReferencePicture (pCtx, eFrameType); // update reference picture for current pDq layer |