add iBitsVaryPercentage parameters to control bitrate
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1097,6 +1097,14 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 1096 unmodified lines | ||
| 1097 | 1097 | "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_IS_LOSSLESS_LINK,bIsLosslessLink = %d", bValue); |
| 1098 | 1098 | } |
| 1099 | 1099 | break; |
| 1100 | + case ENCODER_OPTION_BITS_VARY_PERCENTAGE: { | |
| 1101 | + int32_t iValue = * (static_cast<int32_t*> (pOption)); | |
| 1102 | + m_pEncContext->pSvcParam->iBitsVaryPercentage = iValue; | |
| 1103 | + WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, | |
| 1104 | + "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_BITS_VARY_PERCENTAGE,iBitsVaryPercentage = %d", iValue); | |
| 1105 | + } | |
| 1106 | + break; | |
| 1107 | + | |
| 1100 | 1108 | default: |
| 1101 | 1109 | return cmInitParaError; |
| 1102 | 1110 | } |