Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Side by Side Diff: webrtc/common_types.h

Issue 2509273002: Unify VideoCodecType to/from string functionality (Closed)
Patch Set: Rebase and update unknown string in WebRtcVideoEncoderFactory Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/android/jni/androidmediaencoder_jni.cc ('k') | webrtc/common_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/api/android/jni/androidmediaencoder_jni.cc ('k') | webrtc/common_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698