| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "media/base/mime_util.h" | 5 #include "media/base/mime_util.h" |
| 6 | 6 |
| 7 #include "media/base/mime_util_internal.h" | 7 #include "media/base/mime_util_internal.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const std::vector<std::string>& codecs) { | 28 const std::vector<std::string>& codecs) { |
| 29 return GetMimeUtil()->IsSupportedMediaFormat(mime_type, codecs, true); | 29 return GetMimeUtil()->IsSupportedMediaFormat(mime_type, codecs, true); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void SplitCodecsToVector(const std::string& codecs, | 32 void SplitCodecsToVector(const std::string& codecs, |
| 33 std::vector<std::string>* codecs_out, | 33 std::vector<std::string>* codecs_out, |
| 34 bool strip) { | 34 bool strip) { |
| 35 GetMimeUtil()->SplitCodecsToVector(codecs, codecs_out, strip); | 35 GetMimeUtil()->SplitCodecsToVector(codecs, codecs_out, strip); |
| 36 } | 36 } |
| 37 | 37 |
| 38 MEDIA_EXPORT bool ParseVideoCodecString(const std::string& mime_type, |
| 39 const std::string& codec_id, |
| 40 bool* ambiguous_codec_string, |
| 41 VideoCodec* out_codec, |
| 42 VideoCodecProfile* out_profile, |
| 43 uint8_t* out_level, |
| 44 VideoColorSpace* out_colorspace) { |
| 45 return GetMimeUtil()->ParseVideoCodecString( |
| 46 mime_type, codec_id, ambiguous_codec_string, out_codec, out_profile, |
| 47 out_level, out_colorspace); |
| 48 } |
| 49 |
| 50 MEDIA_EXPORT bool ParseAudioCodecString(const std::string& mime_type, |
| 51 const std::string& codec_id, |
| 52 bool* ambiguous_codec_string, |
| 53 AudioCodec* out_codec) { |
| 54 return GetMimeUtil()->ParseAudioCodecString( |
| 55 mime_type, codec_id, ambiguous_codec_string, out_codec); |
| 56 } |
| 57 |
| 38 void RemoveProprietaryMediaTypesAndCodecsForTests() { | 58 void RemoveProprietaryMediaTypesAndCodecsForTests() { |
| 39 GetMimeUtil()->RemoveProprietaryMediaTypesAndCodecs(); | 59 GetMimeUtil()->RemoveProprietaryMediaTypesAndCodecs(); |
| 40 } | 60 } |
| 41 | 61 |
| 42 } // namespace media | 62 } // namespace media |
| OLD | NEW |