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

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

Issue 2263973004: Set send side bitrate estimate on successful probing attempt. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Fix Created 4 years, 4 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 | « webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h ('k') | no next file » | 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) 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 RTC_DCHECK(bitrate_estimator_.get() != nullptr); 135 RTC_DCHECK(bitrate_estimator_.get() != nullptr);
136 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); 136 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector);
137 } 137 }
138 138
139 void TransportFeedbackAdapter::OnReceiveBitrateChanged( 139 void TransportFeedbackAdapter::OnReceiveBitrateChanged(
140 const std::vector<uint32_t>& ssrcs, 140 const std::vector<uint32_t>& ssrcs,
141 uint32_t bitrate) { 141 uint32_t bitrate) {
142 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); 142 bitrate_controller_->UpdateDelayBasedEstimate(bitrate);
143 } 143 }
144 144
145 void TransportFeedbackAdapter::OnProbeBitrate(uint32_t bitrate) {
146 bitrate_controller_->UpdateProbeBitrate(bitrate);
147 }
148
145 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, 149 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms,
146 int64_t max_rtt_ms) { 150 int64_t max_rtt_ms) {
147 RTC_DCHECK(bitrate_estimator_.get() != nullptr); 151 RTC_DCHECK(bitrate_estimator_.get() != nullptr);
148 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); 152 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms);
149 } 153 }
150 154
151 } // namespace webrtc 155 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698