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

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

Issue 2684353004: Reduce the BWE with 50% when feedback is received too late. (Closed)
Patch Set: Updated comment. Created 3 years, 10 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 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int sum_; 73 int sum_;
74 int64_t current_win_ms_; 74 int64_t current_win_ms_;
75 int64_t prev_time_ms_; 75 int64_t prev_time_ms_;
76 float bitrate_estimate_; 76 float bitrate_estimate_;
77 float bitrate_estimate_var_; 77 float bitrate_estimate_var_;
78 RateStatistics old_estimator_; 78 RateStatistics old_estimator_;
79 const bool in_experiment_; 79 const bool in_experiment_;
80 }; 80 };
81 81
82 Result IncomingPacketInfo(const PacketInfo& info); 82 Result IncomingPacketInfo(const PacketInfo& info);
83 Result OnLongFeedbackDelay(int64_t arrival_time_ms);
83 // Updates the current remote rate estimate and returns true if a valid 84 // Updates the current remote rate estimate and returns true if a valid
84 // estimate exists. 85 // estimate exists.
85 bool UpdateEstimate(int64_t packet_arrival_time_ms, 86 bool UpdateEstimate(int64_t packet_arrival_time_ms,
86 int64_t now_ms, 87 int64_t now_ms,
87 rtc::Optional<uint32_t> acked_bitrate_bps, 88 rtc::Optional<uint32_t> acked_bitrate_bps,
88 uint32_t* target_bitrate_bps); 89 uint32_t* target_bitrate_bps);
89 const bool in_trendline_experiment_; 90 const bool in_trendline_experiment_;
90 const bool in_median_slope_experiment_; 91 const bool in_median_slope_experiment_;
91 92
92 rtc::ThreadChecker network_thread_; 93 rtc::ThreadChecker network_thread_;
93 Clock* const clock_; 94 Clock* const clock_;
94 std::unique_ptr<InterArrival> inter_arrival_; 95 std::unique_ptr<InterArrival> inter_arrival_;
95 std::unique_ptr<OveruseEstimator> kalman_estimator_; 96 std::unique_ptr<OveruseEstimator> kalman_estimator_;
96 std::unique_ptr<TrendlineEstimator> trendline_estimator_; 97 std::unique_ptr<TrendlineEstimator> trendline_estimator_;
97 std::unique_ptr<MedianSlopeEstimator> median_slope_estimator_; 98 std::unique_ptr<MedianSlopeEstimator> median_slope_estimator_;
98 OveruseDetector detector_; 99 OveruseDetector detector_;
99 BitrateEstimator receiver_incoming_bitrate_; 100 BitrateEstimator receiver_incoming_bitrate_;
100 int64_t last_update_ms_; 101 int64_t last_update_ms_;
101 int64_t last_seen_packet_ms_; 102 int64_t last_seen_packet_ms_;
102 bool uma_recorded_; 103 bool uma_recorded_;
103 AimdRateControl rate_control_; 104 AimdRateControl rate_control_;
104 ProbeBitrateEstimator probe_bitrate_estimator_; 105 ProbeBitrateEstimator probe_bitrate_estimator_;
105 size_t trendline_window_size_; 106 size_t trendline_window_size_;
106 double trendline_smoothing_coeff_; 107 double trendline_smoothing_coeff_;
107 double trendline_threshold_gain_; 108 double trendline_threshold_gain_;
108 ProbingIntervalEstimator probing_interval_estimator_; 109 ProbingIntervalEstimator probing_interval_estimator_;
109 size_t median_slope_window_size_; 110 size_t median_slope_window_size_;
110 double median_slope_threshold_gain_; 111 double median_slope_threshold_gain_;
112 int consecutive_delayed_feedbacks_;
111 113
112 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(DelayBasedBwe); 114 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(DelayBasedBwe);
113 }; 115 };
114 116
115 } // namespace webrtc 117 } // namespace webrtc
116 118
117 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_H_ 119 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/congestion_controller.cc ('k') | webrtc/modules/congestion_controller/delay_based_bwe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698