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

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

Issue 1250203002: Add encode and decode time to histograms stats: (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: added todo Created 5 years, 5 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/receive_statistics_proxy.cc ('k') | webrtc/video/send_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 SendStatisticsProxy(Clock* clock, const VideoSendStream::Config& config); 42 SendStatisticsProxy(Clock* clock, const VideoSendStream::Config& config);
43 virtual ~SendStatisticsProxy(); 43 virtual ~SendStatisticsProxy();
44 44
45 VideoSendStream::Stats GetStats(); 45 VideoSendStream::Stats GetStats();
46 46
47 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, 47 virtual void OnSendEncodedImage(const EncodedImage& encoded_image,
48 const RTPVideoHeader* rtp_video_header); 48 const RTPVideoHeader* rtp_video_header);
49 // Used to update incoming frame rate. 49 // Used to update incoming frame rate.
50 void OnIncomingFrame(int width, int height); 50 void OnIncomingFrame(int width, int height);
51 51
52 // Used to update encode time of frames.
53 void OnEncodedFrame(int encode_time_ms);
54
52 // From VideoEncoderRateObserver. 55 // From VideoEncoderRateObserver.
53 void OnSetRates(uint32_t bitrate_bps, int framerate) override; 56 void OnSetRates(uint32_t bitrate_bps, int framerate) override;
54 57
55 void OnInactiveSsrc(uint32_t ssrc); 58 void OnInactiveSsrc(uint32_t ssrc);
56 59
57 protected: 60 protected:
58 // From CpuOveruseMetricsObserver. 61 // From CpuOveruseMetricsObserver.
59 void CpuOveruseMetricsUpdated(const CpuOveruseMetrics& metrics) override; 62 void CpuOveruseMetricsUpdated(const CpuOveruseMetrics& metrics) override;
60 // From RtcpStatisticsCallback. 63 // From RtcpStatisticsCallback.
61 void StatisticsUpdated(const RtcpStatistics& statistics, 64 void StatisticsUpdated(const RtcpStatistics& statistics,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 rtc::RateTracker sent_frame_rate_tracker_total_ GUARDED_BY(crit_); 121 rtc::RateTracker sent_frame_rate_tracker_total_ GUARDED_BY(crit_);
119 uint32_t last_sent_frame_timestamp_ GUARDED_BY(crit_); 122 uint32_t last_sent_frame_timestamp_ GUARDED_BY(crit_);
120 std::map<uint32_t, StatsUpdateTimes> update_times_ GUARDED_BY(crit_); 123 std::map<uint32_t, StatsUpdateTimes> update_times_ GUARDED_BY(crit_);
121 124
122 int max_sent_width_per_timestamp_ GUARDED_BY(crit_); 125 int max_sent_width_per_timestamp_ GUARDED_BY(crit_);
123 int max_sent_height_per_timestamp_ GUARDED_BY(crit_); 126 int max_sent_height_per_timestamp_ GUARDED_BY(crit_);
124 SampleCounter input_width_counter_ GUARDED_BY(crit_); 127 SampleCounter input_width_counter_ GUARDED_BY(crit_);
125 SampleCounter input_height_counter_ GUARDED_BY(crit_); 128 SampleCounter input_height_counter_ GUARDED_BY(crit_);
126 SampleCounter sent_width_counter_ GUARDED_BY(crit_); 129 SampleCounter sent_width_counter_ GUARDED_BY(crit_);
127 SampleCounter sent_height_counter_ GUARDED_BY(crit_); 130 SampleCounter sent_height_counter_ GUARDED_BY(crit_);
131 SampleCounter encode_time_counter_ GUARDED_BY(crit_);
128 }; 132 };
129 133
130 } // namespace webrtc 134 } // namespace webrtc
131 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 135 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/video/receive_statistics_proxy.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698