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

Side by Side Diff: webrtc/call/congestion_controller.cc

Issue 1581113006: Support REMB in combination with send-side BWE. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added comment. Created 4 years, 11 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
« no previous file with comments | « no previous file | webrtc/modules/bitrate_controller/bitrate_controller_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 if (send_side_bwe) 230 if (send_side_bwe)
231 return remote_estimator_proxy_.get(); 231 return remote_estimator_proxy_.get();
232 else 232 else
233 return remote_bitrate_estimator_.get(); 233 return remote_bitrate_estimator_.get();
234 } 234 }
235 235
236 TransportFeedbackObserver* 236 TransportFeedbackObserver*
237 CongestionController::GetTransportFeedbackObserver() { 237 CongestionController::GetTransportFeedbackObserver() {
238 if (transport_feedback_adapter_.get() == nullptr) { 238 if (transport_feedback_adapter_.get() == nullptr) {
239 transport_feedback_adapter_.reset(new TransportFeedbackAdapter( 239 transport_feedback_adapter_.reset(new TransportFeedbackAdapter(
240 bitrate_controller_->CreateRtcpBandwidthObserver(), 240 bitrate_controller_.get(), Clock::GetRealTimeClock(), process_thread_));
241 Clock::GetRealTimeClock(), process_thread_));
242 transport_feedback_adapter_->SetBitrateEstimator( 241 transport_feedback_adapter_->SetBitrateEstimator(
243 new RemoteBitrateEstimatorAbsSendTime( 242 new RemoteBitrateEstimatorAbsSendTime(
244 transport_feedback_adapter_.get(), Clock::GetRealTimeClock())); 243 transport_feedback_adapter_.get(), Clock::GetRealTimeClock()));
245 transport_feedback_adapter_->GetBitrateEstimator()->SetMinBitrate( 244 transport_feedback_adapter_->GetBitrateEstimator()->SetMinBitrate(
246 min_bitrate_bps_); 245 min_bitrate_bps_);
247 call_stats_->RegisterStatsObserver(transport_feedback_adapter_.get()); 246 call_stats_->RegisterStatsObserver(transport_feedback_adapter_.get());
248 } 247 }
249 return transport_feedback_adapter_.get(); 248 return transport_feedback_adapter_.get();
250 } 249 }
251 250
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 283 }
285 } 284 }
286 285
287 void CongestionController::OnSentPacket(const rtc::SentPacket& sent_packet) { 286 void CongestionController::OnSentPacket(const rtc::SentPacket& sent_packet) {
288 if (transport_feedback_adapter_) { 287 if (transport_feedback_adapter_) {
289 transport_feedback_adapter_->OnSentPacket(sent_packet.packet_id, 288 transport_feedback_adapter_->OnSentPacket(sent_packet.packet_id,
290 sent_packet.send_time_ms); 289 sent_packet.send_time_ms);
291 } 290 }
292 } 291 }
293 } // namespace webrtc 292 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/bitrate_controller/bitrate_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698