| OLD | NEW | 
|   1 // Copyright 2016 The Chromium Authors. All rights reserved. |   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 |   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_MEDIA_CAPABILITIES_SHLIB_H_ |   5 #ifndef CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ | 
|   6 #define CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ |   6 #define CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ | 
|   7  |   7  | 
|   8 #include "chromecast_export.h" |   8 #include "chromecast_export.h" | 
|   9 #include "decoder_config.h" |   9 #include "decoder_config.h" | 
|  10  |  10  | 
|  11 namespace chromecast { |  11 namespace chromecast { | 
|  12 namespace media { |  12 namespace media { | 
|  13  |  13  | 
|  14 // Interface for specifying platform media capabilities. It allows for more |  14 // Interface for specifying platform media capabilities. It allows for more | 
|  15 // detailed information to be provided by the platform compared to the previous |  15 // detailed information to be provided by the platform compared to the previous | 
|  16 // MediaCodecSupportShlib interface. |  16 // MediaCodecSupportShlib interface. | 
|  17 class CHROMECAST_EXPORT MediaCapabilitiesShlib { |  17 class CHROMECAST_EXPORT MediaCapabilitiesShlib { | 
|  18  public: |  18  public: | 
|  19   // Return true if the current platform supports the given combination of video |  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 |  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 VP9 the |  21   // decoder_config.h. The level value is codec specific. For H.264 and VP9 the | 
|  22   // level value is multiplied by ten, i.e. level=51 corresponds to level 5.1 |  22   // level value is multiplied by ten, i.e. level=51 corresponds to level 5.1 | 
|  23   // For HEVC the level value is multiplied by 30, to match level_idc value in |  23   // For HEVC the level value is multiplied by 30, to match level_idc value in | 
|  24   // HEVC bitstream. So for HEVC level=153 corresponds to level 5.1 |  24   // HEVC bitstream. So for HEVC level=153 corresponds to level 5.1 | 
|  25   static bool IsSupportedVideoConfig(VideoCodec codec, |  25   static bool IsSupportedVideoConfig(VideoCodec codec, | 
|  26                                      VideoProfile profile, |  26                                      VideoProfile profile, | 
|  27                                      int level); |  27                                      int level); | 
 |  28  | 
 |  29   // Return true if the platform supports the given audio |config|. | 
 |  30   static bool IsSupportedAudioConfig(const AudioConfig& config); | 
|  28 }; |  31 }; | 
|  29  |  32  | 
|  30 }  // namespace media |  33 }  // namespace media | 
|  31 }  // namespace chromecast |  34 }  // namespace chromecast | 
|  32  |  35  | 
|  33 #endif  // CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ |  36 #endif  // CHROMECAST_PUBLIC_MEDIA_MEDIA_CAPABILITIES_SHLIB_H_ | 
| OLD | NEW |