| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 void RemoveStream(unsigned int ssrc) override; | 76 void RemoveStream(unsigned int ssrc) override; |
| 77 | 77 |
| 78 bool LatestEstimate(std::vector<unsigned int>* ssrcs, | 78 bool LatestEstimate(std::vector<unsigned int>* ssrcs, |
| 79 unsigned int* bitrate_bps) const override; | 79 unsigned int* bitrate_bps) const override; |
| 80 | 80 |
| 81 void SetMinBitrate(int min_bitrate_bps) override; | 81 void SetMinBitrate(int min_bitrate_bps) override; |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 void PickEstimatorFromHeader(const RTPHeader& header) | 84 void PickEstimatorFromHeader(const RTPHeader& header) |
| 85 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); | 85 RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
| 86 void PickEstimator() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); | 86 void PickEstimator() RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
| 87 RemoteBitrateObserver* observer_; | 87 RemoteBitrateObserver* observer_; |
| 88 const Clock* const clock_; | 88 const Clock* const clock_; |
| 89 rtc::CriticalSection crit_sect_; | 89 rtc::CriticalSection crit_sect_; |
| 90 std::unique_ptr<RemoteBitrateEstimator> rbe_; | 90 std::unique_ptr<RemoteBitrateEstimator> rbe_; |
| 91 bool using_absolute_send_time_; | 91 bool using_absolute_send_time_; |
| 92 uint32_t packets_since_absolute_send_time_; | 92 uint32_t packets_since_absolute_send_time_; |
| 93 int min_bitrate_bps_; | 93 int min_bitrate_bps_; |
| 94 | 94 |
| 95 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WrappingBitrateEstimator); | 95 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(WrappingBitrateEstimator); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 WrappingBitrateEstimator remote_bitrate_estimator_; | 98 WrappingBitrateEstimator remote_bitrate_estimator_; |
| 99 RemoteEstimatorProxy remote_estimator_proxy_; | 99 RemoteEstimatorProxy remote_estimator_proxy_; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace webrtc | 102 } // namespace webrtc |
| 103 | 103 |
| 104 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_RECEIVE_SIDE_CONGESTION_
CONTROLLER_H_ | 104 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_INCLUDE_RECEIVE_SIDE_CONGESTION_
CONTROLLER_H_ |
| OLD | NEW |