OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 RTC_DCHECK(ssrcs); | 376 RTC_DCHECK(ssrcs); |
377 RTC_DCHECK(bitrate_bps); | 377 RTC_DCHECK(bitrate_bps); |
378 if (!rate_control_.ValidEstimate()) | 378 if (!rate_control_.ValidEstimate()) |
379 return false; | 379 return false; |
380 | 380 |
381 *ssrcs = {kFixedSsrc}; | 381 *ssrcs = {kFixedSsrc}; |
382 *bitrate_bps = rate_control_.LatestEstimate(); | 382 *bitrate_bps = rate_control_.LatestEstimate(); |
383 return true; | 383 return true; |
384 } | 384 } |
385 | 385 |
| 386 void DelayBasedBwe::SetStartBitrate(int start_bitrate_bps) { |
| 387 LOG(LS_WARNING) << "BWE Setting start bitrate to: " << start_bitrate_bps; |
| 388 rate_control_.SetStartBitrate(start_bitrate_bps); |
| 389 } |
| 390 |
386 void DelayBasedBwe::SetMinBitrate(int min_bitrate_bps) { | 391 void DelayBasedBwe::SetMinBitrate(int min_bitrate_bps) { |
387 // Called from both the configuration thread and the network thread. Shouldn't | 392 // Called from both the configuration thread and the network thread. Shouldn't |
388 // be called from the network thread in the future. | 393 // be called from the network thread in the future. |
389 rate_control_.SetMinBitrate(min_bitrate_bps); | 394 rate_control_.SetMinBitrate(min_bitrate_bps); |
390 } | 395 } |
391 | 396 |
392 int64_t DelayBasedBwe::GetProbingIntervalMs() const { | 397 int64_t DelayBasedBwe::GetProbingIntervalMs() const { |
393 return probing_interval_estimator_.GetIntervalMs(); | 398 return probing_interval_estimator_.GetIntervalMs(); |
394 } | 399 } |
395 } // namespace webrtc | 400 } // namespace webrtc |
OLD | NEW |