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

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

Issue 2407143002: Remove GetFeedbackInterval in sender side BWE. (Closed)
Patch Set: Rebased Created 3 years, 8 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 private: 72 private:
73 float UpdateWindow(int64_t now_ms, int bytes, int rate_window_ms); 73 float UpdateWindow(int64_t now_ms, int bytes, int rate_window_ms);
74 int sum_; 74 int sum_;
75 int64_t current_win_ms_; 75 int64_t current_win_ms_;
76 int64_t prev_time_ms_; 76 int64_t prev_time_ms_;
77 float bitrate_estimate_; 77 float bitrate_estimate_;
78 float bitrate_estimate_var_; 78 float bitrate_estimate_var_;
79 }; 79 };
80 80
81 Result IncomingPacketFeedback(const PacketFeedback& packet_feedback); 81 void IncomingPacketFeedback(const PacketFeedback& packet_feedback);
82 Result OnLongFeedbackDelay(int64_t arrival_time_ms); 82 Result OnLongFeedbackDelay(int64_t arrival_time_ms);
83
84 Result MaybeUpdateEstimate(bool overusing);
83 // Updates the current remote rate estimate and returns true if a valid 85 // Updates the current remote rate estimate and returns true if a valid
84 // estimate exists. 86 // estimate exists.
85 bool UpdateEstimate(int64_t packet_arrival_time_ms, 87 bool UpdateEstimate(int64_t now_ms,
86 int64_t now_ms,
87 rtc::Optional<uint32_t> acked_bitrate_bps, 88 rtc::Optional<uint32_t> acked_bitrate_bps,
89 bool overusing,
88 uint32_t* target_bitrate_bps); 90 uint32_t* target_bitrate_bps);
89 91
90 rtc::ThreadChecker network_thread_; 92 rtc::ThreadChecker network_thread_;
91 RtcEventLog* const event_log_; 93 RtcEventLog* const event_log_;
92 const Clock* const clock_; 94 const Clock* const clock_;
93 std::unique_ptr<InterArrival> inter_arrival_; 95 std::unique_ptr<InterArrival> inter_arrival_;
94 std::unique_ptr<TrendlineEstimator> trendline_estimator_; 96 std::unique_ptr<TrendlineEstimator> trendline_estimator_;
95 OveruseDetector detector_; 97 OveruseDetector detector_;
96 BitrateEstimator receiver_incoming_bitrate_; 98 BitrateEstimator receiver_incoming_bitrate_;
97 int64_t last_update_ms_;
98 int64_t last_seen_packet_ms_; 99 int64_t last_seen_packet_ms_;
99 bool uma_recorded_; 100 bool uma_recorded_;
100 AimdRateControl rate_control_; 101 AimdRateControl rate_control_;
101 ProbeBitrateEstimator probe_bitrate_estimator_; 102 ProbeBitrateEstimator probe_bitrate_estimator_;
102 size_t trendline_window_size_; 103 size_t trendline_window_size_;
103 double trendline_smoothing_coeff_; 104 double trendline_smoothing_coeff_;
104 double trendline_threshold_gain_; 105 double trendline_threshold_gain_;
105 ProbingIntervalEstimator probing_interval_estimator_; 106 ProbingIntervalEstimator probing_interval_estimator_;
106 int consecutive_delayed_feedbacks_; 107 int consecutive_delayed_feedbacks_;
107 uint32_t last_logged_bitrate_; 108 uint32_t last_logged_bitrate_;
108 BandwidthUsage last_logged_state_; 109 BandwidthUsage last_logged_state_;
109 110
110 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(DelayBasedBwe); 111 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(DelayBasedBwe);
111 }; 112 };
112 113
113 } // namespace webrtc 114 } // namespace webrtc
114 115
115 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_H_ 116 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_DELAY_BASED_BWE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698