Apply bitrate boosting depending on field-trial.

This field-trial allows us to provide multipliers for the opus target
bitrate.

Bug: webrtc:11055
Change-Id: I79c4c6389c6908daadda355e5ce0668413d0aaa1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/158530
Commit-Queue: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29634}
This commit is contained in:
Ivo Creusen
2019-10-28 15:36:04 +01:00
committed by Commit Bot
parent 6f5b9e01bc
commit 79e653c46d
2 changed files with 49 additions and 1 deletions

View File

@ -179,6 +179,10 @@ class AudioEncoderOpusImpl final : public AudioEncoder {
const bool use_stable_target_for_adaptation_;
const bool adjust_bandwidth_;
bool bitrate_changed_;
// A multiplier for bitrates at 5 kbps and higher. The target bitrate
// will be multiplied by these multipliers, each multiplier is applied to a
// 1 kbps range.
std::vector<float> bitrate_multipliers_;
float packet_loss_rate_;
const float min_packet_loss_rate_;
const std::unique_ptr<NewPacketLossRateOptimizer> new_packet_loss_optimizer_;