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

Unified Diff: media/base/mime_util_internal.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
Index: media/base/mime_util_internal.h
diff --git a/media/base/mime_util_internal.h b/media/base/mime_util_internal.h
index d39a2d855b08444f78fd4d20bca8b2ff6e8f1bca..51c39338c841d345474bac9be53b1a432e10090c 100644
--- a/media/base/mime_util_internal.h
+++ b/media/base/mime_util_internal.h
@@ -63,6 +63,17 @@ class MEDIA_EXPORT MimeUtil {
void SplitCodecsToVector(const std::string& codecs,
std::vector<std::string>* codecs_out,
bool strip);
+ 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);
+ bool ParseAudioCodecString(const std::string& mime_type,
+ const std::string& codec_id,
+ bool* out_is_ambiguous,
+ AudioCodec* out_codec);
SupportsType IsSupportedMediaFormat(const std::string& mime_type,
const std::vector<std::string>& codecs,
bool is_encrypted) const;

Powered by Google App Engine
This is Rietveld 408576698