OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Returns true if the bitrate estimate hasn't been changed for more than | 33 // Returns true if the bitrate estimate hasn't been changed for more than |
34 // an RTT, or if the incoming_bitrate is more than 5% above the current | 34 // an RTT, or if the incoming_bitrate is more than 5% above the current |
35 // estimate. Should be used to decide if we should reduce the rate further | 35 // estimate. Should be used to decide if we should reduce the rate further |
36 // when over-using. | 36 // when over-using. |
37 virtual bool TimeToReduceFurther(int64_t time_now, | 37 virtual bool TimeToReduceFurther(int64_t time_now, |
38 uint32_t incoming_bitrate_bps) const = 0; | 38 uint32_t incoming_bitrate_bps) const = 0; |
39 virtual uint32_t LatestEstimate() const = 0; | 39 virtual uint32_t LatestEstimate() const = 0; |
40 virtual uint32_t UpdateBandwidthEstimate(int64_t now_ms) = 0; | 40 virtual uint32_t UpdateBandwidthEstimate(int64_t now_ms) = 0; |
41 virtual void SetRtt(int64_t rtt) = 0; | 41 virtual void SetRtt(int64_t rtt) = 0; |
42 virtual RateControlRegion Update(const RateControlInput* input, | 42 virtual void Update(const RateControlInput* input, int64_t now_ms) = 0; |
43 int64_t now_ms) = 0; | |
44 virtual void SetEstimate(int bitrate_bps, int64_t time_now_ms) = 0; | 43 virtual void SetEstimate(int bitrate_bps, int64_t time_now_ms) = 0; |
45 | 44 |
46 protected: | 45 protected: |
47 static const int64_t kMaxFeedbackIntervalMs; | 46 static const int64_t kMaxFeedbackIntervalMs; |
48 }; | 47 }; |
49 } // namespace webrtc | 48 } // namespace webrtc |
50 | 49 |
51 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_RATE_CONTROL_H_ | 50 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_REMOTE_RATE_CONTROL_H_ |
OLD | NEW |