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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 call_duration_s_ = static_cast<float>(end_time_ - begin_time_) / 1000000; | 444 call_duration_s_ = static_cast<float>(end_time_ - begin_time_) / 1000000; |
445 } | 445 } |
446 | 446 |
447 class BitrateObserver : public CongestionController::Observer, | 447 class BitrateObserver : public CongestionController::Observer, |
448 public RemoteBitrateObserver { | 448 public RemoteBitrateObserver { |
449 public: | 449 public: |
450 BitrateObserver() : last_bitrate_bps_(0), bitrate_updated_(false) {} | 450 BitrateObserver() : last_bitrate_bps_(0), bitrate_updated_(false) {} |
451 | 451 |
452 void OnNetworkChanged(uint32_t bitrate_bps, | 452 void OnNetworkChanged(uint32_t bitrate_bps, |
453 uint8_t fraction_loss, | 453 uint8_t fraction_loss, |
454 int64_t rtt_ms, | 454 int64_t rtt_ms) override { |
455 int64_t probing_interval_ms) override { | |
456 last_bitrate_bps_ = bitrate_bps; | 455 last_bitrate_bps_ = bitrate_bps; |
457 bitrate_updated_ = true; | 456 bitrate_updated_ = true; |
458 } | 457 } |
459 | 458 |
460 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 459 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
461 uint32_t bitrate) override {} | 460 uint32_t bitrate) override {} |
462 | 461 |
463 uint32_t last_bitrate_bps() const { return last_bitrate_bps_; } | 462 uint32_t last_bitrate_bps() const { return last_bitrate_bps_; } |
464 bool GetAndResetBitrateUpdated() { | 463 bool GetAndResetBitrateUpdated() { |
465 bool bitrate_updated = bitrate_updated_; | 464 bool bitrate_updated = bitrate_updated_; |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 point.y -= estimated_base_delay_ms; | 1155 point.y -= estimated_base_delay_ms; |
1157 // Add the data set to the plot. | 1156 // Add the data set to the plot. |
1158 plot->series_list_.push_back(std::move(time_series)); | 1157 plot->series_list_.push_back(std::move(time_series)); |
1159 | 1158 |
1160 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1159 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
1161 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); | 1160 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); |
1162 plot->SetTitle("Network Delay Change."); | 1161 plot->SetTitle("Network Delay Change."); |
1163 } | 1162 } |
1164 } // namespace plotting | 1163 } // namespace plotting |
1165 } // namespace webrtc | 1164 } // namespace webrtc |
OLD | NEW |