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