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

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

Issue 2783213002: Do not report quality limited resolution stats when quality scaler is disabled. (Closed)
Patch Set: rebase Created 3 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 virtual VideoSendStream::Stats GetStats(); 53 virtual VideoSendStream::Stats GetStats();
54 54
55 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, 55 virtual void OnSendEncodedImage(const EncodedImage& encoded_image,
56 const CodecSpecificInfo* codec_info); 56 const CodecSpecificInfo* codec_info);
57 // Used to update incoming frame rate. 57 // Used to update incoming frame rate.
58 void OnIncomingFrame(int width, int height); 58 void OnIncomingFrame(int width, int height);
59 59
60 void OnCpuRestrictedResolutionChanged(bool cpu_restricted_resolution); 60 void OnCpuRestrictedResolutionChanged(bool cpu_restricted_resolution);
61 void OnQualityRestrictedResolutionChanged(int num_quality_downscales); 61 void OnQualityRestrictedResolutionChanged(int num_quality_downscales);
62 void SetResolutionRestrictionStats(bool scaling_enabled, 62 void SetResolutionRestrictionStats(bool cpu_scaling_enabled,
63 bool quality_scaling_enabled,
63 bool cpu_restricted, 64 bool cpu_restricted,
64 int num_quality_downscales); 65 int num_quality_downscales);
65 66
66 void OnEncoderStatsUpdate(uint32_t framerate, uint32_t bitrate); 67 void OnEncoderStatsUpdate(uint32_t framerate, uint32_t bitrate);
67 void OnSuspendChange(bool is_suspended); 68 void OnSuspendChange(bool is_suspended);
68 void OnInactiveSsrc(uint32_t ssrc); 69 void OnInactiveSsrc(uint32_t ssrc);
69 70
70 // Used to indicate change in content type, which may require a change in 71 // Used to indicate change in content type, which may require a change in
71 // how stats are collected and set the configured preferred media bitrate. 72 // how stats are collected and set the configured preferred media bitrate.
72 void OnEncoderReconfigured(const VideoEncoderConfig& encoder_config, 73 void OnEncoderReconfigured(const VideoEncoderConfig& encoder_config,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 std::map<int, QpCounters> 217 std::map<int, QpCounters>
217 qp_counters_; // QP counters mapped by spatial idx. 218 qp_counters_; // QP counters mapped by spatial idx.
218 }; 219 };
219 220
220 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); 221 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_);
221 }; 222 };
222 223
223 } // namespace webrtc 224 } // namespace webrtc
224 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 225 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/send_statistics_proxy.cc » ('j') | webrtc/video/send_statistics_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698