Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -550,7 +550,8 @@ void CWelsH264SVCEncoder::TraceParamInfo (SEncParamExt* pParam) { · 549 unmodified lines | ||
| 550 | 550 | pParam->iLoopFilterDisableIdc |
| 551 | 551 | ); |
| 552 | 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 | 555 | while (i < iSpatialLayers) { |
| 555 | 556 | SSpatialLayerConfig* pSpatialCfg = &pParam->sSpatialLayers[i]; |
| 556 | 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 | 1048 | break; |
| 1048 | 1049 | case ENCODER_OPTION_BITS_VARY_PERCENTAGE: { |
| 1049 | 1050 | int32_t iValue = * (static_cast<int32_t*> (pOption)); |
| 1050 | − m_pEncContext->pSvcParam->iBitsVaryPercentage = WELS_CLIP3(iValue,0,100); | |
| 1051 | − WelsEncoderApplyBitVaryRang(&m_pWelsTrace->m_sLogCtx, m_pEncContext->pSvcParam, m_pEncContext->pSvcParam->iBitsVaryPercentage); | |
| 1051 | + m_pEncContext->pSvcParam->iBitsVaryPercentage = WELS_CLIP3 (iValue, 0, 100); | |
| 1052 | + WelsEncoderApplyBitVaryRang (&m_pWelsTrace->m_sLogCtx, m_pEncContext->pSvcParam, | |
| 1053 | + m_pEncContext->pSvcParam->iBitsVaryPercentage); | |
| 1052 | 1054 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, |
| 1053 | 1055 | "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", iValue); |
| 1054 | 1056 | } |