OLD | NEW |
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 Loading... |
47 SendStatisticsProxy(Clock* clock, | 47 SendStatisticsProxy(Clock* clock, |
48 const VideoSendStream::Config& config, | 48 const VideoSendStream::Config& config, |
49 VideoEncoderConfig::ContentType content_type); | 49 VideoEncoderConfig::ContentType content_type); |
50 virtual ~SendStatisticsProxy(); | 50 virtual ~SendStatisticsProxy(); |
51 | 51 |
52 VideoSendStream::Stats GetStats(); | 52 VideoSendStream::Stats GetStats(); |
53 | 53 |
54 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, | 54 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, |
55 const CodecSpecificInfo* codec_info); | 55 const CodecSpecificInfo* codec_info); |
56 // Used to update incoming frame rate. | 56 // Used to update incoming frame rate. |
57 void OnIncomingFrame(int width, int height, bool is_cpu_restricted); | 57 void OnIncomingFrame(int width, int height); |
58 | 58 |
59 void SetCpuRestrictedResolution(bool cpu_restricted); | |
60 void OnCpuRestrictedResolutionChanged(bool cpu_restricted_resolution); | 59 void OnCpuRestrictedResolutionChanged(bool cpu_restricted_resolution); |
| 60 void OnQualityRestrictedResolutionChanged(bool restricted); |
| 61 void SetResolutionRestrictionStats(bool bandwidth, bool cpu); |
61 | 62 |
62 void OnEncoderStatsUpdate(uint32_t framerate, uint32_t bitrate); | 63 void OnEncoderStatsUpdate(uint32_t framerate, uint32_t bitrate); |
63 void OnSuspendChange(bool is_suspended); | 64 void OnSuspendChange(bool is_suspended); |
64 void OnInactiveSsrc(uint32_t ssrc); | 65 void OnInactiveSsrc(uint32_t ssrc); |
65 | 66 |
66 // Used to indicate change in content type, which may require a change in | 67 // Used to indicate change in content type, which may require a change in |
67 // how stats are collected and set the configured preferred media bitrate. | 68 // how stats are collected and set the configured preferred media bitrate. |
68 void OnEncoderReconfigured(const VideoEncoderConfig& encoder_config, | 69 void OnEncoderReconfigured(const VideoEncoderConfig& encoder_config, |
69 uint32_t preferred_bitrate_bps); | 70 uint32_t preferred_bitrate_bps); |
70 | 71 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 const VideoSendStream::Stats start_stats_; | 190 const VideoSendStream::Stats start_stats_; |
190 std::map<int, QpCounters> | 191 std::map<int, QpCounters> |
191 qp_counters_; // QP counters mapped by spatial idx. | 192 qp_counters_; // QP counters mapped by spatial idx. |
192 }; | 193 }; |
193 | 194 |
194 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); | 195 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); |
195 }; | 196 }; |
196 | 197 |
197 } // namespace webrtc | 198 } // namespace webrtc |
198 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ | 199 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ |
OLD | NEW |