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 |
11 #include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h" | 11 #include "webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h" |
12 | 12 |
13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
14 #include "webrtc/base/logging.h" | 14 #include "webrtc/base/logging.h" |
15 #include "webrtc/system_wrappers/include/clock.h" | 15 #include "webrtc/system_wrappers/include/clock.h" |
16 #include "webrtc/modules/pacing/include/packet_router.h" | 16 #include "webrtc/modules/pacing/include/packet_router.h" |
17 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 17 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
18 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 // TODO(sprang): Tune these! | 22 // TODO(sprang): Tune these! |
23 const int RemoteEstimatorProxy::kDefaultProcessIntervalMs = 200; | 23 const int RemoteEstimatorProxy::kDefaultProcessIntervalMs = 200; |
24 const int RemoteEstimatorProxy::kBackWindowMs = 500; | 24 const int RemoteEstimatorProxy::kBackWindowMs = 500; |
25 | 25 |
26 RemoteEstimatorProxy::RemoteEstimatorProxy(Clock* clock, | 26 RemoteEstimatorProxy::RemoteEstimatorProxy(Clock* clock, |
27 PacketRouter* packet_router) | 27 PacketRouter* packet_router) |
28 : clock_(clock), | 28 : clock_(clock), |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // they need to be re-sent after a reordering. Removal will be handled | 155 // they need to be re-sent after a reordering. Removal will be handled |
156 // by OnPacketArrival once packets are too old. | 156 // by OnPacketArrival once packets are too old. |
157 } | 157 } |
158 if (it == packet_arrival_times_.end()) | 158 if (it == packet_arrival_times_.end()) |
159 window_start_seq_ = -1; | 159 window_start_seq_ = -1; |
160 | 160 |
161 return true; | 161 return true; |
162 } | 162 } |
163 | 163 |
164 } // namespace webrtc | 164 } // namespace webrtc |
OLD | NEW |