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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 struct EncoderSettings { | 84 struct EncoderSettings { |
85 std::string ToString() const; | 85 std::string ToString() const; |
86 | 86 |
87 std::string payload_name; | 87 std::string payload_name; |
88 int payload_type = -1; | 88 int payload_type = -1; |
89 | 89 |
90 // TODO(sophiechang): Delete this field when no one is using internal | 90 // TODO(sophiechang): Delete this field when no one is using internal |
91 // sources anymore. | 91 // sources anymore. |
92 bool internal_source = false; | 92 bool internal_source = false; |
93 | 93 |
| 94 // Allow 100% encoder utilization. Used for HW encoders where CPU isn't |
| 95 // expected to be the limiting factor, but a chip could be running at |
| 96 // 30fps (for example) exactly. |
| 97 bool full_overuse_time = false; |
| 98 |
94 // Uninitialized VideoEncoder instance to be used for encoding. Will be | 99 // Uninitialized VideoEncoder instance to be used for encoding. Will be |
95 // initialized from inside the VideoSendStream. | 100 // initialized from inside the VideoSendStream. |
96 VideoEncoder* encoder = nullptr; | 101 VideoEncoder* encoder = nullptr; |
97 } encoder_settings; | 102 } encoder_settings; |
98 | 103 |
99 static const size_t kDefaultMaxPacketSize = 1500 - 40; // TCP over IPv4. | 104 static const size_t kDefaultMaxPacketSize = 1500 - 40; // TCP over IPv4. |
100 struct Rtp { | 105 struct Rtp { |
101 std::string ToString() const; | 106 std::string ToString() const; |
102 | 107 |
103 std::vector<uint32_t> ssrcs; | 108 std::vector<uint32_t> ssrcs; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // in the config. Encoder settings are passed on to the encoder instance along | 184 // in the config. Encoder settings are passed on to the encoder instance along |
180 // with the VideoStream settings. | 185 // with the VideoStream settings. |
181 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; | 186 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; |
182 | 187 |
183 virtual Stats GetStats() = 0; | 188 virtual Stats GetStats() = 0; |
184 }; | 189 }; |
185 | 190 |
186 } // namespace webrtc | 191 } // namespace webrtc |
187 | 192 |
188 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ | 193 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ |
OLD | NEW |