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 * Usage: this class will register multiple RtcpBitrateObserver's one at each | 10 * Usage: this class will register multiple RtcpBitrateObserver's one at each |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 void UpdateDelayBasedEstimate(uint32_t bitrate_bps) override; | 55 void UpdateDelayBasedEstimate(uint32_t bitrate_bps) override; |
56 | 56 |
57 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override; | 57 void SetReservedBitrate(uint32_t reserved_bitrate_bps) override; |
58 | 58 |
59 // Returns true if the parameters have changed since the last call. | 59 // Returns true if the parameters have changed since the last call. |
60 bool GetNetworkParameters(uint32_t* bitrate, | 60 bool GetNetworkParameters(uint32_t* bitrate, |
61 uint8_t* fraction_loss, | 61 uint8_t* fraction_loss, |
62 int64_t* rtt) override; | 62 int64_t* rtt) override; |
63 | 63 |
| 64 void UpdateProbeBitrate(uint32_t bitrate_bps) override; |
| 65 |
64 int64_t TimeUntilNextProcess() override; | 66 int64_t TimeUntilNextProcess() override; |
65 void Process() override; | 67 void Process() override; |
66 | 68 |
67 private: | 69 private: |
68 class RtcpBandwidthObserverImpl; | 70 class RtcpBandwidthObserverImpl; |
69 | 71 |
70 // Called by BitrateObserver's direct from the RTCP module. | 72 // Called by BitrateObserver's direct from the RTCP module. |
71 void OnReceivedEstimatedBitrate(uint32_t bitrate); | 73 void OnReceivedEstimatedBitrate(uint32_t bitrate); |
72 | 74 |
73 void OnReceivedRtcpReceiverReport(uint8_t fraction_loss, | 75 void OnReceivedRtcpReceiverReport(uint8_t fraction_loss, |
(...skipping 20 matching lines...) Expand all Loading... |
94 | 96 |
95 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); | 97 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); |
96 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); | 98 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); |
97 int64_t last_rtt_ms_ GUARDED_BY(critsect_); | 99 int64_t last_rtt_ms_ GUARDED_BY(critsect_); |
98 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); | 100 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); |
99 | 101 |
100 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); | 102 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); |
101 }; | 103 }; |
102 } // namespace webrtc | 104 } // namespace webrtc |
103 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ | 105 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ |
OLD | NEW |