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 22 matching lines...) Expand all Loading... |
33 virtual ~TransportFeedbackAdapter(); | 33 virtual ~TransportFeedbackAdapter(); |
34 | 34 |
35 void SetBitrateEstimator(RemoteBitrateEstimator* rbe); | 35 void SetBitrateEstimator(RemoteBitrateEstimator* rbe); |
36 RemoteBitrateEstimator* GetBitrateEstimator() const { | 36 RemoteBitrateEstimator* GetBitrateEstimator() const { |
37 return bitrate_estimator_.get(); | 37 return bitrate_estimator_.get(); |
38 } | 38 } |
39 | 39 |
40 // Implements TransportFeedbackObserver. | 40 // Implements TransportFeedbackObserver. |
41 void AddPacket(uint16_t sequence_number, | 41 void AddPacket(uint16_t sequence_number, |
42 size_t length, | 42 size_t length, |
43 bool was_paced, | |
44 int probe_cluster_id) override; | 43 int probe_cluster_id) override; |
45 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); | 44 void OnSentPacket(uint16_t sequence_number, int64_t send_time_ms); |
46 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; | 45 void OnTransportFeedback(const rtcp::TransportFeedback& feedback) override; |
47 | 46 |
48 // Implements CallStatsObserver. | 47 // Implements CallStatsObserver. |
49 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 48 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
50 | 49 |
51 private: | 50 private: |
52 // Implements RemoteBitrateObserver. | 51 // Implements RemoteBitrateObserver. |
53 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 52 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
54 uint32_t bitrate) override; | 53 uint32_t bitrate) override; |
55 | 54 |
56 rtc::CriticalSection lock_; | 55 rtc::CriticalSection lock_; |
57 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); | 56 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); |
58 BitrateController* bitrate_controller_; | 57 BitrateController* bitrate_controller_; |
59 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_; | 58 std::unique_ptr<RemoteBitrateEstimator> bitrate_estimator_; |
60 Clock* const clock_; | 59 Clock* const clock_; |
61 int64_t current_offset_ms_; | 60 int64_t current_offset_ms_; |
62 int64_t last_timestamp_us_; | 61 int64_t last_timestamp_us_; |
63 }; | 62 }; |
64 | 63 |
65 } // namespace webrtc | 64 } // namespace webrtc |
66 | 65 |
67 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_ | 66 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TRANSPORT_FEEDBACK_ADAPTER_H_ |
OLD | NEW |