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

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

Issue 1406903002: Expose codec implementation names in stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const RTPVideoHeader* rtp_video_header); 47 const RTPVideoHeader* rtp_video_header);
48 // Used to update incoming frame rate. 48 // Used to update incoming frame rate.
49 void OnIncomingFrame(int width, int height); 49 void OnIncomingFrame(int width, int height);
50 50
51 // Used to update encode time of frames. 51 // Used to update encode time of frames.
52 void OnEncodedFrame(int encode_time_ms); 52 void OnEncodedFrame(int encode_time_ms);
53 53
54 // From VideoEncoderRateObserver. 54 // From VideoEncoderRateObserver.
55 void OnSetRates(uint32_t bitrate_bps, int framerate) override; 55 void OnSetRates(uint32_t bitrate_bps, int framerate) override;
56 56
57 void OnEncoderImplementationName(const char* implementation_name);
57 void OnOutgoingRate(uint32_t framerate, uint32_t bitrate); 58 void OnOutgoingRate(uint32_t framerate, uint32_t bitrate);
58 void OnSuspendChange(bool is_suspended); 59 void OnSuspendChange(bool is_suspended);
59 void OnInactiveSsrc(uint32_t ssrc); 60 void OnInactiveSsrc(uint32_t ssrc);
60 61
61 protected: 62 protected:
62 // From CpuOveruseMetricsObserver. 63 // From CpuOveruseMetricsObserver.
63 void CpuOveruseMetricsUpdated(const CpuOveruseMetrics& metrics) override; 64 void CpuOveruseMetricsUpdated(const CpuOveruseMetrics& metrics) override;
64 // From RtcpStatisticsCallback. 65 // From RtcpStatisticsCallback.
65 void StatisticsUpdated(const RtcpStatistics& statistics, 66 void StatisticsUpdated(const RtcpStatistics& statistics,
66 uint32_t ssrc) override; 67 uint32_t ssrc) override;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 SampleCounter input_width_counter_ GUARDED_BY(crit_); 132 SampleCounter input_width_counter_ GUARDED_BY(crit_);
132 SampleCounter input_height_counter_ GUARDED_BY(crit_); 133 SampleCounter input_height_counter_ GUARDED_BY(crit_);
133 SampleCounter sent_width_counter_ GUARDED_BY(crit_); 134 SampleCounter sent_width_counter_ GUARDED_BY(crit_);
134 SampleCounter sent_height_counter_ GUARDED_BY(crit_); 135 SampleCounter sent_height_counter_ GUARDED_BY(crit_);
135 SampleCounter encode_time_counter_ GUARDED_BY(crit_); 136 SampleCounter encode_time_counter_ GUARDED_BY(crit_);
136 BoolSampleCounter key_frame_counter_ GUARDED_BY(crit_); 137 BoolSampleCounter key_frame_counter_ GUARDED_BY(crit_);
137 }; 138 };
138 139
139 } // namespace webrtc 140 } // namespace webrtc
140 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 141 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698