History

put this file into good format

Sijia Chen committed 11 years ago

Commit 1b26bd41 parent 3c08f041 file · +5 −3Browse files

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

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+5−3
@@ -550,7 +550,8 @@ void CWelsH264SVCEncoder::TraceParamInfo (SEncParamExt* pParam) { · 549 unmodified lines
550 pParam->iLoopFilterDisableIdc550 pParam->iLoopFilterDisableIdc
551 );551 );
552 int32_t i = 0;552 int32_t i = 0;
553 int32_t iSpatialLayers = (pParam->iSpatialLayerNum < MAX_SPATIAL_LAYER_NUM)?(pParam->iSpatialLayerNum):MAX_SPATIAL_LAYER_NUM;553 int32_t iSpatialLayers = (pParam->iSpatialLayerNum < MAX_SPATIAL_LAYER_NUM) ? (pParam->iSpatialLayerNum) :
554 MAX_SPATIAL_LAYER_NUM;
554 while (i < iSpatialLayers) {555 while (i < iSpatialLayers) {
555 SSpatialLayerConfig* pSpatialCfg = &pParam->sSpatialLayers[i];556 SSpatialLayerConfig* pSpatialCfg = &pParam->sSpatialLayers[i];
556 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,557 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
@@ -1047,8 +1048,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 490 unmodified lines
1047 break;1048 break;
1048 case ENCODER_OPTION_BITS_VARY_PERCENTAGE: {1049 case ENCODER_OPTION_BITS_VARY_PERCENTAGE: {
1049 int32_t iValue = * (static_cast<int32_t*> (pOption));1050 int32_t iValue = * (static_cast<int32_t*> (pOption));
1050 m_pEncContext->pSvcParam->iBitsVaryPercentage = WELS_CLIP3(iValue,0,100);1051 m_pEncContext->pSvcParam->iBitsVaryPercentage = WELS_CLIP3 (iValue, 0, 100);
1051 WelsEncoderApplyBitVaryRang(&m_pWelsTrace->m_sLogCtx, m_pEncContext->pSvcParam, m_pEncContext->pSvcParam->iBitsVaryPercentage);1052 WelsEncoderApplyBitVaryRang (&m_pWelsTrace->m_sLogCtx, m_pEncContext->pSvcParam,
1053 m_pEncContext->pSvcParam->iBitsVaryPercentage);
1052 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,1054 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
1053 "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", iValue);1055 "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", iValue);
1054 }1056 }

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