OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 // Video codec types | 519 // Video codec types |
520 enum VideoCodecType { | 520 enum VideoCodecType { |
521 kVideoCodecVP8, | 521 kVideoCodecVP8, |
522 kVideoCodecVP9, | 522 kVideoCodecVP9, |
523 kVideoCodecH264, | 523 kVideoCodecH264, |
524 kVideoCodecI420, | 524 kVideoCodecI420, |
525 kVideoCodecRED, | 525 kVideoCodecRED, |
526 kVideoCodecULPFEC, | 526 kVideoCodecULPFEC, |
527 kVideoCodecFlexfec, | 527 kVideoCodecFlexfec, |
528 kVideoCodecGeneric, | 528 kVideoCodecGeneric, |
| 529 kVideoCodecStereo, |
529 kVideoCodecUnknown | 530 kVideoCodecUnknown |
530 }; | 531 }; |
531 | 532 |
532 // Translates from name of codec to codec type and vice versa. | 533 // Translates from name of codec to codec type and vice versa. |
533 rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type); | 534 rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type); |
534 rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name); | 535 rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name); |
535 | 536 |
536 union VideoCodecUnion { | 537 union VideoCodecUnion { |
537 VideoCodecVP8 VP8; | 538 VideoCodecVP8 VP8; |
538 VideoCodecVP9 VP9; | 539 VideoCodecVP9 VP9; |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 // this value. If this value has already been negotiated, then some other | 935 // this value. If this value has already been negotiated, then some other |
935 // unused static payload type from table 5 of RFC 3551 shall be used and set | 936 // unused static payload type from table 5 of RFC 3551 shall be used and set |
936 // in |payload_type|. | 937 // in |payload_type|. |
937 int64_t timeout_interval_ms = -1; | 938 int64_t timeout_interval_ms = -1; |
938 uint8_t payload_type = 20; | 939 uint8_t payload_type = 20; |
939 }; | 940 }; |
940 | 941 |
941 } // namespace webrtc | 942 } // namespace webrtc |
942 | 943 |
943 #endif // WEBRTC_COMMON_TYPES_H_ | 944 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |