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

Side by Side Diff: media/filters/stream_parser_factory.h

Issue 2226443002: Support multiple media tracks in MSE / ChunkDemuxer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed integer overflow Created 4 years, 3 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/filters/media_source_state.cc ('k') | media/filters/stream_parser_factory.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_FILTERS_STREAM_PARSER_FACTORY_H_ 5 #ifndef MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_
6 #define MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ 6 #define MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 // Checks to see if the specified |type| and |codecs| list are supported. 21 // Checks to see if the specified |type| and |codecs| list are supported.
22 // Returns true if |type| and all codecs listed in |codecs| are supported. 22 // Returns true if |type| and all codecs listed in |codecs| are supported.
23 static bool IsTypeSupported( 23 static bool IsTypeSupported(
24 const std::string& type, const std::vector<std::string>& codecs); 24 const std::string& type, const std::vector<std::string>& codecs);
25 25
26 // Creates a new StreamParser object if the specified |type| and |codecs| list 26 // Creates a new StreamParser object if the specified |type| and |codecs| list
27 // are supported. |media_log| can be used to report errors if there is 27 // are supported. |media_log| can be used to report errors if there is
28 // something wrong with |type| or the codec IDs in |codecs|. 28 // something wrong with |type| or the codec IDs in |codecs|.
29 // Returns a new StreamParser object if |type| and all codecs listed in 29 // Returns a new StreamParser object if |type| and all codecs listed in
30 // |codecs| are supported. 30 // |codecs| are supported.
31 // |has_audio| is true if an audio codec was specified. 31 // Returns NULL otherwise.
32 // |has_video| is true if a video codec was specified.
33 // Returns NULL otherwise. The values of |has_audio| and |has_video| are
34 // undefined.
35 static std::unique_ptr<StreamParser> Create( 32 static std::unique_ptr<StreamParser> Create(
36 const std::string& type, 33 const std::string& type,
37 const std::vector<std::string>& codecs, 34 const std::vector<std::string>& codecs,
38 const scoped_refptr<MediaLog>& media_log, 35 const scoped_refptr<MediaLog>& media_log);
39 bool* has_audio,
40 bool* has_video);
41 }; 36 };
42 37
43 } // namespace media 38 } // namespace media
44 39
45 #endif // MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_ 40 #endif // MEDIA_FILTERS_STREAM_PARSER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/filters/media_source_state.cc ('k') | media/filters/stream_parser_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698