OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 16 matching lines...) Expand all Loading... |
27 // Implements RemoteRateControl. | 27 // Implements RemoteRateControl. |
28 RateControlType GetControlType() const override; | 28 RateControlType GetControlType() const override; |
29 uint32_t GetMinBitrate() const override; | 29 uint32_t GetMinBitrate() const override; |
30 bool ValidEstimate() const override; | 30 bool ValidEstimate() const override; |
31 int64_t GetFeedbackInterval() const override; | 31 int64_t GetFeedbackInterval() const override; |
32 bool TimeToReduceFurther(int64_t time_now, | 32 bool TimeToReduceFurther(int64_t time_now, |
33 uint32_t incoming_bitrate_bps) const override; | 33 uint32_t incoming_bitrate_bps) const override; |
34 uint32_t LatestEstimate() const override; | 34 uint32_t LatestEstimate() const override; |
35 uint32_t UpdateBandwidthEstimate(int64_t now_ms) override; | 35 uint32_t UpdateBandwidthEstimate(int64_t now_ms) override; |
36 void SetRtt(int64_t rtt) override; | 36 void SetRtt(int64_t rtt) override; |
37 RateControlRegion Update(const RateControlInput* input, | 37 void Update(const RateControlInput* input, int64_t now_ms) override; |
38 int64_t now_ms) override; | |
39 void SetEstimate(int bitrate_bps, int64_t now_ms) override; | 38 void SetEstimate(int bitrate_bps, int64_t now_ms) override; |
40 | 39 |
41 private: | 40 private: |
42 uint32_t ChangeBitRate(uint32_t current_bit_rate, | 41 uint32_t ChangeBitRate(uint32_t current_bit_rate, |
43 uint32_t incoming_bit_rate, | 42 uint32_t incoming_bit_rate, |
44 double delay_factor, | 43 double delay_factor, |
45 int64_t now_ms); | 44 int64_t now_ms); |
46 double RateIncreaseFactor(int64_t now_ms, | 45 double RateIncreaseFactor(int64_t now_ms, |
47 int64_t last_ms, | 46 int64_t last_ms, |
48 int64_t reaction_time_ms, | 47 int64_t reaction_time_ms, |
(...skipping 22 matching lines...) Expand all Loading... |
71 int64_t last_change_ms_; | 70 int64_t last_change_ms_; |
72 float beta_; | 71 float beta_; |
73 int64_t rtt_; | 72 int64_t rtt_; |
74 int64_t time_of_last_log_; | 73 int64_t time_of_last_log_; |
75 | 74 |
76 DISALLOW_IMPLICIT_CONSTRUCTORS(MimdRateControl); | 75 DISALLOW_IMPLICIT_CONSTRUCTORS(MimdRateControl); |
77 }; | 76 }; |
78 } // namespace webrtc | 77 } // namespace webrtc |
79 | 78 |
80 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_MIMD_RATE_CONTROL_H_ | 79 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_MIMD_RATE_CONTROL_H_ |
OLD | NEW |