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

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

Issue 1264693003: Add QP stats for sent video streams to StatsReport. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 private: 101 private:
102 int sum; 102 int sum;
103 int num_samples; 103 int num_samples;
104 }; 104 };
105 struct StatsUpdateTimes { 105 struct StatsUpdateTimes {
106 StatsUpdateTimes() : resolution_update_ms(0) {} 106 StatsUpdateTimes() : resolution_update_ms(0) {}
107 int64_t resolution_update_ms; 107 int64_t resolution_update_ms;
108 int64_t bitrate_update_ms; 108 int64_t bitrate_update_ms;
109 }; 109 };
110 struct QpCounters {
111 SampleCounter vp8;
112 };
110 void PurgeOldStats() EXCLUSIVE_LOCKS_REQUIRED(crit_); 113 void PurgeOldStats() EXCLUSIVE_LOCKS_REQUIRED(crit_);
111 VideoSendStream::StreamStats* GetStatsEntry(uint32_t ssrc) 114 VideoSendStream::StreamStats* GetStatsEntry(uint32_t ssrc)
112 EXCLUSIVE_LOCKS_REQUIRED(crit_); 115 EXCLUSIVE_LOCKS_REQUIRED(crit_);
113 void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); 116 void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_);
114 117
115 Clock* const clock_; 118 Clock* const clock_;
116 const VideoSendStream::Config config_; 119 const VideoSendStream::Config config_;
117 mutable rtc::CriticalSection crit_; 120 mutable rtc::CriticalSection crit_;
118 VideoSendStream::Stats stats_ GUARDED_BY(crit_); 121 VideoSendStream::Stats stats_ GUARDED_BY(crit_);
119 rtc::RateTracker input_frame_rate_tracker_ GUARDED_BY(crit_); 122 rtc::RateTracker input_frame_rate_tracker_ GUARDED_BY(crit_);
120 rtc::RateTracker input_frame_rate_tracker_total_ GUARDED_BY(crit_); 123 rtc::RateTracker input_frame_rate_tracker_total_ GUARDED_BY(crit_);
121 rtc::RateTracker sent_frame_rate_tracker_total_ GUARDED_BY(crit_); 124 rtc::RateTracker sent_frame_rate_tracker_total_ GUARDED_BY(crit_);
122 uint32_t last_sent_frame_timestamp_ GUARDED_BY(crit_); 125 uint32_t last_sent_frame_timestamp_ GUARDED_BY(crit_);
123 std::map<uint32_t, StatsUpdateTimes> update_times_ GUARDED_BY(crit_); 126 std::map<uint32_t, StatsUpdateTimes> update_times_ GUARDED_BY(crit_);
124 127
125 int max_sent_width_per_timestamp_ GUARDED_BY(crit_); 128 int max_sent_width_per_timestamp_ GUARDED_BY(crit_);
126 int max_sent_height_per_timestamp_ GUARDED_BY(crit_); 129 int max_sent_height_per_timestamp_ GUARDED_BY(crit_);
127 SampleCounter input_width_counter_ GUARDED_BY(crit_); 130 SampleCounter input_width_counter_ GUARDED_BY(crit_);
128 SampleCounter input_height_counter_ GUARDED_BY(crit_); 131 SampleCounter input_height_counter_ GUARDED_BY(crit_);
129 SampleCounter sent_width_counter_ GUARDED_BY(crit_); 132 SampleCounter sent_width_counter_ GUARDED_BY(crit_);
130 SampleCounter sent_height_counter_ GUARDED_BY(crit_); 133 SampleCounter sent_height_counter_ GUARDED_BY(crit_);
131 SampleCounter encode_time_counter_ GUARDED_BY(crit_); 134 SampleCounter encode_time_counter_ GUARDED_BY(crit_);
135 std::map<uint32_t, QpCounters> qp_counters_ GUARDED_BY(crit_);
stefan-webrtc 2015/09/03 12:01:21 Comment on what the uint32_t is, i.e., what this i
åsapersson 2015/09/03 14:40:48 Done.
132 }; 136 };
133 137
134 } // namespace webrtc 138 } // namespace webrtc
135 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 139 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698