Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ | |
| 6 #define CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ | |
| 7 | |
| 8 #include "chromecast_export.h" | |
| 9 #include "decoder_config.h" | |
| 10 | |
| 11 namespace chromecast { | |
| 12 namespace media { | |
| 13 | |
| 14 // Interface for specifying platform media capabilities. It allows for more | |
| 15 // detailed information to be provided by the platform compared to the previous | |
| 16 // MediaCodecSupportShlib interface. | |
| 17 class CHROMECAST_EXPORT MediaCapabilitiesShlib { | |
| 18 public: | |
| 19 // Return true if the current platform supports the given combination of video | |
| 20 // codec, profile and level. For a list of supported codecs and profiles see | |
| 21 // decoder_config.h. The level value is codec specific. For H.264 and HEVC the | |
| 22 // 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
| |
| 23 static bool IsSupportedVideoConfig(VideoCodec codec, | |
| 24 VideoProfile profile, | |
| 25 int level) __attribute__((__weak__)); | |
| 26 }; | |
| 27 | |
| 28 } // namespace media | |
| 29 } // namespace chromecast | |
| 30 | |
| 31 #endif // CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ | |
| OLD | NEW |