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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 76 } |
77 | 77 |
78 void RemoteEstimatorProxy::Process() { | 78 void RemoteEstimatorProxy::Process() { |
79 last_process_time_ms_ = clock_->TimeInMilliseconds(); | 79 last_process_time_ms_ = clock_->TimeInMilliseconds(); |
80 | 80 |
81 bool more_to_build = true; | 81 bool more_to_build = true; |
82 while (more_to_build) { | 82 while (more_to_build) { |
83 rtcp::TransportFeedback feedback_packet; | 83 rtcp::TransportFeedback feedback_packet; |
84 if (BuildFeedbackPacket(&feedback_packet)) { | 84 if (BuildFeedbackPacket(&feedback_packet)) { |
85 RTC_DCHECK(packet_router_ != nullptr); | 85 RTC_DCHECK(packet_router_ != nullptr); |
86 packet_router_->SendFeedback(&feedback_packet); | 86 packet_router_->SendTransportFeedback(&feedback_packet); |
87 } else { | 87 } else { |
88 more_to_build = false; | 88 more_to_build = false; |
89 } | 89 } |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 void RemoteEstimatorProxy::OnBitrateChanged(int bitrate_bps) { | 93 void RemoteEstimatorProxy::OnBitrateChanged(int bitrate_bps) { |
94 // TwccReportSize = Ipv4(20B) + UDP(8B) + SRTP(10B) + | 94 // TwccReportSize = Ipv4(20B) + UDP(8B) + SRTP(10B) + |
95 // AverageTwccReport(30B) | 95 // AverageTwccReport(30B) |
96 // TwccReport size at 50ms interval is 24 byte. | 96 // TwccReport size at 50ms interval is 24 byte. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Note: Don't erase items from packet_arrival_times_ after sending, in case | 190 // Note: Don't erase items from packet_arrival_times_ after sending, in case |
191 // they need to be re-sent after a reordering. Removal will be handled | 191 // they need to be re-sent after a reordering. Removal will be handled |
192 // by OnPacketArrival once packets are too old. | 192 // by OnPacketArrival once packets are too old. |
193 window_start_seq_ = it->first + 1; | 193 window_start_seq_ = it->first + 1; |
194 } | 194 } |
195 | 195 |
196 return true; | 196 return true; |
197 } | 197 } |
198 | 198 |
199 } // namespace webrtc | 199 } // namespace webrtc |
OLD | NEW |