| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 struct Stats { | 64 struct Stats { |
| 65 int input_frame_rate = 0; | 65 int input_frame_rate = 0; |
| 66 int encode_frame_rate = 0; | 66 int encode_frame_rate = 0; |
| 67 int avg_encode_time_ms = 0; | 67 int avg_encode_time_ms = 0; |
| 68 int encode_usage_percent = 0; | 68 int encode_usage_percent = 0; |
| 69 int target_media_bitrate_bps = 0; | 69 int target_media_bitrate_bps = 0; |
| 70 int media_bitrate_bps = 0; | 70 int media_bitrate_bps = 0; |
| 71 bool suspended = false; | 71 bool suspended = false; |
| 72 bool bw_limited_resolution = false; |
| 72 std::map<uint32_t, StreamStats> substreams; | 73 std::map<uint32_t, StreamStats> substreams; |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 struct Config { | 76 struct Config { |
| 76 Config() = delete; | 77 Config() = delete; |
| 77 explicit Config(Transport* send_transport) | 78 explicit Config(Transport* send_transport) |
| 78 : send_transport(send_transport) {} | 79 : send_transport(send_transport) {} |
| 79 | 80 |
| 80 std::string ToString() const; | 81 std::string ToString() const; |
| 81 | 82 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // in the config. Encoder settings are passed on to the encoder instance along | 178 // in the config. Encoder settings are passed on to the encoder instance along |
| 178 // with the VideoStream settings. | 179 // with the VideoStream settings. |
| 179 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; | 180 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; |
| 180 | 181 |
| 181 virtual Stats GetStats() = 0; | 182 virtual Stats GetStats() = 0; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace webrtc | 185 } // namespace webrtc |
| 185 | 186 |
| 186 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ | 187 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ |
| OLD | NEW |