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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // Implements CallStatsObserver. | 51 // Implements CallStatsObserver. |
52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; | 52 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; |
53 | 53 |
54 void SetStartBitrate(int start_bitrate_bps); | 54 void SetStartBitrate(int start_bitrate_bps); |
55 void SetMinBitrate(int min_bitrate_bps); | 55 void SetMinBitrate(int min_bitrate_bps); |
56 void SetTransportOverhead(int transport_overhead_bytes_per_packet); | 56 void SetTransportOverhead(int transport_overhead_bytes_per_packet); |
57 | 57 |
58 int64_t GetProbingIntervalMs() const; | 58 int64_t GetProbingIntervalMs() const; |
59 | 59 |
| 60 void ClearSendTimeHistory(); |
| 61 |
60 private: | 62 private: |
61 std::vector<PacketFeedback> GetPacketFeedbackVector( | 63 std::vector<PacketFeedback> GetPacketFeedbackVector( |
62 const rtcp::TransportFeedback& feedback); | 64 const rtcp::TransportFeedback& feedback); |
63 | 65 |
64 const bool send_side_bwe_with_overhead_; | 66 const bool send_side_bwe_with_overhead_; |
65 rtc::CriticalSection lock_; | 67 rtc::CriticalSection lock_; |
66 rtc::CriticalSection bwe_lock_; | 68 rtc::CriticalSection bwe_lock_; |
67 int transport_overhead_bytes_per_packet_ GUARDED_BY(&lock_); | 69 int transport_overhead_bytes_per_packet_ GUARDED_BY(&lock_); |
68 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); | 70 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); |
69 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(&bwe_lock_); | 71 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(&bwe_lock_); |
70 RtcEventLog* const event_log_; | 72 RtcEventLog* const event_log_; |
71 Clock* const clock_; | 73 Clock* const clock_; |
72 int64_t current_offset_ms_; | 74 int64_t current_offset_ms_; |
73 int64_t last_timestamp_us_; | 75 int64_t last_timestamp_us_; |
74 BitrateController* const bitrate_controller_; | 76 BitrateController* const bitrate_controller_; |
75 std::vector<PacketFeedback> last_packet_feedback_vector_; | 77 std::vector<PacketFeedback> last_packet_feedback_vector_; |
76 }; | 78 }; |
77 | 79 |
78 } // namespace webrtc | 80 } // namespace webrtc |
79 | 81 |
80 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ | 82 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ |
OLD | NEW |