OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 */ |
11 | 11 |
12 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/bbr.h" | 12 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/bbr.h" |
13 | 13 |
14 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_ filter.h" | 14 #include "webrtc/modules/remote_bitrate_estimator/test/estimators/max_bandwidth_ filter.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 namespace testing { | 17 namespace testing { |
18 namespace bwe { | 18 namespace bwe { |
19 namespace { | 19 namespace { |
20 const int kFeedbackIntervalsMs = 100; | 20 const int kFeedbackIntervalsMs = 100; |
21 // BBR uses this value to double sending rate each round trip. Design document | 21 // BBR uses this value to double sending rate each round trip. Design document |
22 // suggests using this value. | 22 // suggests using this value. |
23 const float kHighGain = 2.885f; | 23 const float kHighGain = 2.885f; |
24 // BBR uses this value to drain queues created during STARTUP in one round trip | 24 // BBR uses this value to drain queues created during STARTUP in one round trip |
25 // time. | 25 // time. |
26 const float kDrainGain = 1 / kHighGain; | 26 const float kDrainGain = 1 / kHighGain; |
27 // kStartupGrowthTarget and kMaxRoundsWithoutGrowth are chosen from | 27 // kStartupGrowthTarget and kMaxRoundsWithoutGrowth are chosen from |
28 // experiments,according to design document. | 28 // experiments,according to the design document. |
terelius
2017/07/12 10:34:50
Nit: ", "
gnish1
2017/07/12 12:23:18
Done.
| |
29 const float kStartupGrowthTarget = 1.25f; | 29 const float kStartupGrowthTarget = 1.25f; |
30 const int kMaxRoundsWithoutGrowth = 3; | 30 const int kMaxRoundsWithoutGrowth = 3; |
31 } // namespace | 31 } // namespace |
32 | 32 |
33 BbrBweSender::BbrBweSender(Clock* clock) | 33 BbrBweSender::BbrBweSender(Clock* clock) |
34 : BweSender(0), | 34 : BweSender(0), |
35 clock_(clock), | 35 clock_(clock), |
36 mode_(STARTUP), | 36 mode_(STARTUP), |
37 max_bandwidth_filter_(new MaxBandwidthFilter()), | 37 max_bandwidth_filter_(new MaxBandwidthFilter()), |
38 round_count_(0), | 38 round_count_(0), |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 | 134 |
135 void BbrBweReceiver::ReceivePacket(int64_t arrival_time_ms, | 135 void BbrBweReceiver::ReceivePacket(int64_t arrival_time_ms, |
136 const MediaPacket& media_packet) {} | 136 const MediaPacket& media_packet) {} |
137 | 137 |
138 FeedbackPacket* BbrBweReceiver::GetFeedback(int64_t now_ms) { | 138 FeedbackPacket* BbrBweReceiver::GetFeedback(int64_t now_ms) { |
139 return nullptr; | 139 return nullptr; |
140 } | 140 } |
141 } // namespace bwe | 141 } // namespace bwe |
142 } // namespace testing | 142 } // namespace testing |
143 } // namespace webrtc | 143 } // namespace webrtc |
OLD | NEW |