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

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

Issue 2253563002: Add codec name to CodecSpecificInfo and get the codec name stats from there instead. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix fake_encoder.cc 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/test/fake_encoder.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 VideoEncoderConfig::ContentType content_type); 45 VideoEncoderConfig::ContentType content_type);
46 virtual ~SendStatisticsProxy(); 46 virtual ~SendStatisticsProxy();
47 47
48 VideoSendStream::Stats GetStats(); 48 VideoSendStream::Stats GetStats();
49 49
50 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, 50 virtual void OnSendEncodedImage(const EncodedImage& encoded_image,
51 const CodecSpecificInfo* codec_info); 51 const CodecSpecificInfo* codec_info);
52 // Used to update incoming frame rate. 52 // Used to update incoming frame rate.
53 void OnIncomingFrame(int width, int height); 53 void OnIncomingFrame(int width, int height);
54 54
55 void OnEncoderStatsUpdate(uint32_t framerate, 55 void OnEncoderStatsUpdate(uint32_t framerate, uint32_t bitrate);
56 uint32_t bitrate,
57 const std::string& encoder_name);
58 void OnSuspendChange(bool is_suspended); 56 void OnSuspendChange(bool is_suspended);
59 void OnInactiveSsrc(uint32_t ssrc); 57 void OnInactiveSsrc(uint32_t ssrc);
60 58
61 // Used to indicate change in content type, which may require a change in 59 // Used to indicate change in content type, which may require a change in
62 // how stats are collected. 60 // how stats are collected.
63 void SetContentType(VideoEncoderConfig::ContentType content_type); 61 void SetContentType(VideoEncoderConfig::ContentType content_type);
64 62
65 // Used to update the encoder target rate. 63 // Used to update the encoder target rate.
66 void OnSetEncoderTargetRate(uint32_t bitrate_bps); 64 void OnSetEncoderTargetRate(uint32_t bitrate_bps);
67 65
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const VideoSendStream::Stats start_stats_; 179 const VideoSendStream::Stats start_stats_;
182 std::map<int, QpCounters> 180 std::map<int, QpCounters>
183 qp_counters_; // QP counters mapped by spatial idx. 181 qp_counters_; // QP counters mapped by spatial idx.
184 }; 182 };
185 183
186 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); 184 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_);
187 }; 185 };
188 186
189 } // namespace webrtc 187 } // namespace webrtc
190 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 188 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/test/fake_encoder.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698