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

Side by Side Diff: media/base/mime_util.cc

Issue 2864593003: Add MimeUtil::Parse{Audio|Video}CodecString (Closed)
Patch Set: Feedback && Proprietary Codecs fix && Rebase Created 3 years, 7 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
« no previous file with comments | « media/base/mime_util.h ('k') | media/base/mime_util_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
OLDNEW
« no previous file with comments | « media/base/mime_util.h ('k') | media/base/mime_util_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698