History

refine RC

Karina committed 10 years ago

Commit 4fc2b1f1 parent 1d2b52e9 files · +4704 −4709Browse files

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

Unified · Split

codec/encoder/core/src/encoder.cpp+3−6
@@ -330,12 +330,11 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType, c · 329 unmodified lines
330330 #endif//FRAME_INFO_OUTPUT
331331 }
332332
333−EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum, const int32_t kiDidx) {
333+EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum, const int32_t kiDidx, bool bSkipFrameFlag) {
334334 SWelsSvcCodingParam* pSvcParam = pEncCtx->pSvcParam;
335335 SSpatialLayerInternal* pParamInternal = &pEncCtx->pSvcParam->sDependencyLayers[kiDidx];
336336 EVideoFrameType iFrameType = videoFrameTypeInvalid;
337337 bool bSceneChangeFlag = false;
338− int32_t iSkipFrameFlag = pSvcParam->bSimulcastAVC?pParamInternal->iSkipFrameFlag:pEncCtx->iSkipFrameFlag;
339338 if (pSvcParam->iUsageType == SCREEN_CONTENT_REAL_TIME) {
340339 if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||
341340 (kiSpatialNum < pSvcParam->iSpatialLayerNum)) {
@@ -365,8 +364,7 @@ EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum · 23 unmodified lines
365364 } else {
366365 iFrameType = videoFrameTypeP;
367366 }
368− if (videoFrameTypeP == iFrameType && iSkipFrameFlag > 0) {
369− pParamInternal->iSkipFrameFlag = 0;
367+ if (videoFrameTypeP == iFrameType && bSkipFrameFlag) {
370368 iFrameType = videoFrameTypeSkip;
371369 } else if (videoFrameTypeIDR == iFrameType) {
372370 pParamInternal->iCodingIndex = 0;
@@ -389,8 +387,7 @@ EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum · 16 unmodified lines
389387 iFrameType = (pEncCtx->pVaa->bIdrPeriodFlag || bSceneChangeFlag
390388 || pParamInternal->bEncCurFrmAsIdrFlag) ? videoFrameTypeIDR : videoFrameTypeP;
391389
392− if (videoFrameTypeP == iFrameType && iSkipFrameFlag > 0) { // for frame skip, 1/5/2010
393− pParamInternal->iSkipFrameFlag = 0;
390+ if (videoFrameTypeP == iFrameType && bSkipFrameFlag) { // for frame skip, 1/5/2010
394391 iFrameType = videoFrameTypeSkip;
395392 } else if (videoFrameTypeIDR == iFrameType) {
396393 pParamInternal->iCodingIndex = 0;

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