History

use iBitsVaryPercentage passed by the app instead of the macro

ruil2 committed 11 years ago

Commit 30820fd1 parent 7c0369d2 files · +4 −4Browse files

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

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+3−3
@@ -1074,10 +1074,10 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 1073 unmodified lines
1074 }1074 }
1075 break;1075 break;
1076 case ENCODER_OPTION_BITS_VARY_PERCENTAGE: {1076 case ENCODER_OPTION_BITS_VARY_PERCENTAGE: {
1077 bool bValue = * (static_cast<bool*> (pOption));1077 int32_t iValue = * (static_cast<int32_t*> (pOption));
1078 m_pEncContext->pSvcParam->iBitsVaryPercentage = bValue;1078 m_pEncContext->pSvcParam->iBitsVaryPercentage = iValue;
1079 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,1079 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
1080 "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", bValue);1080 "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", iValue);
1081 }1081 }
1082 break;1082 break;
1083 1083

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