OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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/congestion_controller/include/receive_side_congestion_c
ontroller.h" | 11 #include "webrtc/modules/congestion_controller/include/receive_side_congestion_c
ontroller.h" |
12 | 12 |
13 #include "webrtc/base/logging.h" | |
14 #include "webrtc/modules/pacing/packet_router.h" | 13 #include "webrtc/modules/pacing/packet_router.h" |
15 #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_s
end_time.h" | 14 #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_s
end_time.h" |
16 #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_singl
e_stream.h" | 15 #include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_singl
e_stream.h" |
| 16 #include "webrtc/rtc_base/logging.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 namespace { | 20 namespace { |
21 static const uint32_t kTimeOffsetSwitchThreshold = 30; | 21 static const uint32_t kTimeOffsetSwitchThreshold = 30; |
22 } // namespace | 22 } // namespace |
23 | 23 |
24 ReceiveSideCongestionController::WrappingBitrateEstimator:: | 24 ReceiveSideCongestionController::WrappingBitrateEstimator:: |
25 WrappingBitrateEstimator(RemoteBitrateObserver* observer, | 25 WrappingBitrateEstimator(RemoteBitrateObserver* observer, |
26 const Clock* clock) | 26 const Clock* clock) |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 int64_t ReceiveSideCongestionController::TimeUntilNextProcess() { | 166 int64_t ReceiveSideCongestionController::TimeUntilNextProcess() { |
167 return remote_bitrate_estimator_.TimeUntilNextProcess(); | 167 return remote_bitrate_estimator_.TimeUntilNextProcess(); |
168 } | 168 } |
169 | 169 |
170 void ReceiveSideCongestionController::Process() { | 170 void ReceiveSideCongestionController::Process() { |
171 remote_bitrate_estimator_.Process(); | 171 remote_bitrate_estimator_.Process(); |
172 } | 172 } |
173 | 173 |
174 } // namespace webrtc | 174 } // namespace webrtc |
OLD | NEW |