OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 282 |
283 // Inclusive min and max IDs for one-byte header extensions, per RFC5285. | 283 // Inclusive min and max IDs for one-byte header extensions, per RFC5285. |
284 static const int kMinId; | 284 static const int kMinId; |
285 static const int kMaxId; | 285 static const int kMaxId; |
286 | 286 |
287 std::string uri; | 287 std::string uri; |
288 int id = 0; | 288 int id = 0; |
289 bool encrypt = false; | 289 bool encrypt = false; |
290 }; | 290 }; |
291 | 291 |
292 // See webrtc/config.h. Has "uri" and "id" fields. | |
293 // TODO(deadbeef): This is missing the "encrypt" flag, which is unimplemented. | 292 // TODO(deadbeef): This is missing the "encrypt" flag, which is unimplemented. |
294 typedef RtpExtension RtpHeaderExtensionParameters; | 293 typedef RtpExtension RtpHeaderExtensionParameters; |
295 | 294 |
296 struct RtpFecParameters { | 295 struct RtpFecParameters { |
297 // If unset, a value is chosen by the implementation. | 296 // If unset, a value is chosen by the implementation. |
298 // Works just like RtpEncodingParameters::ssrc. | 297 // Works just like RtpEncodingParameters::ssrc. |
299 rtc::Optional<uint32_t> ssrc; | 298 rtc::Optional<uint32_t> ssrc; |
300 | 299 |
301 FecMechanism mechanism = FecMechanism::RED; | 300 FecMechanism mechanism = FecMechanism::RED; |
302 | 301 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 header_extensions == o.header_extensions && | 540 header_extensions == o.header_extensions && |
542 encodings == o.encodings && | 541 encodings == o.encodings && |
543 degradation_preference == o.degradation_preference; | 542 degradation_preference == o.degradation_preference; |
544 } | 543 } |
545 bool operator!=(const RtpParameters& o) const { return !(*this == o); } | 544 bool operator!=(const RtpParameters& o) const { return !(*this == o); } |
546 }; | 545 }; |
547 | 546 |
548 } // namespace webrtc | 547 } // namespace webrtc |
549 | 548 |
550 #endif // WEBRTC_API_RTPPARAMETERS_H_ | 549 #endif // WEBRTC_API_RTPPARAMETERS_H_ |
OLD | NEW |