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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 kVideoCodecH264, | 566 kVideoCodecH264, |
567 kVideoCodecI420, | 567 kVideoCodecI420, |
568 kVideoCodecRED, | 568 kVideoCodecRED, |
569 kVideoCodecULPFEC, | 569 kVideoCodecULPFEC, |
570 kVideoCodecFlexfec, | 570 kVideoCodecFlexfec, |
571 kVideoCodecGeneric, | 571 kVideoCodecGeneric, |
572 kVideoCodecUnknown | 572 kVideoCodecUnknown |
573 }; | 573 }; |
574 | 574 |
575 // Translates from name of codec to codec type and vice versa. | 575 // Translates from name of codec to codec type and vice versa. |
576 rtc::Optional<std::string> CodecTypeToPayloadName(VideoCodecType type); | 576 rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type); |
577 rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name); | 577 rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name); |
578 | 578 |
579 union VideoCodecUnion { | 579 union VideoCodecUnion { |
580 VideoCodecVP8 VP8; | 580 VideoCodecVP8 VP8; |
581 VideoCodecVP9 VP9; | 581 VideoCodecVP9 VP9; |
582 VideoCodecH264 H264; | 582 VideoCodecH264 H264; |
583 }; | 583 }; |
584 | 584 |
585 // Simulcast is when the same stream is encoded multiple times with different | 585 // Simulcast is when the same stream is encoded multiple times with different |
586 // settings such as resolution. | 586 // settings such as resolution. |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 879 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
880 | 880 |
881 enum NetworkState { | 881 enum NetworkState { |
882 kNetworkUp, | 882 kNetworkUp, |
883 kNetworkDown, | 883 kNetworkDown, |
884 }; | 884 }; |
885 | 885 |
886 } // namespace webrtc | 886 } // namespace webrtc |
887 | 887 |
888 #endif // WEBRTC_COMMON_TYPES_H_ | 888 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |