| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 static const int kStatsTimeoutMs; | 43 static const int kStatsTimeoutMs; |
| 44 // Number of required samples to be collected before a metric is added | 44 // Number of required samples to be collected before a metric is added |
| 45 // to a rtc histogram. | 45 // to a rtc histogram. |
| 46 static const int kMinRequiredMetricsSamples = 200; | 46 static const int kMinRequiredMetricsSamples = 200; |
| 47 | 47 |
| 48 SendStatisticsProxy(Clock* clock, | 48 SendStatisticsProxy(Clock* clock, |
| 49 const VideoSendStream::Config& config, | 49 const VideoSendStream::Config& config, |
| 50 VideoEncoderConfig::ContentType content_type); | 50 VideoEncoderConfig::ContentType content_type); |
| 51 virtual ~SendStatisticsProxy(); | 51 virtual ~SendStatisticsProxy(); |
| 52 | 52 |
| 53 virtual VideoSendStream::Stats GetStats(); | 53 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 scaling_enabled, |
| 63 bool cpu_restricted, | 63 bool cpu_restricted, |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 RateAccCounter rtx_byte_counter_; | 205 RateAccCounter rtx_byte_counter_; |
| 206 RateAccCounter padding_byte_counter_; | 206 RateAccCounter padding_byte_counter_; |
| 207 RateAccCounter retransmit_byte_counter_; | 207 RateAccCounter retransmit_byte_counter_; |
| 208 RateAccCounter fec_byte_counter_; | 208 RateAccCounter fec_byte_counter_; |
| 209 int64_t first_rtcp_stats_time_ms_; | 209 int64_t first_rtcp_stats_time_ms_; |
| 210 int64_t first_rtp_stats_time_ms_; | 210 int64_t first_rtp_stats_time_ms_; |
| 211 BoolSampleCounter paused_time_counter_; | 211 BoolSampleCounter paused_time_counter_; |
| 212 TargetRateUpdates target_rate_updates_; | 212 TargetRateUpdates target_rate_updates_; |
| 213 ReportBlockStats report_block_stats_; | 213 ReportBlockStats report_block_stats_; |
| 214 const VideoSendStream::Stats start_stats_; | 214 const VideoSendStream::Stats start_stats_; |
| 215 | |
| 216 std::map<int, QpCounters> | 215 std::map<int, QpCounters> |
| 217 qp_counters_; // QP counters mapped by spatial idx. | 216 qp_counters_; // QP counters mapped by spatial idx. |
| 218 }; | 217 }; |
| 219 | 218 |
| 220 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); | 219 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); |
| 221 }; | 220 }; |
| 222 | 221 |
| 223 } // namespace webrtc | 222 } // namespace webrtc |
| 224 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ | 223 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ |
| OLD | NEW |