OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; | 42 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; |
43 | 43 |
44 void SetBitrateEstimator(RemoteBitrateEstimator* rbe); | 44 void SetBitrateEstimator(RemoteBitrateEstimator* rbe); |
45 | 45 |
46 RemoteBitrateEstimator* GetBitrateEstimator() const { | 46 RemoteBitrateEstimator* GetBitrateEstimator() const { |
47 return bitrate_estimator_.get(); | 47 return bitrate_estimator_.get(); |
48 } | 48 } |
49 | 49 |
50 private: | 50 private: |
51 void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, | 51 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
52 unsigned int bitrate) override; | 52 uint32_t bitrate) override; |
53 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 53 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
54 | 54 |
55 rtc::CriticalSection lock_; | 55 rtc::CriticalSection lock_; |
56 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); | 56 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); |
57 BitrateController* bitrate_controller_; | 57 BitrateController* bitrate_controller_; |
58 rtc::scoped_ptr<RemoteBitrateEstimator> bitrate_estimator_; | 58 rtc::scoped_ptr<RemoteBitrateEstimator> bitrate_estimator_; |
59 ProcessThread* const process_thread_; | 59 ProcessThread* const process_thread_; |
60 Clock* const clock_; | 60 Clock* const clock_; |
61 int64_t current_offset_ms_; | 61 int64_t current_offset_ms_; |
62 int64_t last_timestamp_us_; | 62 int64_t last_timestamp_us_; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace webrtc | 65 } // namespace webrtc |
66 | 66 |
67 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_ | 67 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_ |
OLD | NEW |