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

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

Issue 2654163006: Reland of Make RTX pt/apt reconfigurable by calling WebRtcVideoChannel2::SetRecvParameters. (Closed)
Patch Set: Update transition code. 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 num_bad_states_(0), 64 num_bad_states_(0),
65 num_certain_states_(0), 65 num_certain_states_(0),
66 // 1000ms window, scale 1000 for ms to s. 66 // 1000ms window, scale 1000 for ms to s.
67 decode_fps_estimator_(1000, 1000), 67 decode_fps_estimator_(1000, 1000),
68 renders_fps_estimator_(1000, 1000), 68 renders_fps_estimator_(1000, 1000),
69 render_fps_tracker_(100, 10u), 69 render_fps_tracker_(100, 10u),
70 render_pixel_tracker_(100, 10u), 70 render_pixel_tracker_(100, 10u),
71 freq_offset_counter_(clock, nullptr, kFreqOffsetProcessIntervalMs), 71 freq_offset_counter_(clock, nullptr, kFreqOffsetProcessIntervalMs),
72 first_report_block_time_ms_(-1) { 72 first_report_block_time_ms_(-1) {
73 stats_.ssrc = config_.rtp.remote_ssrc; 73 stats_.ssrc = config_.rtp.remote_ssrc;
74 for (auto it : config_.rtp.rtx) 74 // TODO(brandtr): Replace |rtx_stats_| with a single instance of
75 rtx_stats_[it.second.ssrc] = StreamDataCounters(); 75 // StreamDataCounters.
76 if (config_.rtp.rtx_ssrc) {
77 rtx_stats_[config_.rtp.rtx_ssrc] = StreamDataCounters();
78 }
76 } 79 }
77 80
78 ReceiveStatisticsProxy::~ReceiveStatisticsProxy() { 81 ReceiveStatisticsProxy::~ReceiveStatisticsProxy() {
79 UpdateHistograms(); 82 UpdateHistograms();
80 } 83 }
81 84
82 void ReceiveStatisticsProxy::UpdateHistograms() { 85 void ReceiveStatisticsProxy::UpdateHistograms() {
83 RTC_HISTOGRAM_COUNTS_100000( 86 RTC_HISTOGRAM_COUNTS_100000(
84 "WebRTC.Video.ReceiveStreamLifetimeInSeconds", 87 "WebRTC.Video.ReceiveStreamLifetimeInSeconds",
85 (clock_->TimeInMilliseconds() - start_ms_) / 1000); 88 (clock_->TimeInMilliseconds() - start_ms_) / 1000);
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 return -1; 486 return -1;
484 return static_cast<int>(sum / num_samples); 487 return static_cast<int>(sum / num_samples);
485 } 488 }
486 489
487 void ReceiveStatisticsProxy::SampleCounter::Reset() { 490 void ReceiveStatisticsProxy::SampleCounter::Reset() {
488 num_samples = 0; 491 num_samples = 0;
489 sum = 0; 492 sum = 0;
490 } 493 }
491 494
492 } // namespace webrtc 495 } // 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