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

Unified Diff: media/base/mime_util.h

Issue 2864593003: Add MimeUtil::Parse{Audio|Video}CodecString (Closed)
Patch Set: Adding calls from MediaCapabilities client 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 | « no previous file | media/base/mime_util.cc » ('j') | media/base/mime_util_internal.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mime_util.h
diff --git a/media/base/mime_util.h b/media/base/mime_util.h
index d7a39f41a959dc2045d2addab12cbb2045b53be2..b25391b97c35f141919a5c8e4734dc8e52366a99 100644
--- a/media/base/mime_util.h
+++ b/media/base/mime_util.h
@@ -8,7 +8,9 @@
#include <string>
#include <vector>
+#include "media/base/audio_codecs.h"
#include "media/base/media_export.h"
+#include "media/base/video_codecs.h"
namespace media {
@@ -25,6 +27,19 @@ MEDIA_EXPORT void SplitCodecsToVector(const std::string& codecs,
std::vector<std::string>* codecs_out,
bool strip);
+MEDIA_EXPORT bool ParseVideoCodecString(const std::string& mime_type,
+ const std::string& codec_id,
+ bool* out_is_ambiguous,
+ VideoCodec* out_codec,
+ VideoCodecProfile* out_profile,
+ uint8_t* out_level,
+ VideoColorSpace* out_colorspace);
+
+MEDIA_EXPORT bool ParseAudioCodecString(const std::string& mime_type,
+ const std::string& codec_id,
+ bool* out_is_ambiguous,
+ AudioCodec* out_codec);
mlamouri (slow - plz ping) 2017/05/11 09:59:07 Here and for the internal header too, it would be
+
// Indicates that the MIME type and (possible codec string) are supported.
enum SupportsType {
// The given MIME type and codec combination is not supported.
« no previous file with comments | « no previous file | media/base/mime_util.cc » ('j') | media/base/mime_util_internal.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698