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

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

Issue 1362923002: Revert of Wire up send-side bandwidth estimation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Manual merge of revert Created 5 years, 2 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 ++sequence_number; 101 ++sequence_number;
102 } 102 }
103 RTC_DCHECK(delta_it == delta_vec.end()); 103 RTC_DCHECK(delta_it == delta_vec.end());
104 if (failed_lookups > 0) { 104 if (failed_lookups > 0) {
105 LOG(LS_WARNING) << "Failed to lookup send time for " << failed_lookups 105 LOG(LS_WARNING) << "Failed to lookup send time for " << failed_lookups
106 << " packet" << (failed_lookups > 1 ? "s" : "") 106 << " packet" << (failed_lookups > 1 ? "s" : "")
107 << ". Send time history too small?"; 107 << ". Send time history too small?";
108 } 108 }
109 } 109 }
110
111 RTC_DCHECK(bitrate_estimator_.get() != nullptr); 110 RTC_DCHECK(bitrate_estimator_.get() != nullptr);
112 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); 111 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector);
113 } 112 }
114 113
115 void TransportFeedbackAdapter::OnReceiveBitrateChanged( 114 void TransportFeedbackAdapter::OnReceiveBitrateChanged(
116 const std::vector<unsigned int>& ssrcs, 115 const std::vector<unsigned int>& ssrcs,
117 unsigned int bitrate) { 116 unsigned int bitrate) {
118 rtcp_bandwidth_observer_->OnReceivedEstimatedBitrate(bitrate); 117 rtcp_bandwidth_observer_->OnReceivedEstimatedBitrate(bitrate);
119 } 118 }
120 119
121 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, 120 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms,
122 int64_t max_rtt_ms) { 121 int64_t max_rtt_ms) {
123 RTC_DCHECK(bitrate_estimator_.get() != nullptr); 122 RTC_DCHECK(bitrate_estimator_.get() != nullptr);
124 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); 123 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms);
125 } 124 }
126 125
127 } // namespace webrtc 126 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/BUILD.gn ('k') | webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698