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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/bwe.h

Issue 2904183002: Structure of BBR's implementation,some main classes and functions which are going to be used (Closed)
Patch Set: Added header files to build file Created 3 years, 6 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Used for calculating global packet loss ratio. 171 // Used for calculating global packet loss ratio.
172 LossAccount loss_account_; 172 LossAccount loss_account_;
173 }; 173 };
174 174
175 enum BandwidthEstimatorType { 175 enum BandwidthEstimatorType {
176 kNullEstimator, 176 kNullEstimator,
177 kNadaEstimator, 177 kNadaEstimator,
178 kRembEstimator, 178 kRembEstimator,
179 kSendSideEstimator, 179 kSendSideEstimator,
180 kTcpEstimator 180 kTcpEstimator,
181 kBbrEstimator
181 }; 182 };
182 183
183 const char* const bwe_names[] = {"Null", "NADA", "REMB", "GCC", "TCP"}; 184 const char* const bwe_names[] = {"Null", "NADA", "REMB", "GCC", "TCP", "BBR"};
184 185
185 int64_t GetAbsSendTimeInMs(uint32_t abs_send_time); 186 int64_t GetAbsSendTimeInMs(uint32_t abs_send_time);
186 187
187 BweSender* CreateBweSender(BandwidthEstimatorType estimator, 188 BweSender* CreateBweSender(BandwidthEstimatorType estimator,
188 int kbps, 189 int kbps,
189 BitrateObserver* observer, 190 BitrateObserver* observer,
190 Clock* clock); 191 Clock* clock);
191 192
192 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type, 193 BweReceiver* CreateBweReceiver(BandwidthEstimatorType type,
193 int flow_id, 194 int flow_id,
194 bool plot); 195 bool plot);
195 } // namespace bwe 196 } // namespace bwe
196 } // namespace testing 197 } // namespace testing
197 } // namespace webrtc 198 } // namespace webrtc
198 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_ 199 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc ('k') | webrtc/modules/remote_bitrate_estimator/test/bwe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698