Merge pull request #1102 from ruil2/rc_fix_1
add skip frame processing for screen content
This commit is contained in:
commit
c228c51423
@ -325,10 +325,14 @@ EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum
|
||||
} else {
|
||||
iFrameType = videoFrameTypeP;
|
||||
}
|
||||
if (videoFrameTypeIDR == iFrameType) {
|
||||
if (videoFrameTypeP == iFrameType && pEncCtx->iSkipFrameFlag > 0) {
|
||||
-- pEncCtx->iSkipFrameFlag;
|
||||
iFrameType = videoFrameTypeSkip;
|
||||
} else if (videoFrameTypeIDR == iFrameType) {
|
||||
pEncCtx->iCodingIndex = 0;
|
||||
pEncCtx->bCurFrameMarkedAsSceneLtr = true;
|
||||
}
|
||||
|
||||
} else {
|
||||
// perform scene change detection
|
||||
if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||
|
||||
|
Loading…
Reference in New Issue
Block a user