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 int max_bitrate_bps) override; | 54 int max_bitrate_bps) override; |
55 | 55 |
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 OnDelayBasedBweResult(const DelayBasedBwe::Result& result) override; | 64 // RemoteBitrateObserver overrides. |
| 65 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
| 66 uint32_t bitrate_bps) override; |
| 67 void OnProbeBitrate(uint32_t bitrate_bps) override; |
65 | 68 |
66 int64_t TimeUntilNextProcess() override; | 69 int64_t TimeUntilNextProcess() override; |
67 void Process() override; | 70 void Process() override; |
68 | 71 |
69 private: | 72 private: |
70 class RtcpBandwidthObserverImpl; | 73 class RtcpBandwidthObserverImpl; |
71 | 74 |
72 // Called by BitrateObserver's direct from the RTCP module. | 75 // Called by BitrateObserver's direct from the RTCP module. |
73 void OnReceiverEstimatedBitrate(uint32_t bitrate); | 76 void OnReceiverEstimatedBitrate(uint32_t bitrate); |
74 | 77 |
(...skipping 21 matching lines...) Expand all Loading... |
96 | 99 |
97 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); | 100 uint32_t last_bitrate_bps_ GUARDED_BY(critsect_); |
98 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); | 101 uint8_t last_fraction_loss_ GUARDED_BY(critsect_); |
99 int64_t last_rtt_ms_ GUARDED_BY(critsect_); | 102 int64_t last_rtt_ms_ GUARDED_BY(critsect_); |
100 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); | 103 uint32_t last_reserved_bitrate_bps_ GUARDED_BY(critsect_); |
101 | 104 |
102 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); | 105 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(BitrateControllerImpl); |
103 }; | 106 }; |
104 } // namespace webrtc | 107 } // namespace webrtc |
105 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ | 108 #endif // WEBRTC_MODULES_BITRATE_CONTROLLER_BITRATE_CONTROLLER_IMPL_H_ |
OLD | NEW |