| 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 "chromecast/public/cast_media_shlib.h" | 5 #include "chromecast/public/cast_media_shlib.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 bool CastMediaShlib::SupportsMediaClockRateChange() { | 45 bool CastMediaShlib::SupportsMediaClockRateChange() { |
| 46 return false; | 46 return false; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, | 49 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, |
| 50 VideoProfile profile, | 50 VideoProfile profile, |
| 51 int level) { | 51 int level) { |
| 52 return (codec == kCodecH264 || codec == kCodecVP8); | 52 return (codec == kCodecH264 || codec == kCodecVP8); |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) { |
| 56 return config.codec == kCodecAAC || config.codec == kCodecMP3 || |
| 57 config.codec == kCodecPCM; |
| 58 } |
| 59 |
| 55 } // namespace media | 60 } // namespace media |
| 56 } // namespace chromecast | 61 } // namespace chromecast |
| OLD | NEW |