| OLD | NEW |
| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 delay_based_bitrate_bps_(0), | 67 delay_based_bitrate_bps_(0), |
| 68 time_last_decrease_ms_(0), | 68 time_last_decrease_ms_(0), |
| 69 first_report_time_ms_(-1), | 69 first_report_time_ms_(-1), |
| 70 initially_lost_packets_(0), | 70 initially_lost_packets_(0), |
| 71 bitrate_at_2_seconds_kbps_(0), | 71 bitrate_at_2_seconds_kbps_(0), |
| 72 uma_update_state_(kNoUpdate), | 72 uma_update_state_(kNoUpdate), |
| 73 rampup_uma_stats_updated_(kNumUmaRampupMetrics, false), | 73 rampup_uma_stats_updated_(kNumUmaRampupMetrics, false), |
| 74 event_log_(event_log), | 74 event_log_(event_log), |
| 75 last_rtc_event_log_ms_(-1), | 75 last_rtc_event_log_ms_(-1), |
| 76 in_timeout_experiment_(webrtc::field_trial::FindFullName( | 76 in_timeout_experiment_(webrtc::field_trial::FindFullName( |
| 77 "WebRTC-SendSideBwe") == "Enabled") { | 77 "WebRTC-FeedbackTimeout") == "Enabled") { |
| 78 RTC_DCHECK(event_log); | 78 RTC_DCHECK(event_log); |
| 79 } | 79 } |
| 80 | 80 |
| 81 SendSideBandwidthEstimation::~SendSideBandwidthEstimation() {} | 81 SendSideBandwidthEstimation::~SendSideBandwidthEstimation() {} |
| 82 | 82 |
| 83 void SendSideBandwidthEstimation::SetBitrates(int send_bitrate, | 83 void SendSideBandwidthEstimation::SetBitrates(int send_bitrate, |
| 84 int min_bitrate, | 84 int min_bitrate, |
| 85 int max_bitrate) { | 85 int max_bitrate) { |
| 86 if (send_bitrate > 0) | 86 if (send_bitrate > 0) |
| 87 SetSendBitrate(send_bitrate); | 87 SetSendBitrate(send_bitrate); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000 | 335 LOG(LS_WARNING) << "Estimated available bandwidth " << bitrate / 1000 |
| 336 << " kbps is below configured min bitrate " | 336 << " kbps is below configured min bitrate " |
| 337 << min_bitrate_configured_ / 1000 << " kbps."; | 337 << min_bitrate_configured_ / 1000 << " kbps."; |
| 338 last_low_bitrate_log_ms_ = now_ms; | 338 last_low_bitrate_log_ms_ = now_ms; |
| 339 } | 339 } |
| 340 bitrate = min_bitrate_configured_; | 340 bitrate = min_bitrate_configured_; |
| 341 } | 341 } |
| 342 return bitrate; | 342 return bitrate; |
| 343 } | 343 } |
| 344 } // namespace webrtc | 344 } // namespace webrtc |
| OLD | NEW |