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

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

Issue 2721463003: Remove unused RemoteBitrateEstimator::IncomingPacketFeedbackVector() (Closed)
Patch Set: Rebased Created 3 years, 9 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/remote_estimator_proxy.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 27 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698