OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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/delay_based_bwe.h" | 11 #include "webrtc/modules/congestion_controller/delay_based_bwe.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <cmath> | 14 #include <cmath> |
15 #include <string> | 15 #include <string> |
16 | 16 |
| 17 #include "webrtc/base/checks.h" |
| 18 #include "webrtc/base/constructormagic.h" |
| 19 #include "webrtc/base/logging.h" |
| 20 #include "webrtc/base/thread_annotations.h" |
17 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 21 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
18 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" | 22 #include "webrtc/modules/congestion_controller/include/congestion_controller.h" |
19 #include "webrtc/modules/pacing/paced_sender.h" | 23 #include "webrtc/modules/pacing/paced_sender.h" |
20 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 24 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
21 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" | 25 #include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h" |
22 #include "webrtc/rtc_base/checks.h" | |
23 #include "webrtc/rtc_base/constructormagic.h" | |
24 #include "webrtc/rtc_base/logging.h" | |
25 #include "webrtc/rtc_base/thread_annotations.h" | |
26 #include "webrtc/system_wrappers/include/field_trial.h" | 26 #include "webrtc/system_wrappers/include/field_trial.h" |
27 #include "webrtc/system_wrappers/include/metrics.h" | 27 #include "webrtc/system_wrappers/include/metrics.h" |
28 #include "webrtc/typedefs.h" | 28 #include "webrtc/typedefs.h" |
29 | 29 |
30 namespace { | 30 namespace { |
31 constexpr int kTimestampGroupLengthMs = 5; | 31 constexpr int kTimestampGroupLengthMs = 5; |
32 constexpr int kAbsSendTimeFraction = 18; | 32 constexpr int kAbsSendTimeFraction = 18; |
33 constexpr int kAbsSendTimeInterArrivalUpshift = 8; | 33 constexpr int kAbsSendTimeInterArrivalUpshift = 8; |
34 constexpr int kInterArrivalShift = | 34 constexpr int kInterArrivalShift = |
35 kAbsSendTimeFraction + kAbsSendTimeInterArrivalUpshift; | 35 kAbsSendTimeFraction + kAbsSendTimeInterArrivalUpshift; |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 void DelayBasedBwe::SetMinBitrate(int min_bitrate_bps) { | 270 void DelayBasedBwe::SetMinBitrate(int min_bitrate_bps) { |
271 // Called from both the configuration thread and the network thread. Shouldn't | 271 // Called from both the configuration thread and the network thread. Shouldn't |
272 // be called from the network thread in the future. | 272 // be called from the network thread in the future. |
273 rate_control_.SetMinBitrate(min_bitrate_bps); | 273 rate_control_.SetMinBitrate(min_bitrate_bps); |
274 } | 274 } |
275 | 275 |
276 int64_t DelayBasedBwe::GetExpectedBwePeriodMs() const { | 276 int64_t DelayBasedBwe::GetExpectedBwePeriodMs() const { |
277 return rate_control_.GetExpectedBandwidthPeriodMs(); | 277 return rate_control_.GetExpectedBandwidthPeriodMs(); |
278 } | 278 } |
279 } // namespace webrtc | 279 } // namespace webrtc |
OLD | NEW |