OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_STREAM_PARSER_H_ | 5 #ifndef MEDIA_BASE_STREAM_PARSER_H_ |
6 #define MEDIA_BASE_STREAM_PARSER_H_ | 6 #define MEDIA_BASE_STREAM_PARSER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
12 #include <map> | 12 #include <map> |
13 #include <memory> | 13 #include <memory> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/callback_forward.h" | 17 #include "base/callback_forward.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "media/base/demuxer_stream.h" | 21 #include "media/base/demuxer_stream.h" |
22 #include "media/base/eme_constants.h" | 22 #include "media/base/eme_constants.h" |
23 #include "media/base/media_export.h" | 23 #include "media/base/media_export.h" |
24 #include "media/base/media_log.h" | |
25 | 24 |
26 namespace media { | 25 namespace media { |
27 | 26 |
| 27 class MediaLog; |
28 class MediaTracks; | 28 class MediaTracks; |
29 class StreamParserBuffer; | 29 class StreamParserBuffer; |
30 class TextTrackConfig; | 30 class TextTrackConfig; |
31 | 31 |
32 // Abstract interface for parsing media byte streams. | 32 // Abstract interface for parsing media byte streams. |
33 class MEDIA_EXPORT StreamParser { | 33 class MEDIA_EXPORT StreamParser { |
34 public: | 34 public: |
35 using BufferQueue = std::deque<scoped_refptr<StreamParserBuffer>>; | 35 using BufferQueue = std::deque<scoped_refptr<StreamParserBuffer>>; |
36 | 36 |
37 // Range of |TrackId| is dependent upon stream parsers. It is currently | 37 // Range of |TrackId| is dependent upon stream parsers. It is currently |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // subtle issues with tie-breaking. See http://crbug.com/338484. | 166 // subtle issues with tie-breaking. See http://crbug.com/338484. |
167 MEDIA_EXPORT bool MergeBufferQueues( | 167 MEDIA_EXPORT bool MergeBufferQueues( |
168 const StreamParser::BufferQueue& audio_buffers, | 168 const StreamParser::BufferQueue& audio_buffers, |
169 const StreamParser::BufferQueue& video_buffers, | 169 const StreamParser::BufferQueue& video_buffers, |
170 const StreamParser::TextBufferQueueMap& text_buffers, | 170 const StreamParser::TextBufferQueueMap& text_buffers, |
171 StreamParser::BufferQueue* merged_buffers); | 171 StreamParser::BufferQueue* merged_buffers); |
172 | 172 |
173 } // namespace media | 173 } // namespace media |
174 | 174 |
175 #endif // MEDIA_BASE_STREAM_PARSER_H_ | 175 #endif // MEDIA_BASE_STREAM_PARSER_H_ |
OLD | NEW |