History

update maxbitrate to control bitrate vary range

ruil2 committed 11 years ago

Commit 5ba9e401 parent 065c3a73 files · +17 −1Browse files

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

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+2−1
@@ -1044,7 +1044,8 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 1043 unmodified lines
10441044 break;
10451045 case ENCODER_OPTION_BITS_VARY_PERCENTAGE: {
10461046 int32_t iValue = * (static_cast<int32_t*> (pOption));
1047− m_pEncContext->pSvcParam->iBitsVaryPercentage = iValue;
1047+ m_pEncContext->pSvcParam->iBitsVaryPercentage = WELS_CLIP3(iValue,0,100);
1048+ WelsEncoderApplyBitVaryRang(&m_pWelsTrace->m_sLogCtx, m_pEncContext->pSvcParam, m_pEncContext->pSvcParam->iBitsVaryPercentage);
10481049 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
10491050 "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", iValue);
10501051 }

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