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

Unified Diff: media/base/media.h

Issue 1690063002: Fix mime type mappings when the unified media pipeline is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 10 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/media.h
diff --git a/media/base/media.h b/media/base/media.h
index 01a913bc45ff956702377f097a036015951821f0..65a7a69e0152b6ffe271ca3e57a0ca5b4c6259f3 100644
--- a/media/base/media.h
+++ b/media/base/media.h
@@ -8,6 +8,7 @@
#ifndef MEDIA_BASE_MEDIA_H_
#define MEDIA_BASE_MEDIA_H_
+#include "build/build_config.h"
#include "media/base/media_export.h"
namespace base {
@@ -20,6 +21,33 @@ namespace media {
// features.
MEDIA_EXPORT void InitializeMediaLibrary();
+#if defined(OS_ANDROID)
+// Tells the media library it has support for OS level decoders. Should only be
+// used for actual decoders (e.g. MediaCodec) and not full-featured players
+// (e.g. MediaPlayer).
+MEDIA_EXPORT void EnablePlatformDecoderSupport();
+MEDIA_EXPORT bool HasPlatformDecoderSupport();
+
+// Indicates if the platform supports Opus or VP9. Determined *ONLY* by the
+// platform version, so does not guarantee that either can actually be played.
+MEDIA_EXPORT bool PlatformHasOpusSupport();
+MEDIA_EXPORT bool PlatformHasVp9Support();
+
+// Returns true if the unified media pipeline is enabled; the pipeline may still
+// not work for all codecs if HasPlatformDecoderSupport() is false. Please see
+// MimeUtil for an exhaustive listing of supported codecs.
+//
+// TODO(dalecurtis): These methods are temporary and should be removed once the
+// unified media pipeline is supported everywhere. http://crbug.com/580626.
+MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabled();
+
+// Similar to IsUnifiedMediaPipelineEnabled() but will also return true if
+// MediaCodec is not available (allowing the unified pipeline to take over for
+// cases where existing pipeline has no support). As above, codecs requiring
+// platform support may not be available.
+MEDIA_EXPORT bool IsUnifiedMediaPipelineEnabledForMse();
+#endif
+
} // namespace media
#endif // MEDIA_BASE_MEDIA_H_

Powered by Google App Engine
This is Rietveld 408576698