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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 int total_bitrate_bps = 0; | 55 int total_bitrate_bps = 0; |
56 int retransmit_bitrate_bps = 0; | 56 int retransmit_bitrate_bps = 0; |
57 int avg_delay_ms = 0; | 57 int avg_delay_ms = 0; |
58 int max_delay_ms = 0; | 58 int max_delay_ms = 0; |
59 StreamDataCounters rtp_stats; | 59 StreamDataCounters rtp_stats; |
60 RtcpPacketTypeCounter rtcp_packet_type_counts; | 60 RtcpPacketTypeCounter rtcp_packet_type_counts; |
61 RtcpStatistics rtcp_stats; | 61 RtcpStatistics rtcp_stats; |
62 }; | 62 }; |
63 | 63 |
64 struct Stats { | 64 struct Stats { |
| 65 std::string encoder_implementation_name = "unknown"; |
65 int input_frame_rate = 0; | 66 int input_frame_rate = 0; |
66 int encode_frame_rate = 0; | 67 int encode_frame_rate = 0; |
67 int avg_encode_time_ms = 0; | 68 int avg_encode_time_ms = 0; |
68 int encode_usage_percent = 0; | 69 int encode_usage_percent = 0; |
69 int target_media_bitrate_bps = 0; | 70 int target_media_bitrate_bps = 0; |
70 int media_bitrate_bps = 0; | 71 int media_bitrate_bps = 0; |
71 bool suspended = false; | 72 bool suspended = false; |
72 std::map<uint32_t, StreamStats> substreams; | 73 std::map<uint32_t, StreamStats> substreams; |
73 }; | 74 }; |
74 | 75 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // in the config. Encoder settings are passed on to the encoder instance along | 175 // in the config. Encoder settings are passed on to the encoder instance along |
175 // with the VideoStream settings. | 176 // with the VideoStream settings. |
176 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; | 177 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; |
177 | 178 |
178 virtual Stats GetStats() = 0; | 179 virtual Stats GetStats() = 0; |
179 }; | 180 }; |
180 | 181 |
181 } // namespace webrtc | 182 } // namespace webrtc |
182 | 183 |
183 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ | 184 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ |
OLD | NEW |