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

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

Issue 1237303002: Modified Simulation Framework Jitter Model (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated Jitter expected value to suit the truncated gaussian Created 5 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) 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 DISALLOW_IMPLICIT_CONSTRUCTORS(DelayFilter); 308 DISALLOW_IMPLICIT_CONSTRUCTORS(DelayFilter);
309 }; 309 };
310 310
311 class JitterFilter : public PacketProcessor { 311 class JitterFilter : public PacketProcessor {
312 public: 312 public:
313 JitterFilter(PacketProcessorListener* listener, int flow_id); 313 JitterFilter(PacketProcessorListener* listener, int flow_id);
314 JitterFilter(PacketProcessorListener* listener, const FlowIds& flow_ids); 314 JitterFilter(PacketProcessorListener* listener, const FlowIds& flow_ids);
315 virtual ~JitterFilter() {} 315 virtual ~JitterFilter() {}
316 316
317 void SetJitter(int64_t stddev_jitter_ms); 317 void SetMaxJitter(int64_t stddev_jitter_ms);
318 virtual void RunFor(int64_t time_ms, Packets* in_out); 318 virtual void RunFor(int64_t time_ms, Packets* in_out);
319 void set_reorderdering(bool reordering) { reordering_ = reordering; }
320 int64_t MeanUs();
319 321
320 private: 322 private:
321 Random random_; 323 Random random_;
322 int64_t stddev_jitter_us_; 324 int64_t stddev_jitter_us_;
323 int64_t last_send_time_us_; 325 int64_t last_send_time_us_;
326 bool reordering_; // False by default.
324 327
325 DISALLOW_IMPLICIT_CONSTRUCTORS(JitterFilter); 328 DISALLOW_IMPLICIT_CONSTRUCTORS(JitterFilter);
326 }; 329 };
327 330
328 // Reorders two consecutive packets with a probability of reorder_percent. 331 // Reorders two consecutive packets with a probability of reorder_percent.
329 class ReorderFilter : public PacketProcessor { 332 class ReorderFilter : public PacketProcessor {
330 public: 333 public:
331 ReorderFilter(PacketProcessorListener* listener, int flow_id); 334 ReorderFilter(PacketProcessorListener* listener, int flow_id);
332 ReorderFilter(PacketProcessorListener* listener, const FlowIds& flow_ids); 335 ReorderFilter(PacketProcessorListener* listener, const FlowIds& flow_ids);
333 virtual ~ReorderFilter() {} 336 virtual ~ReorderFilter() {}
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 uint32_t frame_counter_; 483 uint32_t frame_counter_;
481 int compensation_bytes_; 484 int compensation_bytes_;
482 int compensation_per_frame_; 485 int compensation_per_frame_;
483 DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource); 486 DISALLOW_IMPLICIT_CONSTRUCTORS(PeriodicKeyFrameSource);
484 }; 487 };
485 } // namespace bwe 488 } // namespace bwe
486 } // namespace testing 489 } // namespace testing
487 } // namespace webrtc 490 } // namespace webrtc
488 491
489 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_ 492 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_TEST_BWE_TEST_FRAMEWORK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698