| 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 kVideoCodecRED, | 543 kVideoCodecRED, |
| 544 kVideoCodecULPFEC, | 544 kVideoCodecULPFEC, |
| 545 kVideoCodecFlexfec, | 545 kVideoCodecFlexfec, |
| 546 kVideoCodecGeneric, | 546 kVideoCodecGeneric, |
| 547 kVideoCodecUnknown | 547 kVideoCodecUnknown |
| 548 }; | 548 }; |
| 549 | 549 |
| 550 // Translates from name of codec to codec type and vice versa. | 550 // Translates from name of codec to codec type and vice versa. |
| 551 const char* CodecTypeToPayloadString(VideoCodecType type); | 551 const char* CodecTypeToPayloadString(VideoCodecType type); |
| 552 VideoCodecType PayloadStringToCodecType(const std::string& name); | 552 VideoCodecType PayloadStringToCodecType(const std::string& name); |
| 553 // TODO(kthelgason): Remove these methods once upstream projects |
| 554 // have been updated. |
| 555 rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type); |
| 556 rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name); |
| 553 | 557 |
| 554 union VideoCodecUnion { | 558 union VideoCodecUnion { |
| 555 VideoCodecVP8 VP8; | 559 VideoCodecVP8 VP8; |
| 556 VideoCodecVP9 VP9; | 560 VideoCodecVP9 VP9; |
| 557 VideoCodecH264 H264; | 561 VideoCodecH264 H264; |
| 558 }; | 562 }; |
| 559 | 563 |
| 560 // Simulcast is when the same stream is encoded multiple times with different | 564 // Simulcast is when the same stream is encoded multiple times with different |
| 561 // settings such as resolution. | 565 // settings such as resolution. |
| 562 struct SimulcastStream { | 566 struct SimulcastStream { |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 bool operator==(const RtpKeepAliveConfig& o) const { | 962 bool operator==(const RtpKeepAliveConfig& o) const { |
| 959 return timeout_interval_ms == o.timeout_interval_ms && | 963 return timeout_interval_ms == o.timeout_interval_ms && |
| 960 payload_type == o.payload_type; | 964 payload_type == o.payload_type; |
| 961 } | 965 } |
| 962 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } | 966 bool operator!=(const RtpKeepAliveConfig& o) const { return !(*this == o); } |
| 963 }; | 967 }; |
| 964 | 968 |
| 965 } // namespace webrtc | 969 } // namespace webrtc |
| 966 | 970 |
| 967 #endif // WEBRTC_COMMON_TYPES_H_ | 971 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |