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

Side by Side Diff: webrtc/modules/pacing/paced_sender.cc

Issue 2999073002: Tweaked version of BBR for WebRTC. (Closed)
Patch Set: Updated according to comments. Created 3 years, 4 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
« no previous file with comments | « webrtc/modules/pacing/paced_sender.h ('k') | webrtc/modules/pacing/pacer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 19 matching lines...) Expand all
30 // Time limit in milliseconds between packet bursts. 30 // Time limit in milliseconds between packet bursts.
31 const int64_t kMinPacketLimitMs = 5; 31 const int64_t kMinPacketLimitMs = 5;
32 const int64_t kPausedPacketIntervalMs = 500; 32 const int64_t kPausedPacketIntervalMs = 500;
33 33
34 // Upper cap on process interval, in case process has not been called in a long 34 // Upper cap on process interval, in case process has not been called in a long
35 // time. 35 // time.
36 const int64_t kMaxIntervalTimeMs = 30; 36 const int64_t kMaxIntervalTimeMs = 30;
37 37
38 } // namespace 38 } // namespace
39 39
40 // TODO(sprang): Move at least PacketQueue out to separate 40 // TODO(sprang): Move at least PacketQueue out to separate files, so that we can
41 // files, so that we can more easily test them. 41 // more easily test them.
42 42
43 namespace webrtc { 43 namespace webrtc {
44 namespace paced_sender { 44 namespace paced_sender {
45 struct Packet { 45 struct Packet {
46 Packet(RtpPacketSender::Priority priority, 46 Packet(RtpPacketSender::Priority priority,
47 uint32_t ssrc, 47 uint32_t ssrc,
48 uint16_t seq_number, 48 uint16_t seq_number,
49 int64_t capture_time_ms, 49 int64_t capture_time_ms,
50 int64_t enqueue_time_ms, 50 int64_t enqueue_time_ms,
51 size_t length_in_bytes, 51 size_t length_in_bytes,
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 rtc::CritScope cs(&critsect_); 555 rtc::CritScope cs(&critsect_);
556 pacing_factor_ = pacing_factor; 556 pacing_factor_ = pacing_factor;
557 } 557 }
558 558
559 void PacedSender::SetQueueTimeLimit(int limit_ms) { 559 void PacedSender::SetQueueTimeLimit(int limit_ms) {
560 rtc::CritScope cs(&critsect_); 560 rtc::CritScope cs(&critsect_);
561 queue_time_limit = limit_ms; 561 queue_time_limit = limit_ms;
562 } 562 }
563 563
564 } // namespace webrtc 564 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/paced_sender.h ('k') | webrtc/modules/pacing/pacer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698