| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 VideoEncoderConfig::ContentType content_type); | 45 VideoEncoderConfig::ContentType content_type); |
| 46 virtual ~SendStatisticsProxy(); | 46 virtual ~SendStatisticsProxy(); |
| 47 | 47 |
| 48 VideoSendStream::Stats GetStats(); | 48 VideoSendStream::Stats GetStats(); |
| 49 | 49 |
| 50 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, | 50 virtual void OnSendEncodedImage(const EncodedImage& encoded_image, |
| 51 const CodecSpecificInfo* codec_info); | 51 const CodecSpecificInfo* codec_info); |
| 52 // Used to update incoming frame rate. | 52 // Used to update incoming frame rate. |
| 53 void OnIncomingFrame(int width, int height); | 53 void OnIncomingFrame(int width, int height); |
| 54 | 54 |
| 55 void OnEncoderStatsUpdate(uint32_t framerate, | 55 void OnEncoderStatsUpdate(uint32_t framerate, uint32_t bitrate); |
| 56 uint32_t bitrate, | |
| 57 const std::string& encoder_name); | |
| 58 void OnSuspendChange(bool is_suspended); | 56 void OnSuspendChange(bool is_suspended); |
| 59 void OnInactiveSsrc(uint32_t ssrc); | 57 void OnInactiveSsrc(uint32_t ssrc); |
| 60 | 58 |
| 61 // Used to indicate change in content type, which may require a change in | 59 // Used to indicate change in content type, which may require a change in |
| 62 // how stats are collected. | 60 // how stats are collected. |
| 63 void SetContentType(VideoEncoderConfig::ContentType content_type); | 61 void SetContentType(VideoEncoderConfig::ContentType content_type); |
| 64 | 62 |
| 65 // Used to update the encoder target rate. | 63 // Used to update the encoder target rate. |
| 66 void OnSetEncoderTargetRate(uint32_t bitrate_bps); | 64 void OnSetEncoderTargetRate(uint32_t bitrate_bps); |
| 67 | 65 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 const VideoSendStream::Stats start_stats_; | 179 const VideoSendStream::Stats start_stats_; |
| 182 std::map<int, QpCounters> | 180 std::map<int, QpCounters> |
| 183 qp_counters_; // QP counters mapped by spatial idx. | 181 qp_counters_; // QP counters mapped by spatial idx. |
| 184 }; | 182 }; |
| 185 | 183 |
| 186 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); | 184 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); |
| 187 }; | 185 }; |
| 188 | 186 |
| 189 } // namespace webrtc | 187 } // namespace webrtc |
| 190 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ | 188 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ |
| OLD | NEW |