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
325325 } else {
326326 iFrameType = videoFrameTypeP;
327327 }
328− if (videoFrameTypeIDR == iFrameType) {
328+ if (videoFrameTypeP == iFrameType && pEncCtx->iSkipFrameFlag > 0) {
329+ -- pEncCtx->iSkipFrameFlag;
330+ iFrameType = videoFrameTypeSkip;
331+ } else if (videoFrameTypeIDR == iFrameType) {
329332 pEncCtx->iCodingIndex = 0;
330333 pEncCtx->bCurFrameMarkedAsSceneLtr = true;
331334 }
335+
332336 } else {
333337 // perform scene change detection
334338 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