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

Unified Diff: media/base/decode_capabilities.h

Issue 2758873003: New media/base/decode_capabilities.h|cc (Closed)
Patch Set: Rebase Created 3 years, 9 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/BUILD.gn ('k') | media/base/decode_capabilities.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decode_capabilities.h
diff --git a/media/base/decode_capabilities.h b/media/base/decode_capabilities.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9f144f56793a21dc7c091d0b34df26ae60d5b04
--- /dev/null
+++ b/media/base/decode_capabilities.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_DECODE_CAPABILITIES_
+#define MEDIA_BASE_DECODE_CAPABILITIES_
+
+#include "media/base/media_export.h"
+#include "media/base/video_codecs.h"
+#include "media/base/video_color_space.h"
+
+namespace media {
+
+// APIs to media's decoder capabilities. Embedders may customize decoder
+// capabilities via MediaClient. See usage in mime_util_internal.cc.
+
+struct MEDIA_EXPORT VideoConfig {
+ VideoCodec codec;
+ VideoCodecProfile profile;
+ int level;
+ VideoColorSpace color_space;
+};
+
+MEDIA_EXPORT bool IsSupportedVideoConfig(const VideoConfig& config);
+
+} // namespace media
+
+#endif // MEDIA_BASE_DECODE_CAPABILITIES_
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/decode_capabilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698