History

add skip frame processing for screen content

ruil2 committed 12 years ago

Commit d98cefe1 parent c1a24d51 file · +5 −1Browse files

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

Unified · Split

codec/encoder/core/src/encoder.cpp+5−1
@@ -325,10 +325,14 @@ EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum · 324 unmodified lines
325 } else {325 } else {
326 iFrameType = videoFrameTypeP;326 iFrameType = videoFrameTypeP;
327 }327 }
328 if (videoFrameTypeIDR == iFrameType) {328 if (videoFrameTypeP == iFrameType && pEncCtx->iSkipFrameFlag > 0) {
329 -- pEncCtx->iSkipFrameFlag;
330 iFrameType = videoFrameTypeSkip;
331 } else if (videoFrameTypeIDR == iFrameType) {
329 pEncCtx->iCodingIndex = 0;332 pEncCtx->iCodingIndex = 0;
330 pEncCtx->bCurFrameMarkedAsSceneLtr = true;333 pEncCtx->bCurFrameMarkedAsSceneLtr = true;
331 }334 }
335
332 } else {336 } else {
333 // perform scene change detection337 // perform scene change detection
334 if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||338 if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||

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