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

Unified Diff: media/base/mime_util.cc

Issue 2864593003: Add MimeUtil::Parse{Audio|Video}CodecString (Closed)
Patch Set: Feedback && Proprietary Codecs fix && Rebase Created 3 years, 7 months 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 | « media/base/mime_util.h ('k') | media/base/mime_util_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mime_util.cc
diff --git a/media/base/mime_util.cc b/media/base/mime_util.cc
index b21b045d4d408c95610659c784dc7e0174364993..1bd72ff9236e9f330501c4234ae968ed5635aa87 100644
--- a/media/base/mime_util.cc
+++ b/media/base/mime_util.cc
@@ -35,6 +35,26 @@ void SplitCodecsToVector(const std::string& codecs,
GetMimeUtil()->SplitCodecsToVector(codecs, codecs_out, strip);
}
+MEDIA_EXPORT bool ParseVideoCodecString(const std::string& mime_type,
+ const std::string& codec_id,
+ bool* ambiguous_codec_string,
+ VideoCodec* out_codec,
+ VideoCodecProfile* out_profile,
+ uint8_t* out_level,
+ VideoColorSpace* out_colorspace) {
+ return GetMimeUtil()->ParseVideoCodecString(
+ mime_type, codec_id, ambiguous_codec_string, out_codec, out_profile,
+ out_level, out_colorspace);
+}
+
+MEDIA_EXPORT bool ParseAudioCodecString(const std::string& mime_type,
+ const std::string& codec_id,
+ bool* ambiguous_codec_string,
+ AudioCodec* out_codec) {
+ return GetMimeUtil()->ParseAudioCodecString(
+ mime_type, codec_id, ambiguous_codec_string, out_codec);
+}
+
void RemoveProprietaryMediaTypesAndCodecsForTests() {
GetMimeUtil()->RemoveProprietaryMediaTypesAndCodecs();
}
« no previous file with comments | « media/base/mime_util.h ('k') | media/base/mime_util_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698