I'm not entirely sure about the default value for RateControlMode. I made a runtime check of the value of params.iRCMode after raw_api.get_default_params(&mut params).ok()?; in Encoder::with_config and it was 0. This corresponds to RateControlMode::Quality, so this is the value I used in the implementation of Default for RateControlMode.
After merging this, I would be grateful if you would publish a new release. Thanks again!
This adds
add EncoderConfig::rate_control_mode
.I'm not entirely sure about the default value for
RateControlMode
. I made a runtime check of the value ofparams.iRCMode
afterraw_api.get_default_params(&mut params).ok()?;
inEncoder::with_config
and it was 0. This corresponds toRateControlMode::Quality
, so this is the value I used in the implementation ofDefault
forRateControlMode
.After merging this, I would be grateful if you would publish a new release. Thanks again!