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

Side by Side Diff: chromecast/public/media_codec_support_shlib.h

Issue 2156193003: [Chromecast] Add a custom CastMediaClient for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codecs
Patch Set: CR fixes Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_PUBLIC_MEDIA_CODEC_SUPPORT_SHLIB_H_ 5 #ifndef CHROMECAST_PUBLIC_MEDIA_CODEC_SUPPORT_SHLIB_H_
6 #define CHROMECAST_PUBLIC_MEDIA_CODEC_SUPPORT_SHLIB_H_ 6 #define CHROMECAST_PUBLIC_MEDIA_CODEC_SUPPORT_SHLIB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chromecast_export.h" 10 #include "chromecast_export.h"
11 #include "media/decoder_config.h"
11 12
12 namespace chromecast { 13 namespace chromecast {
13 namespace media { 14 namespace media {
14 15
15 // Provides information on which codecs are supported by a platform. 16 // Provides information on which codecs are supported by a platform.
16 // Note: these queries are made only in the renderer process. 17 // Note: these queries are made only in the renderer process.
17 class CHROMECAST_EXPORT MediaCodecSupportShlib { 18 class CHROMECAST_EXPORT MediaCodecSupportShlib {
18 public: 19 public:
19 // Possible values for 'is codec supported' query 20 // Possible values for 'is codec supported' query
20 enum CodecSupport { 21 enum CodecSupport {
21 // Codec is definitely supported on this platform. 22 // Codec is definitely supported on this platform.
22 kSupported, 23 kSupported,
23 // Codec is definitely not supported on this platform. 24 // Codec is definitely not supported on this platform.
24 kNotSupported, 25 kNotSupported,
25 // No platform-specific constraints on codec's support. 26 // No platform-specific constraints on codec's support.
26 // Support is determined by cast_shell default behaviour (which 27 // Support is determined by cast_shell default behaviour (which
27 // may include taking current HDMI-out capabilities into account). 28 // may include taking current HDMI-out capabilities into account).
28 kDefault 29 kDefault
29 }; 30 };
30 31
31 // Returns whether or not the given codec (passed in as a string 32 // Returns whether or not the given codec (passed in as a string
32 // representation of the codec id conforming to RFC 6381) is supported. 33 // representation of the codec id conforming to RFC 6381) is supported.
33 static CodecSupport IsSupported(const std::string& codec); 34 static CodecSupport IsSupported(const std::string& codec);
34 }; 35 };
35 36
gfhuang 2016/07/27 20:13:58 add comments about what this API is doing (what's
servolk 2016/07/27 22:39:36 Done.
37 class CHROMECAST_EXPORT MediaCapabilitiesShlib {
38 public:
39 static bool IsSupportedVideoConfig(VideoCodec codec,
40 VideoProfile profile,
41 int level) __attribute__((__weak__));
42 };
43
36 } // namespace media 44 } // namespace media
37 } // namespace chromecast 45 } // namespace chromecast
38 46
39 #endif // CHROMECAST_PUBLIC_MEDIA_CODEC_SUPPORT_SHLIB_H_ 47 #endif // CHROMECAST_PUBLIC_MEDIA_CODEC_SUPPORT_SHLIB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698