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

Side by Side Diff: webrtc/video/receive_statistics_proxy.cc

Issue 2649323010: Revert of Make RTX pt/apt reconfigurable by calling WebRtcVideoChannel2::SetRecvParameters. (Closed)
Patch Set: Created 3 years, 10 months 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/video/end_to_end_tests.cc ('k') | webrtc/video/rtp_stream_receiver.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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // 1000ms window, scale 1000 for ms to s. 71 // 1000ms window, scale 1000 for ms to s.
72 decode_fps_estimator_(1000, 1000), 72 decode_fps_estimator_(1000, 1000),
73 renders_fps_estimator_(1000, 1000), 73 renders_fps_estimator_(1000, 1000),
74 render_fps_tracker_(100, 10u), 74 render_fps_tracker_(100, 10u),
75 render_pixel_tracker_(100, 10u), 75 render_pixel_tracker_(100, 10u),
76 freq_offset_counter_(clock, nullptr, kFreqOffsetProcessIntervalMs), 76 freq_offset_counter_(clock, nullptr, kFreqOffsetProcessIntervalMs),
77 first_report_block_time_ms_(-1), 77 first_report_block_time_ms_(-1),
78 avg_rtt_ms_(0), 78 avg_rtt_ms_(0),
79 frame_window_accumulated_bytes_(0) { 79 frame_window_accumulated_bytes_(0) {
80 stats_.ssrc = config_.rtp.remote_ssrc; 80 stats_.ssrc = config_.rtp.remote_ssrc;
81 // TODO(brandtr): Replace |rtx_stats_| with a single instance of 81 for (auto it : config_.rtp.rtx)
82 // StreamDataCounters. 82 rtx_stats_[it.second.ssrc] = StreamDataCounters();
83 if (config_.rtp.rtx_ssrc) {
84 rtx_stats_[config_.rtp.rtx_ssrc] = StreamDataCounters();
85 }
86 } 83 }
87 84
88 ReceiveStatisticsProxy::~ReceiveStatisticsProxy() { 85 ReceiveStatisticsProxy::~ReceiveStatisticsProxy() {
89 UpdateHistograms(); 86 UpdateHistograms();
90 } 87 }
91 88
92 void ReceiveStatisticsProxy::UpdateHistograms() { 89 void ReceiveStatisticsProxy::UpdateHistograms() {
93 RTC_HISTOGRAM_COUNTS_100000( 90 RTC_HISTOGRAM_COUNTS_100000(
94 "WebRTC.Video.ReceiveStreamLifetimeInSeconds", 91 "WebRTC.Video.ReceiveStreamLifetimeInSeconds",
95 (clock_->TimeInMilliseconds() - start_ms_) / 1000); 92 (clock_->TimeInMilliseconds() - start_ms_) / 1000);
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 sum = 0; 533 sum = 0;
537 } 534 }
538 535
539 void ReceiveStatisticsProxy::OnRttUpdate(int64_t avg_rtt_ms, 536 void ReceiveStatisticsProxy::OnRttUpdate(int64_t avg_rtt_ms,
540 int64_t max_rtt_ms) { 537 int64_t max_rtt_ms) {
541 rtc::CritScope lock(&crit_); 538 rtc::CritScope lock(&crit_);
542 avg_rtt_ms_ = avg_rtt_ms; 539 avg_rtt_ms_ = avg_rtt_ms;
543 } 540 }
544 541
545 } // namespace webrtc 542 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/rtp_stream_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698