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

Unified Diff: media/base/decode_capabilities.h

Issue 2783963002: Add IsSupportedAudioConfig in MediaClient (Closed)
Patch Set: CR feedback 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 | « content/renderer/media/render_media_client.cc ('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
index f9f144f56793a21dc7c091d0b34df26ae60d5b04..4ae095fc524292b7f7da406488257358876e01e4 100644
--- a/media/base/decode_capabilities.h
+++ b/media/base/decode_capabilities.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_BASE_DECODE_CAPABILITIES_
#define MEDIA_BASE_DECODE_CAPABILITIES_
+#include "media/base/audio_codecs.h"
#include "media/base/media_export.h"
#include "media/base/video_codecs.h"
#include "media/base/video_color_space.h"
@@ -13,6 +14,9 @@ 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 AudioConfig {
+ AudioCodec codec;
+};
struct MEDIA_EXPORT VideoConfig {
VideoCodec codec;
@@ -21,8 +25,9 @@ struct MEDIA_EXPORT VideoConfig {
VideoColorSpace color_space;
};
+MEDIA_EXPORT bool IsSupportedAudioConfig(const AudioConfig& config);
MEDIA_EXPORT bool IsSupportedVideoConfig(const VideoConfig& config);
} // namespace media
-#endif // MEDIA_BASE_DECODE_CAPABILITIES_
+#endif // MEDIA_BASE_DECODE_CAPABILITIES_
« no previous file with comments | « content/renderer/media/render_media_client.cc ('k') | media/base/decode_capabilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698