Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(868)

Side by Side Diff: media/base/mime_util_internal.h

Issue 1837963004: Make CanPlayType return "probably" for HI10P h264 videos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool is_encrypted) const; 110 bool is_encrypted) const;
111 111
112 // Converts a codec ID into an Codec enum value and indicates 112 // Converts a codec ID into an Codec enum value and indicates
113 // whether the conversion was ambiguous. 113 // whether the conversion was ambiguous.
114 // Returns true if this method was able to map |codec_id| to a specific 114 // Returns true if this method was able to map |codec_id| to a specific
115 // Codec enum value. |codec| and |is_ambiguous| are only valid if true 115 // Codec enum value. |codec| and |is_ambiguous| are only valid if true
116 // is returned. Otherwise their value is undefined after the call. 116 // is returned. Otherwise their value is undefined after the call.
117 // |is_ambiguous| is true if |codec_id| did not have enough information to 117 // |is_ambiguous| is true if |codec_id| did not have enough information to
118 // unambiguously determine the proper Codec enum value. If |is_ambiguous| 118 // unambiguously determine the proper Codec enum value. If |is_ambiguous|
119 // is true |codec| contains the best guess for the intended Codec enum value. 119 // is true |codec| contains the best guess for the intended Codec enum value.
120 // |is_encrypted| means the codec will be used with encrypted blocks.
120 bool StringToCodec(const std::string& codec_id, 121 bool StringToCodec(const std::string& codec_id,
121 Codec* codec, 122 Codec* codec,
122 bool* is_ambiguous) const; 123 bool* is_ambiguous,
124 bool is_encrypted) const;
123 125
124 // Returns true if |codec| is supported when contained in 126 // Returns true if |codec| is supported when contained in
125 // |mime_type_lower_case|. Note: This method will always return false for 127 // |mime_type_lower_case|. Note: This method will always return false for
126 // proprietary codecs if |allow_proprietary_codecs_| is set to false. 128 // proprietary codecs if |allow_proprietary_codecs_| is set to false.
127 // |is_encrypted| means the codec will be used with encrypted blocks. 129 // |is_encrypted| means the codec will be used with encrypted blocks.
128 bool IsCodecSupported(Codec codec, 130 bool IsCodecSupported(Codec codec,
129 const std::string& mime_type_lower_case, 131 const std::string& mime_type_lower_case,
130 bool is_encrypted) const; 132 bool is_encrypted) const;
131 133
132 // Returns true if |codec| refers to a proprietary codec. 134 // Returns true if |codec| refers to a proprietary codec.
(...skipping 27 matching lines...) Expand all
160 // Lookup table for string compare based string -> Codec mappings. 162 // Lookup table for string compare based string -> Codec mappings.
161 StringToCodecMappings string_to_codec_map_; 163 StringToCodecMappings string_to_codec_map_;
162 164
163 DISALLOW_COPY_AND_ASSIGN(MimeUtil); 165 DISALLOW_COPY_AND_ASSIGN(MimeUtil);
164 }; 166 };
165 167
166 } // namespace internal 168 } // namespace internal
167 } // namespace media 169 } // namespace media
168 170
169 #endif // MEDIA_BASE_MIME_UTIL_INTERNAL_H_ 171 #endif // MEDIA_BASE_MIME_UTIL_INTERNAL_H_
OLDNEW
« no previous file with comments | « content/browser/media/media_canplaytype_browsertest.cc ('k') | media/base/mime_util_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698