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

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

Issue 1900193004: Remove VCMPacketizationCallback (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed offline comments. Created 4 years, 8 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 VideoEncoderConfig::ContentType content_type); 46 VideoEncoderConfig::ContentType content_type);
47 virtual ~SendStatisticsProxy(); 47 virtual ~SendStatisticsProxy();
48 48
49 VideoSendStream::Stats GetStats(); 49 VideoSendStream::Stats GetStats();
50 50
51 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, 51 virtual void OnSendEncodedImage(const EncodedImage& encoded_image,
52 const CodecSpecificInfo* codec_info); 52 const CodecSpecificInfo* codec_info);
53 // Used to update incoming frame rate. 53 // Used to update incoming frame rate.
54 void OnIncomingFrame(int width, int height); 54 void OnIncomingFrame(int width, int height);
55 55
56 void OnEncoderImplementationName(const char* implementation_name); 56 void OnOutgoingRate(uint32_t framerate,
57 void OnOutgoingRate(uint32_t framerate, uint32_t bitrate); 57 uint32_t bitrate,
58 std::string && encoder_name);
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 // Used to indicate change in content type, which may require a change in 62 // Used to indicate change in content type, which may require a change in
62 // how stats are collected. 63 // how stats are collected.
63 void SetContentType(VideoEncoderConfig::ContentType content_type); 64 void SetContentType(VideoEncoderConfig::ContentType content_type);
64 65
65 // Implements VideoEncoderRateObserver. 66 // Implements VideoEncoderRateObserver.
66 void OnSetRates(uint32_t bitrate_bps, int framerate) override; 67 void OnSetRates(uint32_t bitrate_bps, int framerate) override;
67 68
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const VideoSendStream::Stats start_stats_; 179 const VideoSendStream::Stats start_stats_;
179 std::map<int, QpCounters> 180 std::map<int, QpCounters>
180 qp_counters_; // QP counters mapped by spatial idx. 181 qp_counters_; // QP counters mapped by spatial idx.
181 }; 182 };
182 183
183 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); 184 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_);
184 }; 185 };
185 186
186 } // namespace webrtc 187 } // namespace webrtc
187 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 188 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698