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

Side by Side Diff: webrtc/tools/event_log_visualizer/analyzer.cc

Issue 2536753002: Relanding "Pass time constant to bwe smoothing filter." (Closed)
Patch Set: rebasing Created 4 years 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/test/mock_voe_channel_proxy.h ('k') | webrtc/video/video_send_stream.cc » ('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) 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 begin_time_ = first_timestamp; 442 begin_time_ = first_timestamp;
443 end_time_ = last_timestamp; 443 end_time_ = last_timestamp;
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 // TODO(minyue): remove this when old OnNetworkChanged is deprecated. See
453 // https://bugs.chromium.org/p/webrtc/issues/detail?id=6796
454 using CongestionController::Observer::OnNetworkChanged;
455
452 void OnNetworkChanged(uint32_t bitrate_bps, 456 void OnNetworkChanged(uint32_t bitrate_bps,
453 uint8_t fraction_loss, 457 uint8_t fraction_loss,
454 int64_t rtt_ms) override { 458 int64_t rtt_ms,
459 int64_t probing_interval_ms) override {
455 last_bitrate_bps_ = bitrate_bps; 460 last_bitrate_bps_ = bitrate_bps;
456 bitrate_updated_ = true; 461 bitrate_updated_ = true;
457 } 462 }
458 463
459 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, 464 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
460 uint32_t bitrate) override {} 465 uint32_t bitrate) override {}
461 466
462 uint32_t last_bitrate_bps() const { return last_bitrate_bps_; } 467 uint32_t last_bitrate_bps() const { return last_bitrate_bps_; }
463 bool GetAndResetBitrateUpdated() { 468 bool GetAndResetBitrateUpdated() {
464 bool bitrate_updated = bitrate_updated_; 469 bool bitrate_updated = bitrate_updated_;
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 point.y -= estimated_base_delay_ms; 1162 point.y -= estimated_base_delay_ms;
1158 // Add the data set to the plot. 1163 // Add the data set to the plot.
1159 plot->series_list_.push_back(std::move(time_series)); 1164 plot->series_list_.push_back(std::move(time_series));
1160 1165
1161 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1166 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1162 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); 1167 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin);
1163 plot->SetTitle("Network Delay Change."); 1168 plot->SetTitle("Network Delay Change.");
1164 } 1169 }
1165 } // namespace plotting 1170 } // namespace plotting
1166 } // namespace webrtc 1171 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/mock_voe_channel_proxy.h ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698