OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 const FlowIds flow_ids_; | 223 const FlowIds flow_ids_; |
224 | 224 |
225 RTC_DISALLOW_COPY_AND_ASSIGN(PacketProcessor); | 225 RTC_DISALLOW_COPY_AND_ASSIGN(PacketProcessor); |
226 }; | 226 }; |
227 | 227 |
228 class RateCounterFilter : public PacketProcessor { | 228 class RateCounterFilter : public PacketProcessor { |
229 public: | 229 public: |
230 RateCounterFilter(PacketProcessorListener* listener, | 230 RateCounterFilter(PacketProcessorListener* listener, |
231 int flow_id, | 231 int flow_id, |
232 const char* name, | 232 const char* name, |
233 const std::string& plot_name); | 233 const std::string& algorithm_name); |
234 RateCounterFilter(PacketProcessorListener* listener, | 234 RateCounterFilter(PacketProcessorListener* listener, |
235 const FlowIds& flow_ids, | 235 const FlowIds& flow_ids, |
236 const char* name, | 236 const char* name, |
237 const std::string& plot_name); | 237 const std::string& algorithm_name); |
238 RateCounterFilter(PacketProcessorListener* listener, | 238 RateCounterFilter(PacketProcessorListener* listener, |
239 const FlowIds& flow_ids, | 239 const FlowIds& flow_ids, |
240 const char* name, | 240 const char* name, |
241 int64_t start_plotting_time_ms, | 241 int64_t start_plotting_time_ms, |
242 const std::string& plot_name); | 242 const std::string& algorithm_name); |
243 virtual ~RateCounterFilter(); | 243 virtual ~RateCounterFilter(); |
244 | 244 |
245 void LogStats(); | 245 void LogStats(); |
246 Stats<double> GetBitrateStats() const; | 246 Stats<double> GetBitrateStats() const; |
247 virtual void Plot(int64_t timestamp_ms); | 247 virtual void Plot(int64_t timestamp_ms); |
248 virtual void RunFor(int64_t time_ms, Packets* in_out); | 248 virtual void RunFor(int64_t time_ms, Packets* in_out); |
249 | 249 |
250 private: | 250 private: |
251 Stats<double> packets_per_second_stats_; | 251 Stats<double> packets_per_second_stats_; |
252 Stats<double> kbps_stats_; | 252 Stats<double> kbps_stats_; |
| 253 int64_t start_plotting_time_ms_; |
| 254 int flow_id_; |
253 std::string name_; | 255 std::string name_; |
254 int64_t start_plotting_time_ms_; | |
255 // Algorithm name if single flow, Total link utilization if all flows. | 256 // Algorithm name if single flow, Total link utilization if all flows. |
256 std::string plot_name_; | 257 std::string algorithm_name_; |
257 | 258 |
258 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RateCounterFilter); | 259 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RateCounterFilter); |
259 }; | 260 }; |
260 | 261 |
261 class LossFilter : public PacketProcessor { | 262 class LossFilter : public PacketProcessor { |
262 public: | 263 public: |
263 LossFilter(PacketProcessorListener* listener, int flow_id); | 264 LossFilter(PacketProcessorListener* listener, int flow_id); |
264 LossFilter(PacketProcessorListener* listener, const FlowIds& flow_ids); | 265 LossFilter(PacketProcessorListener* listener, const FlowIds& flow_ids); |
265 virtual ~LossFilter() {} | 266 virtual ~LossFilter() {} |
266 | 267 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 uint32_t frame_counter_; | 464 uint32_t frame_counter_; |
464 int compensation_bytes_; | 465 int compensation_bytes_; |
465 int compensation_per_frame_; | 466 int compensation_per_frame_; |
466 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource); | 467 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource); |
467 }; | 468 }; |
468 } // namespace bwe | 469 } // namespace bwe |
469 } // namespace testing | 470 } // namespace testing |
470 } // namespace webrtc | 471 } // namespace webrtc |
471 | 472 |
472 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_ | 473 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_ |
OLD | NEW |