| 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 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ | 5 #ifndef CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ |
| 6 #define CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ | 6 #define CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "chromecast/public/media/decoder_config.h" |
| 11 #include "media/base/mime_util.h" | 12 #include "media/base/mime_util.h" |
| 13 #include "media/base/video_codecs.h" |
| 12 | 14 |
| 13 // TODO(slan|servolk): remove when this definition exists in //media. | 15 // TODO(slan|servolk): remove when this definition exists in //media. |
| 14 namespace media { | 16 namespace media { |
| 15 typedef base::Callback<bool(const std::string&)> IsCodecSupportedCB; | 17 typedef base::Callback<bool(const std::string&)> IsCodecSupportedCB; |
| 16 } | 18 } |
| 17 | 19 |
| 18 namespace chromecast { | 20 namespace chromecast { |
| 19 namespace media { | 21 namespace media { |
| 20 | 22 |
| 21 // Returns the callback to decide whether a given codec (passed in as a string | 23 // Returns the callback to decide whether a given codec (passed in as a string |
| 22 // representation of the codec id conforming to RFC 6381) is supported or not. | 24 // representation of the codec id conforming to RFC 6381) is supported or not. |
| 23 ::media::IsCodecSupportedCB GetIsCodecSupportedOnChromecastCB(); | 25 ::media::IsCodecSupportedCB GetIsCodecSupportedOnChromecastCB(); |
| 24 | 26 |
| 27 VideoCodec ToCastVideoCodec(const ::media::VideoCodec codec); |
| 28 VideoProfile ToCastVideoProfile(const ::media::VideoCodecProfile profile); |
| 29 |
| 25 } // namespace media | 30 } // namespace media |
| 26 } // namespace chromecast | 31 } // namespace chromecast |
| 27 | 32 |
| 28 #endif // CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ | 33 #endif // CHROMECAST_MEDIA_BASE_MEDIA_CODEC_SUPPORT_H_ |
| OLD | NEW |