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 | 11 |
12 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H
_ | 12 #ifndef WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H
_ |
13 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H
_ | 13 #define WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTER_H
_ |
14 | 14 |
15 #include <cstdint> | 15 #include <cstdint> |
16 #include <limits> | 16 #include <limits> |
17 #include <list> | 17 #include <list> |
18 | 18 |
19 #include "webrtc/rtc_base/optional.h" | 19 #include "webrtc/api/optional.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 namespace testing { | 22 namespace testing { |
23 namespace bwe { | 23 namespace bwe { |
24 | 24 |
25 // Average rtt for past |kRttFilterSize| packets should grow by | 25 // Average rtt for past |kRttFilterSize| packets should grow by |
26 // |kRttIncreaseThresholdForExpiry| in order to enter PROBE_RTT mode and expire. | 26 // |kRttIncreaseThresholdForExpiry| in order to enter PROBE_RTT mode and expire. |
27 // old min_rtt estimate. | 27 // old min_rtt estimate. |
28 const float kRttIncreaseThresholdForExpiry = 2.3f; | 28 const float kRttIncreaseThresholdForExpiry = 2.3f; |
29 const size_t kRttFilterSize = 25; | 29 const size_t kRttFilterSize = 25; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 private: | 65 private: |
66 rtc::Optional<int64_t> min_rtt_ms_; | 66 rtc::Optional<int64_t> min_rtt_ms_; |
67 std::list<int64_t> rtt_samples_; | 67 std::list<int64_t> rtt_samples_; |
68 }; | 68 }; |
69 } // namespace bwe | 69 } // namespace bwe |
70 } // namespace testing | 70 } // namespace testing |
71 } // namespace webrtc | 71 } // namespace webrtc |
72 | 72 |
73 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTE
R_H_ | 73 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_ESTIMATORS_MIN_RTT_FILTE
R_H_ |
OLD | NEW |