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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 << " packet" << (failed_lookups > 1 ? "s" : "") | 115 << " packet" << (failed_lookups > 1 ? "s" : "") |
116 << ". Send time history too small?"; | 116 << ". Send time history too small?"; |
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 120 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
121 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); | 121 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); |
122 } | 122 } |
123 | 123 |
124 void TransportFeedbackAdapter::OnReceiveBitrateChanged( | 124 void TransportFeedbackAdapter::OnReceiveBitrateChanged( |
125 const std::vector<unsigned int>& ssrcs, | 125 const std::vector<uint32_t>& ssrcs, |
126 unsigned int bitrate) { | 126 uint32_t bitrate) { |
127 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); | 127 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); |
128 } | 128 } |
129 | 129 |
130 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, | 130 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, |
131 int64_t max_rtt_ms) { | 131 int64_t max_rtt_ms) { |
132 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 132 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
133 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); | 133 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
134 } | 134 } |
135 | 135 |
136 } // namespace webrtc | 136 } // namespace webrtc |
OLD | NEW |