| 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 27 matching lines...) Expand all Loading... |
| 38 : clock_(clock), | 38 : clock_(clock), |
| 39 packet_router_(packet_router), | 39 packet_router_(packet_router), |
| 40 last_process_time_ms_(-1), | 40 last_process_time_ms_(-1), |
| 41 media_ssrc_(0), | 41 media_ssrc_(0), |
| 42 feedback_sequence_(0), | 42 feedback_sequence_(0), |
| 43 window_start_seq_(-1), | 43 window_start_seq_(-1), |
| 44 send_interval_ms_(kDefaultSendIntervalMs) {} | 44 send_interval_ms_(kDefaultSendIntervalMs) {} |
| 45 | 45 |
| 46 RemoteEstimatorProxy::~RemoteEstimatorProxy() {} | 46 RemoteEstimatorProxy::~RemoteEstimatorProxy() {} |
| 47 | 47 |
| 48 void RemoteEstimatorProxy::IncomingPacketFeedbackVector( | |
| 49 const std::vector<PacketInfo>& packet_feedback_vector) { | |
| 50 rtc::CritScope cs(&lock_); | |
| 51 for (PacketInfo info : packet_feedback_vector) | |
| 52 OnPacketArrival(info.sequence_number, info.arrival_time_ms); | |
| 53 } | |
| 54 | |
| 55 void RemoteEstimatorProxy::IncomingPacket(int64_t arrival_time_ms, | 48 void RemoteEstimatorProxy::IncomingPacket(int64_t arrival_time_ms, |
| 56 size_t payload_size, | 49 size_t payload_size, |
| 57 const RTPHeader& header) { | 50 const RTPHeader& header) { |
| 58 if (!header.extension.hasTransportSequenceNumber) { | 51 if (!header.extension.hasTransportSequenceNumber) { |
| 59 LOG(LS_WARNING) << "RemoteEstimatorProxy: Incoming packet " | 52 LOG(LS_WARNING) << "RemoteEstimatorProxy: Incoming packet " |
| 60 "is missing the transport sequence number extension!"; | 53 "is missing the transport sequence number extension!"; |
| 61 return; | 54 return; |
| 62 } | 55 } |
| 63 rtc::CritScope cs(&lock_); | 56 rtc::CritScope cs(&lock_); |
| 64 media_ssrc_ = header.ssrc; | 57 media_ssrc_ = header.ssrc; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // 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 |
| 198 // 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 |
| 199 // by OnPacketArrival once packets are too old. | 192 // by OnPacketArrival once packets are too old. |
| 200 window_start_seq_ = it->first + 1; | 193 window_start_seq_ = it->first + 1; |
| 201 } | 194 } |
| 202 | 195 |
| 203 return true; | 196 return true; |
| 204 } | 197 } |
| 205 | 198 |
| 206 } // namespace webrtc | 199 } // namespace webrtc |
| OLD | NEW |