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

Unified Diff: webrtc/media/base/codec.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/codec.h ('k') | webrtc/media/engine/internalencoderfactory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/codec.cc
diff --git a/webrtc/media/base/codec.cc b/webrtc/media/base/codec.cc
index 0320e58c722a9245661c257af27de37159318044..93cd4f3dafe87ea7fbfece0ca9b527ad5edf74db 100644
--- a/webrtc/media/base/codec.cc
+++ b/webrtc/media/base/codec.cc
@@ -324,17 +324,6 @@ bool CodecNamesEq(const char* name1, const char* name2) {
return _stricmp(name1, name2) == 0;
}
-webrtc::VideoCodecType CodecTypeFromName(const std::string& name) {
- if (CodecNamesEq(name.c_str(), kVp8CodecName)) {
- return webrtc::kVideoCodecVP8;
- } else if (CodecNamesEq(name.c_str(), kVp9CodecName)) {
- return webrtc::kVideoCodecVP9;
- } else if (CodecNamesEq(name.c_str(), kH264CodecName)) {
- return webrtc::kVideoCodecH264;
- }
- return webrtc::kVideoCodecUnknown;
-}
-
const VideoCodec* FindMatchingCodec(
const std::vector<VideoCodec>& supported_codecs,
const VideoCodec& codec) {
« no previous file with comments | « webrtc/media/base/codec.h ('k') | webrtc/media/engine/internalencoderfactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698