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 <limits> | 13 #include <limits> |
14 #include <algorithm> | 14 #include <algorithm> |
15 | 15 |
16 #include "webrtc/base/checks.h" | |
17 #include "webrtc/base/logging.h" | |
18 #include "webrtc/base/safe_minmax.h" | |
19 #include "webrtc/modules/pacing/packet_router.h" | 16 #include "webrtc/modules/pacing/packet_router.h" |
20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
21 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 18 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 19 #include "webrtc/rtc_base/checks.h" |
| 20 #include "webrtc/rtc_base/logging.h" |
| 21 #include "webrtc/rtc_base/safe_minmax.h" |
22 #include "webrtc/system_wrappers/include/clock.h" | 22 #include "webrtc/system_wrappers/include/clock.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 // TODO(sprang): Tune these! | 26 // TODO(sprang): Tune these! |
27 const int RemoteEstimatorProxy::kBackWindowMs = 500; | 27 const int RemoteEstimatorProxy::kBackWindowMs = 500; |
28 const int RemoteEstimatorProxy::kMinSendIntervalMs = 50; | 28 const int RemoteEstimatorProxy::kMinSendIntervalMs = 50; |
29 const int RemoteEstimatorProxy::kMaxSendIntervalMs = 250; | 29 const int RemoteEstimatorProxy::kMaxSendIntervalMs = 250; |
30 const int RemoteEstimatorProxy::kDefaultSendIntervalMs = 100; | 30 const int RemoteEstimatorProxy::kDefaultSendIntervalMs = 100; |
31 | 31 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // Note: Don't erase items from packet_arrival_times_ after sending, in case | 192 // Note: Don't erase items from packet_arrival_times_ after sending, in case |
193 // they need to be re-sent after a reordering. Removal will be handled | 193 // they need to be re-sent after a reordering. Removal will be handled |
194 // by OnPacketArrival once packets are too old. | 194 // by OnPacketArrival once packets are too old. |
195 window_start_seq_ = it->first + 1; | 195 window_start_seq_ = it->first + 1; |
196 } | 196 } |
197 | 197 |
198 return true; | 198 return true; |
199 } | 199 } |
200 | 200 |
201 } // namespace webrtc | 201 } // namespace webrtc |
OLD | NEW |