History

using default value for LTR.

ruil2 committed 12 years ago

Commit c6a136c1 parent 1a394d12 files · +3 −3Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+2−2
@@ -3834,7 +3834,7 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 3833 unmodified lines
3834 int32_t uiGopSize = 1 << (sConfig.iTemporalLayerNum - 1);3834 int32_t uiGopSize = 1 << (sConfig.iTemporalLayerNum - 1);
3835 if (sConfig.iUsageType == SCREEN_CONTENT_REAL_TIME) {3835 if (sConfig.iUsageType == SCREEN_CONTENT_REAL_TIME) {
3836 if (sConfig.bEnableLongTermReference) {3836 if (sConfig.bEnableLongTermReference) {
3837 sConfig.iLTRRefNum = WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM_SCREEN);3837 sConfig.iLTRRefNum = LONG_TERM_REF_NUM_SCREEN;//WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM_SCREEN);
3838 iNumRefFrame = WELS_MAX (1, WELS_LOG2 (uiGopSize)) + sConfig.iLTRRefNum;3838 iNumRefFrame = WELS_MAX (1, WELS_LOG2 (uiGopSize)) + sConfig.iLTRRefNum;
3839 } else {3839 } else {
3840 sConfig.iLTRRefNum = 0;3840 sConfig.iLTRRefNum = 0;
@@ -3842,7 +3842,7 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 1 unmodified line
3842 }3842 }
3843 } else {3843 } else {
3844 if (sConfig.bEnableLongTermReference) {3844 if (sConfig.bEnableLongTermReference) {
3845 sConfig.iLTRRefNum = WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM);3845 sConfig.iLTRRefNum = LONG_TERM_REF_NUM;//WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM);
3846 } else {3846 } else {
3847 sConfig.iLTRRefNum = 0;3847 sConfig.iLTRRefNum = 0;
3848 }3848 }

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