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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // how stats are collected. | 63 // how stats are collected. |
64 void SetContentType(VideoEncoderConfig::ContentType content_type); | 64 void SetContentType(VideoEncoderConfig::ContentType content_type); |
65 | 65 |
66 // Implements VideoEncoderRateObserver. | 66 // Implements VideoEncoderRateObserver. |
67 void OnSetRates(uint32_t bitrate_bps, int framerate) override; | 67 void OnSetRates(uint32_t bitrate_bps, int framerate) override; |
68 | 68 |
69 // Implements CpuOveruseMetricsObserver. | 69 // Implements CpuOveruseMetricsObserver. |
70 void OnEncodedFrameTimeMeasured(int encode_time_ms, | 70 void OnEncodedFrameTimeMeasured(int encode_time_ms, |
71 const CpuOveruseMetrics& metrics) override; | 71 const CpuOveruseMetrics& metrics) override; |
72 | 72 |
| 73 int GetSendFrameRate() const; |
| 74 |
73 protected: | 75 protected: |
74 // From RtcpStatisticsCallback. | 76 // From RtcpStatisticsCallback. |
75 void StatisticsUpdated(const RtcpStatistics& statistics, | 77 void StatisticsUpdated(const RtcpStatistics& statistics, |
76 uint32_t ssrc) override; | 78 uint32_t ssrc) override; |
77 void CNameChanged(const char* cname, uint32_t ssrc) override; | 79 void CNameChanged(const char* cname, uint32_t ssrc) override; |
78 // From RtcpPacketTypeCounterObserver. | 80 // From RtcpPacketTypeCounterObserver. |
79 void RtcpPacketTypesCounterUpdated( | 81 void RtcpPacketTypesCounterUpdated( |
80 uint32_t ssrc, | 82 uint32_t ssrc, |
81 const RtcpPacketTypeCounter& packet_counter) override; | 83 const RtcpPacketTypeCounter& packet_counter) override; |
82 // From StreamDataCountersCallback. | 84 // From StreamDataCountersCallback. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const VideoSendStream::Stats start_stats_; | 181 const VideoSendStream::Stats start_stats_; |
180 std::map<int, QpCounters> | 182 std::map<int, QpCounters> |
181 qp_counters_; // QP counters mapped by spatial idx. | 183 qp_counters_; // QP counters mapped by spatial idx. |
182 }; | 184 }; |
183 | 185 |
184 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); | 186 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); |
185 }; | 187 }; |
186 | 188 |
187 } // namespace webrtc | 189 } // namespace webrtc |
188 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ | 190 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ |
OLD | NEW |