Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: webrtc/modules/congestion_controller/transport_feedback_adapter.cc

Issue 2653883002: Set the start bitrate to the delay-based BWE. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 send_time_history_.AddAndRemoveOld(sequence_number, length, probe_cluster_id); 68 send_time_history_.AddAndRemoveOld(sequence_number, length, probe_cluster_id);
69 } 69 }
70 70
71 void TransportFeedbackAdapter::OnSentPacket(uint16_t sequence_number, 71 void TransportFeedbackAdapter::OnSentPacket(uint16_t sequence_number,
72 int64_t send_time_ms) { 72 int64_t send_time_ms) {
73 rtc::CritScope cs(&lock_); 73 rtc::CritScope cs(&lock_);
74 send_time_history_.OnSentPacket(sequence_number, send_time_ms); 74 send_time_history_.OnSentPacket(sequence_number, send_time_ms);
75 } 75 }
76 76
77 void TransportFeedbackAdapter::SetStartBitrate(int start_bitrate_bps) {
78 rtc::CritScope cs(&bwe_lock_);
79 delay_based_bwe_->SetStartBitrate(start_bitrate_bps);
80 }
81
77 void TransportFeedbackAdapter::SetMinBitrate(int min_bitrate_bps) { 82 void TransportFeedbackAdapter::SetMinBitrate(int min_bitrate_bps) {
78 rtc::CritScope cs(&bwe_lock_); 83 rtc::CritScope cs(&bwe_lock_);
79 delay_based_bwe_->SetMinBitrate(min_bitrate_bps); 84 delay_based_bwe_->SetMinBitrate(min_bitrate_bps);
80 } 85 }
81 86
82 void TransportFeedbackAdapter::SetTransportOverhead( 87 void TransportFeedbackAdapter::SetTransportOverhead(
83 int transport_overhead_bytes_per_packet) { 88 int transport_overhead_bytes_per_packet) {
84 rtc::CritScope cs(&lock_); 89 rtc::CritScope cs(&lock_);
85 transport_overhead_bytes_per_packet_ = transport_overhead_bytes_per_packet; 90 transport_overhead_bytes_per_packet_ = transport_overhead_bytes_per_packet;
86 } 91 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 return last_packet_feedback_vector_; 162 return last_packet_feedback_vector_;
158 } 163 }
159 164
160 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, 165 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms,
161 int64_t max_rtt_ms) { 166 int64_t max_rtt_ms) {
162 rtc::CritScope cs(&bwe_lock_); 167 rtc::CritScope cs(&bwe_lock_);
163 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); 168 delay_based_bwe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms);
164 } 169 }
165 170
166 } // namespace webrtc 171 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698