| OLD | NEW | 
|   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 #include "base/strings/string_util.h" |   5 #include "base/strings/string_util.h" | 
|   6 #include "chromecast/public/media/media_capabilities_shlib.h" |   6 #include "chromecast/public/media/media_capabilities_shlib.h" | 
|   7 #include "chromecast/public/media_codec_support_shlib.h" |   7 #include "chromecast/public/media_codec_support_shlib.h" | 
|   8  |   8  | 
|   9 namespace chromecast { |   9 namespace chromecast { | 
|  10 namespace media { |  10 namespace media { | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
|  33  |  33  | 
|  34   return kNotSupported; |  34   return kNotSupported; | 
|  35 } |  35 } | 
|  36  |  36  | 
|  37 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, |  37 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, | 
|  38                                                     VideoProfile profile, |  38                                                     VideoProfile profile, | 
|  39                                                     int level) { |  39                                                     int level) { | 
|  40   return (codec == kCodecH264 || codec == kCodecVP8 || codec == kCodecVP9); |  40   return (codec == kCodecH264 || codec == kCodecVP8 || codec == kCodecVP9); | 
|  41 } |  41 } | 
|  42  |  42  | 
 |  43 bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) { | 
 |  44   return config.codec == kCodecAAC || config.codec == kCodecMP3 || | 
 |  45          config.codec == kCodecPCM; | 
 |  46 } | 
 |  47  | 
|  43 }  // namespace media |  48 }  // namespace media | 
|  44 }  // namespace chromecast |  49 }  // namespace chromecast | 
| OLD | NEW |