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

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

Issue 2136533002: Only update codec type histogram if lifetime is long enough (10 sec). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 4 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/receive_statistics_proxy.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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 Clock* const clock_; 98 Clock* const clock_;
99 // Ownership of this object lies with the owner of the ReceiveStatisticsProxy 99 // Ownership of this object lies with the owner of the ReceiveStatisticsProxy
100 // instance. Lifetime is guaranteed to outlive |this|. 100 // instance. Lifetime is guaranteed to outlive |this|.
101 // TODO(tommi): In practice the config_ reference is only used for accessing 101 // TODO(tommi): In practice the config_ reference is only used for accessing
102 // config_.rtp.fec.ulpfec_payload_type. Instead of holding a pointer back, 102 // config_.rtp.fec.ulpfec_payload_type. Instead of holding a pointer back,
103 // we could just store the value of ulpfec_payload_type and change the 103 // we could just store the value of ulpfec_payload_type and change the
104 // ReceiveStatisticsProxy() ctor to accept a const& of Config (since we'll 104 // ReceiveStatisticsProxy() ctor to accept a const& of Config (since we'll
105 // then no longer store a pointer to the object). 105 // then no longer store a pointer to the object).
106 const VideoReceiveStream::Config& config_; 106 const VideoReceiveStream::Config& config_;
107 const int64_t start_ms_;
107 108
108 rtc::CriticalSection crit_; 109 rtc::CriticalSection crit_;
109 VideoReceiveStream::Stats stats_ GUARDED_BY(crit_); 110 VideoReceiveStream::Stats stats_ GUARDED_BY(crit_);
110 RateStatistics decode_fps_estimator_ GUARDED_BY(crit_); 111 RateStatistics decode_fps_estimator_ GUARDED_BY(crit_);
111 RateStatistics renders_fps_estimator_ GUARDED_BY(crit_); 112 RateStatistics renders_fps_estimator_ GUARDED_BY(crit_);
112 rtc::RateTracker render_fps_tracker_ GUARDED_BY(crit_); 113 rtc::RateTracker render_fps_tracker_ GUARDED_BY(crit_);
113 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_); 114 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_);
114 SampleCounter render_width_counter_ GUARDED_BY(crit_); 115 SampleCounter render_width_counter_ GUARDED_BY(crit_);
115 SampleCounter render_height_counter_ GUARDED_BY(crit_); 116 SampleCounter render_height_counter_ GUARDED_BY(crit_);
116 SampleCounter sync_offset_counter_ GUARDED_BY(crit_); 117 SampleCounter sync_offset_counter_ GUARDED_BY(crit_);
117 SampleCounter decode_time_counter_ GUARDED_BY(crit_); 118 SampleCounter decode_time_counter_ GUARDED_BY(crit_);
118 SampleCounter jitter_buffer_delay_counter_ GUARDED_BY(crit_); 119 SampleCounter jitter_buffer_delay_counter_ GUARDED_BY(crit_);
119 SampleCounter target_delay_counter_ GUARDED_BY(crit_); 120 SampleCounter target_delay_counter_ GUARDED_BY(crit_);
120 SampleCounter current_delay_counter_ GUARDED_BY(crit_); 121 SampleCounter current_delay_counter_ GUARDED_BY(crit_);
121 SampleCounter delay_counter_ GUARDED_BY(crit_); 122 SampleCounter delay_counter_ GUARDED_BY(crit_);
122 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); 123 ReportBlockStats report_block_stats_ GUARDED_BY(crit_);
123 QpCounters qp_counters_; // Only accessed on the decoding thread. 124 QpCounters qp_counters_; // Only accessed on the decoding thread.
124 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); 125 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_);
125 }; 126 };
126 127
127 } // namespace webrtc 128 } // namespace webrtc
128 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ 129 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/receive_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698