OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 }; | 45 }; |
46 | 46 |
47 explicit DelayBasedBwe(Clock* clock); | 47 explicit DelayBasedBwe(Clock* clock); |
48 virtual ~DelayBasedBwe() {} | 48 virtual ~DelayBasedBwe() {} |
49 | 49 |
50 Result IncomingPacketFeedbackVector( | 50 Result IncomingPacketFeedbackVector( |
51 const std::vector<PacketInfo>& packet_feedback_vector); | 51 const std::vector<PacketInfo>& packet_feedback_vector); |
52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms); | 52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms); |
53 bool LatestEstimate(std::vector<uint32_t>* ssrcs, | 53 bool LatestEstimate(std::vector<uint32_t>* ssrcs, |
54 uint32_t* bitrate_bps) const; | 54 uint32_t* bitrate_bps) const; |
| 55 void SetStartBitrate(int start_bitrate_bps); |
55 void SetMinBitrate(int min_bitrate_bps); | 56 void SetMinBitrate(int min_bitrate_bps); |
56 int64_t GetProbingIntervalMs() const; | 57 int64_t GetProbingIntervalMs() const; |
57 | 58 |
58 private: | 59 private: |
59 // Computes a bayesian estimate of the throughput given acks containing | 60 // Computes a bayesian estimate of the throughput given acks containing |
60 // the arrival time and payload size. Samples which are far from the current | 61 // the arrival time and payload size. Samples which are far from the current |
61 // estimate or are based on few packets are given a smaller weight, as they | 62 // estimate or are based on few packets are given a smaller weight, as they |
62 // are considered to be more likely to have been caused by, e.g., delay spikes | 63 // are considered to be more likely to have been caused by, e.g., delay spikes |
63 // unrelated to congestion. | 64 // unrelated to congestion. |
64 class BitrateEstimator { | 65 class BitrateEstimator { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 ProbingIntervalEstimator probing_interval_estimator_; | 108 ProbingIntervalEstimator probing_interval_estimator_; |
108 size_t median_slope_window_size_; | 109 size_t median_slope_window_size_; |
109 double median_slope_threshold_gain_; | 110 double median_slope_threshold_gain_; |
110 | 111 |
111 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(DelayBasedBwe); | 112 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(DelayBasedBwe); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace webrtc | 115 } // namespace webrtc |
115 | 116 |
116 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_H_ | 117 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_H_ |
OLD | NEW |