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 int target_media_bitrate_bps = 0; | 63 int target_media_bitrate_bps = 0; |
64 // Bitrate the encoder is actually producing. | 64 // Bitrate the encoder is actually producing. |
65 int media_bitrate_bps = 0; | 65 int media_bitrate_bps = 0; |
66 // Media bitrate this VideoSendStream is configured to prefer if there are | 66 // Media bitrate this VideoSendStream is configured to prefer if there are |
67 // no bandwidth limitations. | 67 // no bandwidth limitations. |
68 int preferred_media_bitrate_bps = 0; | 68 int preferred_media_bitrate_bps = 0; |
69 bool suspended = false; | 69 bool suspended = false; |
70 bool bw_limited_resolution = false; | 70 bool bw_limited_resolution = false; |
71 bool cpu_limited_resolution = false; | 71 bool cpu_limited_resolution = false; |
72 // Total number of times resolution as been requested to be changed due to | 72 // Total number of times resolution as been requested to be changed due to |
73 // CPU adaptation. | 73 // CPU/quality adaptation. |
74 int number_of_cpu_adapt_changes = 0; | 74 int number_of_cpu_adapt_changes = 0; |
| 75 int number_of_quality_adapt_changes = 0; |
75 std::map<uint32_t, StreamStats> substreams; | 76 std::map<uint32_t, StreamStats> substreams; |
76 }; | 77 }; |
77 | 78 |
78 struct Config { | 79 struct Config { |
79 public: | 80 public: |
80 Config() = delete; | 81 Config() = delete; |
81 Config(Config&&) = default; | 82 Config(Config&&) = default; |
82 explicit Config(Transport* send_transport) | 83 explicit Config(Transport* send_transport) |
83 : send_transport(send_transport) {} | 84 : send_transport(send_transport) {} |
84 | 85 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 EnableEncodedFrameRecording(std::vector<rtc::PlatformFile>(), 0); | 257 EnableEncodedFrameRecording(std::vector<rtc::PlatformFile>(), 0); |
257 } | 258 } |
258 | 259 |
259 protected: | 260 protected: |
260 virtual ~VideoSendStream() {} | 261 virtual ~VideoSendStream() {} |
261 }; | 262 }; |
262 | 263 |
263 } // namespace webrtc | 264 } // namespace webrtc |
264 | 265 |
265 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ | 266 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ |
OLD | NEW |