Allow Vp8FrameBufferController to override resilience mode
Bug: webrtc:10382 Change-Id: I626d616d7a1b50a696f5378345d026f6dce5b97f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/134207 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Elad Alon <eladalon@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27777}
This commit is contained in:
parent
ff727a8abb
commit
544dece6c1
@ -71,6 +71,9 @@ struct Vp8EncoderConfig {
|
||||
// Clamp QP to min/max. Use 0 to disable clamping.
|
||||
uint32_t rc_min_quantizer;
|
||||
uint32_t rc_max_quantizer;
|
||||
|
||||
// If has_value(), override error resilience to value().
|
||||
absl::optional<uint32_t> error_resilient;
|
||||
};
|
||||
|
||||
// This interface defines a way of delegating the logic of buffer management.
|
||||
|
||||
@ -183,6 +183,9 @@ static void FillInEncoderConfig(vpx_codec_enc_cfg* vpx_config,
|
||||
vpx_config->rc_target_bitrate = config.rc_target_bitrate;
|
||||
vpx_config->rc_min_quantizer = config.rc_min_quantizer;
|
||||
vpx_config->rc_max_quantizer = config.rc_max_quantizer;
|
||||
if (config.error_resilient.has_value()) {
|
||||
vpx_config->g_error_resilient = config.error_resilient.value();
|
||||
}
|
||||
}
|
||||
|
||||
bool UpdateVpxConfiguration(size_t stream_index,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user