| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // Decoders for every payload that we can receive. | 111 // Decoders for every payload that we can receive. |
| 112 std::vector<Decoder> decoders; | 112 std::vector<Decoder> decoders; |
| 113 | 113 |
| 114 // Receive-stream specific RTP settings. | 114 // Receive-stream specific RTP settings. |
| 115 struct Rtp { | 115 struct Rtp { |
| 116 std::string ToString() const; | 116 std::string ToString() const; |
| 117 | 117 |
| 118 // Synchronization source (stream identifier) to be received. | 118 // Synchronization source (stream identifier) to be received. |
| 119 uint32_t remote_ssrc = 0; | 119 uint32_t remote_ssrc = 0; |
| 120 | |
| 121 // Sender SSRC used for sending RTCP (such as receiver reports). | 120 // Sender SSRC used for sending RTCP (such as receiver reports). |
| 122 uint32_t local_ssrc = 0; | 121 uint32_t local_ssrc = 0; |
| 123 | 122 |
| 124 // See RtcpMode for description. | 123 // See RtcpMode for description. |
| 125 RtcpMode rtcp_mode = RtcpMode::kCompound; | 124 RtcpMode rtcp_mode = RtcpMode::kCompound; |
| 126 | 125 |
| 127 // Extended RTCP settings. | 126 // Extended RTCP settings. |
| 128 struct RtcpXr { | 127 struct RtcpXr { |
| 129 // True if RTCP Receiver Reference Time Report Block extension | 128 // True if RTCP Receiver Reference Time Report Block extension |
| 130 // (RFC 3611) should be enabled. | 129 // (RFC 3611) should be enabled. |
| 131 bool receiver_reference_time_report = false; | 130 bool receiver_reference_time_report = false; |
| 132 } rtcp_xr; | 131 } rtcp_xr; |
| 133 | 132 |
| 134 // See draft-alvestrand-rmcat-remb for information. | 133 // See draft-alvestrand-rmcat-remb for information. |
| 135 bool remb = false; | 134 bool remb = false; |
| 136 | 135 |
| 137 // See draft-holmer-rmcat-transport-wide-cc-extensions for details. | 136 // See draft-holmer-rmcat-transport-wide-cc-extensions for details. |
| 138 bool transport_cc = false; | 137 bool transport_cc = false; |
| 139 | 138 |
| 140 // See NackConfig for description. | 139 // See NackConfig for description. |
| 141 NackConfig nack; | 140 NackConfig nack; |
| 142 | 141 |
| 143 // See UlpfecConfig for description. | 142 // See UlpfecConfig for description. |
| 144 UlpfecConfig ulpfec; | 143 UlpfecConfig ulpfec; |
| 145 | 144 |
| 146 // SSRC for retransmissions. | 145 // RTX settings for incoming video payloads that may be received. RTX is |
| 147 uint32_t rtx_ssrc = 0; | 146 // disabled if there's no config present. |
| 147 struct Rtx { |
| 148 // SSRCs to use for the RTX streams. |
| 149 uint32_t ssrc = 0; |
| 148 | 150 |
| 149 // Map from video payload type (apt) -> RTX payload type (pt). | 151 // Payload type to use for the RTX stream. |
| 150 // For RTX to be enabled, both an SSRC and this mapping are needed. | 152 int payload_type = 0; |
| 151 std::map<int, int> rtx_payload_types; | 153 }; |
| 154 |
| 155 // Map from video RTP payload type -> RTX config. |
| 156 typedef std::map<int, Rtx> RtxMap; |
| 157 RtxMap rtx; |
| 152 | 158 |
| 153 // RTP header extensions used for the received stream. | 159 // RTP header extensions used for the received stream. |
| 154 std::vector<RtpExtension> extensions; | 160 std::vector<RtpExtension> extensions; |
| 155 } rtp; | 161 } rtp; |
| 156 | 162 |
| 157 // Transport for outgoing packets (RTCP). | 163 // Transport for outgoing packets (RTCP). |
| 158 Transport* rtcp_send_transport = nullptr; | 164 Transport* rtcp_send_transport = nullptr; |
| 159 | 165 |
| 160 // Must not be 'nullptr' when the stream is started. | 166 // Must not be 'nullptr' when the stream is started. |
| 161 rtc::VideoSinkInterface<VideoFrame>* renderer = nullptr; | 167 rtc::VideoSinkInterface<VideoFrame>* renderer = nullptr; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 EnableEncodedFrameRecording(rtc::kInvalidPlatformFileValue, 0); | 219 EnableEncodedFrameRecording(rtc::kInvalidPlatformFileValue, 0); |
| 214 } | 220 } |
| 215 | 221 |
| 216 protected: | 222 protected: |
| 217 virtual ~VideoReceiveStream() {} | 223 virtual ~VideoReceiveStream() {} |
| 218 }; | 224 }; |
| 219 | 225 |
| 220 } // namespace webrtc | 226 } // namespace webrtc |
| 221 | 227 |
| 222 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ | 228 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ |
| OLD | NEW |