| Index: webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h
|
| diff --git a/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h b/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h
|
| index 84ee882982bdd465ede7b9a3923cea8f6969e984..27df7e5a0837e9fa3d3d3c860cb0a586d779df6e 100644
|
| --- a/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h
|
| +++ b/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.h
|
| @@ -60,22 +60,22 @@ class SendSideBandwidthEstimation {
|
|
|
| void UpdateUmaStats(int64_t now_ms, int64_t rtt, int lost_packets);
|
|
|
| - // Returns the input bitrate capped to the thresholds defined by the max,
|
| - // min and incoming bandwidth.
|
| - uint32_t CapBitrateToThresholds(int64_t now_ms, uint32_t bitrate);
|
| -
|
| // Updates history of min bitrates.
|
| // After this method returns min_bitrate_history_.front().second contains the
|
| // min bitrate used during last kBweIncreaseIntervalMs.
|
| void UpdateMinHistory(int64_t now_ms);
|
|
|
| + // Cap |bitrate_bps| to [min_bitrate_configured_, max_bitrate_configured_] and
|
| + // set |current_bitrate_bps_| to the capped value and updates the event log.
|
| + void CapBitrateToThresholds(int64_t now_ms, uint32_t bitrate_bps);
|
| +
|
| std::deque<std::pair<int64_t, uint32_t> > min_bitrate_history_;
|
|
|
| // incoming filters
|
| int lost_packets_since_last_loss_update_Q8_;
|
| int expected_packets_since_last_loss_update_;
|
|
|
| - uint32_t bitrate_;
|
| + uint32_t current_bitrate_bps_;
|
| uint32_t min_bitrate_configured_;
|
| uint32_t max_bitrate_configured_;
|
| int64_t last_low_bitrate_log_ms_;
|
|
|