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 #ifndef MEDIA_BASE_MIME_UTIL_INTERNAL_H_ | 5 #ifndef MEDIA_BASE_MIME_UTIL_INTERNAL_H_ |
6 #define MEDIA_BASE_MIME_UTIL_INTERNAL_H_ | 6 #define MEDIA_BASE_MIME_UTIL_INTERNAL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 bool has_platform_vp8_decoder = false; | 56 bool has_platform_vp8_decoder = false; |
57 bool has_platform_vp9_decoder = false; | 57 bool has_platform_vp9_decoder = false; |
58 bool supports_opus = false; | 58 bool supports_opus = false; |
59 }; | 59 }; |
60 | 60 |
61 // See mime_util.h for more information on these methods. | 61 // See mime_util.h for more information on these methods. |
62 bool IsSupportedMediaMimeType(const std::string& mime_type) const; | 62 bool IsSupportedMediaMimeType(const std::string& mime_type) const; |
63 void SplitCodecsToVector(const std::string& codecs, | 63 void SplitCodecsToVector(const std::string& codecs, |
64 std::vector<std::string>* codecs_out, | 64 std::vector<std::string>* codecs_out, |
65 bool strip); | 65 bool strip); |
| 66 bool ParseVideoCodecString(const std::string& mime_type, |
| 67 const std::string& codec_id, |
| 68 bool* out_is_ambiguous, |
| 69 VideoCodec* out_codec, |
| 70 VideoCodecProfile* out_profile, |
| 71 uint8_t* out_level, |
| 72 VideoColorSpace* out_colorspace); |
| 73 bool ParseAudioCodecString(const std::string& mime_type, |
| 74 const std::string& codec_id, |
| 75 bool* out_is_ambiguous, |
| 76 AudioCodec* out_codec); |
66 SupportsType IsSupportedMediaFormat(const std::string& mime_type, | 77 SupportsType IsSupportedMediaFormat(const std::string& mime_type, |
67 const std::vector<std::string>& codecs, | 78 const std::vector<std::string>& codecs, |
68 bool is_encrypted) const; | 79 bool is_encrypted) const; |
69 | 80 |
70 void RemoveProprietaryMediaTypesAndCodecs(); | 81 void RemoveProprietaryMediaTypesAndCodecs(); |
71 | 82 |
72 // Checks android platform specific codec restrictions. Returns true if | 83 // Checks android platform specific codec restrictions. Returns true if |
73 // |codec| is supported when contained in |mime_type_lower_case|. | 84 // |codec| is supported when contained in |mime_type_lower_case|. |
74 // |is_encrypted| means the codec will be used with encrypted blocks. | 85 // |is_encrypted| means the codec will be used with encrypted blocks. |
75 // |platform_info| describes the availability of various platform features; | 86 // |platform_info| describes the availability of various platform features; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // Whether proprietary codec support should be advertised to callers. | 188 // Whether proprietary codec support should be advertised to callers. |
178 bool allow_proprietary_codecs_; | 189 bool allow_proprietary_codecs_; |
179 | 190 |
180 DISALLOW_COPY_AND_ASSIGN(MimeUtil); | 191 DISALLOW_COPY_AND_ASSIGN(MimeUtil); |
181 }; | 192 }; |
182 | 193 |
183 } // namespace internal | 194 } // namespace internal |
184 } // namespace media | 195 } // namespace media |
185 | 196 |
186 #endif // MEDIA_BASE_MIME_UTIL_INTERNAL_H_ | 197 #endif // MEDIA_BASE_MIME_UTIL_INTERNAL_H_ |
OLD | NEW |