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

Unified Diff: media/base/mime_util_internal.h

Issue 2153643002: Make video codec support logic overridable via MediaClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move is_ambiguous flag handling back to StringToCodec Created 4 years, 5 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/media_client.h ('k') | media/base/mime_util_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mime_util_internal.h
diff --git a/media/base/mime_util_internal.h b/media/base/mime_util_internal.h
index 6d180c899a7cbc81d5b9d30d46d94e05d5d7b2c3..0bd1a3d2609b8b4cdc7515782ad44fb7fb8f95b6 100644
--- a/media/base/mime_util_internal.h
+++ b/media/base/mime_util_internal.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "media/base/media_export.h"
#include "media/base/mime_util.h"
+#include "media/base/video_codecs.h"
namespace media {
namespace internal {
@@ -118,11 +119,15 @@ class MEDIA_EXPORT MimeUtil {
// |is_ambiguous| is true if |codec_id| did not have enough information to
// unambiguously determine the proper Codec enum value. If |is_ambiguous|
// is true |codec| contains the best guess for the intended Codec enum value.
+ // |profile| and |level| indicate video codec profile and level (unused for
+ // audio codecs).
// |is_encrypted| means the codec will be used with encrypted blocks.
bool StringToCodec(const std::string& mime_type_lower_case,
const std::string& codec_id,
Codec* codec,
bool* is_ambiguous,
+ VideoCodecProfile* out_profile,
+ uint8_t* out_level,
bool is_encrypted) const;
// Returns true if |codec| is supported when contained in
« no previous file with comments | « media/base/media_client.h ('k') | media/base/mime_util_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698