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

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

Issue 2646073004: Make RTX pt/apt reconfigurable by calling WebRtcVideoChannel2::SetRecvParameters. (Closed)
Patch Set: Created 3 years, 11 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
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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 return -1; 485 return -1;
483 return static_cast<int>(sum / num_samples); 486 return static_cast<int>(sum / num_samples);
484 } 487 }
485 488
486 void ReceiveStatisticsProxy::SampleCounter::Reset() { 489 void ReceiveStatisticsProxy::SampleCounter::Reset() {
487 num_samples = 0; 490 num_samples = 0;
488 sum = 0; 491 sum = 0;
489 } 492 }
490 493
491 } // namespace webrtc 494 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698