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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 int avg_encode_time_ms = 0; | 60 int avg_encode_time_ms = 0; |
61 int encode_usage_percent = 0; | 61 int encode_usage_percent = 0; |
62 int target_media_bitrate_bps = 0; | 62 int target_media_bitrate_bps = 0; |
63 int media_bitrate_bps = 0; | 63 int media_bitrate_bps = 0; |
64 bool suspended = false; | 64 bool suspended = false; |
65 std::map<uint32_t, StreamStats> substreams; | 65 std::map<uint32_t, StreamStats> substreams; |
66 }; | 66 }; |
67 | 67 |
68 struct Config { | 68 struct Config { |
69 Config() = delete; | 69 Config() = delete; |
70 explicit Config(newapi::Transport* send_transport) | 70 explicit Config(Transport* send_transport) |
71 : send_transport(send_transport) {} | 71 : send_transport(send_transport) {} |
72 | 72 |
73 std::string ToString() const; | 73 std::string ToString() const; |
74 | 74 |
75 struct EncoderSettings { | 75 struct EncoderSettings { |
76 std::string ToString() const; | 76 std::string ToString() const; |
77 | 77 |
78 std::string payload_name; | 78 std::string payload_name; |
79 int payload_type = -1; | 79 int payload_type = -1; |
80 | 80 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // Payload type to use for the RTX stream. | 115 // Payload type to use for the RTX stream. |
116 int payload_type = -1; | 116 int payload_type = -1; |
117 } rtx; | 117 } rtx; |
118 | 118 |
119 // RTCP CNAME, see RFC 3550. | 119 // RTCP CNAME, see RFC 3550. |
120 std::string c_name; | 120 std::string c_name; |
121 } rtp; | 121 } rtp; |
122 | 122 |
123 // Transport for outgoing packets. | 123 // Transport for outgoing packets. |
124 newapi::Transport* send_transport = nullptr; | 124 Transport* send_transport = nullptr; |
125 | 125 |
126 // Callback for overuse and normal usage based on the jitter of incoming | 126 // Callback for overuse and normal usage based on the jitter of incoming |
127 // captured frames. 'nullptr' disables the callback. | 127 // captured frames. 'nullptr' disables the callback. |
128 LoadObserver* overuse_callback = nullptr; | 128 LoadObserver* overuse_callback = nullptr; |
129 | 129 |
130 // Called for each I420 frame before encoding the frame. Can be used for | 130 // Called for each I420 frame before encoding the frame. Can be used for |
131 // effects, snapshots etc. 'nullptr' disables the callback. | 131 // effects, snapshots etc. 'nullptr' disables the callback. |
132 I420FrameCallback* pre_encode_callback = nullptr; | 132 I420FrameCallback* pre_encode_callback = nullptr; |
133 | 133 |
134 // Called for each encoded frame, e.g. used for file storage. 'nullptr' | 134 // Called for each encoded frame, e.g. used for file storage. 'nullptr' |
(...skipping 27 matching lines...) Expand all Loading... |
162 // in the config. Encoder settings are passed on to the encoder instance along | 162 // in the config. Encoder settings are passed on to the encoder instance along |
163 // with the VideoStream settings. | 163 // with the VideoStream settings. |
164 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; | 164 virtual bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) = 0; |
165 | 165 |
166 virtual Stats GetStats() = 0; | 166 virtual Stats GetStats() = 0; |
167 }; | 167 }; |
168 | 168 |
169 } // namespace webrtc | 169 } // namespace webrtc |
170 | 170 |
171 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ | 171 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ |
OLD | NEW |