| 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 bool bw_limited_resolution = false; | 73 bool bw_limited_resolution = false; |
| 73 std::map<uint32_t, StreamStats> substreams; | 74 std::map<uint32_t, StreamStats> substreams; |
| 74 }; | 75 }; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // in the config. Encoder settings are passed on to the encoder instance along | 179 // in the config. Encoder settings are passed on to the encoder instance along |
| 179 // with the VideoStream settings. | 180 // with the VideoStream settings. |
| 180 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; | 181 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; |
| 181 | 182 |
| 182 virtual Stats GetStats() = 0; | 183 virtual Stats GetStats() = 0; |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace webrtc | 186 } // namespace webrtc |
| 186 | 187 |
| 187 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ | 188 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ |
| OLD | NEW |