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

Unified Diff: chromecast/public/media/media_capabilities_shlib.h

Issue 2156193003: [Chromecast] Add a custom CastMediaClient for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codecs
Patch Set: rebase 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 | « chromecast/public/media/decoder_config.h ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/public/media/media_capabilities_shlib.h
diff --git a/chromecast/public/media/media_capabilities_shlib.h b/chromecast/public/media/media_capabilities_shlib.h
new file mode 100644
index 0000000000000000000000000000000000000000..edc82ba530bc1734d4c50ca75e5b633a178bad13
--- /dev/null
+++ b/chromecast/public/media/media_capabilities_shlib.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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 CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_
+#define CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_
+
+#include "chromecast_export.h"
+#include "decoder_config.h"
+
+namespace chromecast {
+namespace media {
+
+// Interface for specifying platform media capabilities. It allows for more
+// detailed information to be provided by the platform compared to the previous
+// MediaCodecSupportShlib interface.
+class CHROMECAST_EXPORT MediaCapabilitiesShlib {
+ public:
+ // Return true if the current platform supports the given combination of video
+ // codec, profile and level. For a list of supported codecs and profiles see
+ // decoder_config.h. The level value is codec specific. For H.264 and HEVC the
+ // level value corresponds to level_idc defined in the H.264 / HEVC standard.
gfhuang 2016/07/28 00:38:07 Is this new API intend to deprecate the other old
servolk 2016/07/28 00:49:20 Yes, eventually. But for now we will support both
+ static bool IsSupportedVideoConfig(VideoCodec codec,
+ VideoProfile profile,
+ int level) __attribute__((__weak__));
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_
« no previous file with comments | « chromecast/public/media/decoder_config.h ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698