Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: webrtc/modules/congestion_controller/median_slope_estimator.h

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_MEDIAN_SLOPE_ESTIMATOR_H_ 10 #ifndef WEBRTC_MODULES_CONGESTION_CONTROLLER_MEDIAN_SLOPE_ESTIMATOR_H_
11 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_MEDIAN_SLOPE_ESTIMATOR_H_ 11 #define WEBRTC_MODULES_CONGESTION_CONTROLLER_MEDIAN_SLOPE_ESTIMATOR_H_
12 12
13 #include <stddef.h> 13 #include <stddef.h>
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 #include <deque> 16 #include <deque>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/rtc_base/constructormagic.h" 19 #include "webrtc/base/constructormagic.h"
20 #include "webrtc/rtc_base/numerics/percentile_filter.h" 20 #include "webrtc/base/numerics/percentile_filter.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 23
24 class MedianSlopeEstimator { 24 class MedianSlopeEstimator {
25 public: 25 public:
26 // |window_size| is the number of points required to compute a trend line. 26 // |window_size| is the number of points required to compute a trend line.
27 // |threshold_gain| is used to scale the trendline slope for comparison to 27 // |threshold_gain| is used to scale the trendline slope for comparison to
28 // the old threshold. Once the old estimator has been removed (or the 28 // the old threshold. Once the old estimator has been removed (or the
29 // thresholds been merged into the estimators), we can just set the 29 // thresholds been merged into the estimators), we can just set the
30 // threshold instead of setting a gain. 30 // threshold instead of setting a gain.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 double accumulated_delay_; 63 double accumulated_delay_;
64 std::deque<DelayInfo> delay_hist_; 64 std::deque<DelayInfo> delay_hist_;
65 PercentileFilter<double> median_filter_; 65 PercentileFilter<double> median_filter_;
66 double trendline_; 66 double trendline_;
67 67
68 RTC_DISALLOW_COPY_AND_ASSIGN(MedianSlopeEstimator); 68 RTC_DISALLOW_COPY_AND_ASSIGN(MedianSlopeEstimator);
69 }; 69 };
70 } // namespace webrtc 70 } // namespace webrtc
71 71
72 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_MEDIAN_SLOPE_ESTIMATOR_H_ 72 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_MEDIAN_SLOPE_ESTIMATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698