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

Side by Side Diff: media/formats/webm/webm_stream_parser.h

Issue 1735003004: Implement reading of media track info from WebM and MP4 containers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@demuxer-tracks2
Patch Set: rebase Created 4 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ 5 #ifndef MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_
6 #define MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ 6 #define MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "media/base/audio_decoder_config.h" 13 #include "media/base/audio_decoder_config.h"
14 #include "media/base/byte_queue.h" 14 #include "media/base/byte_queue.h"
15 #include "media/base/media_export.h"
15 #include "media/base/stream_parser.h" 16 #include "media/base/stream_parser.h"
16 #include "media/base/video_decoder_config.h" 17 #include "media/base/video_decoder_config.h"
17 18
18 namespace media { 19 namespace media {
19 20
20 class WebMClusterParser; 21 class WebMClusterParser;
21 22
22 class WebMStreamParser : public StreamParser { 23 class MEDIA_EXPORT WebMStreamParser : public StreamParser {
23 public: 24 public:
24 WebMStreamParser(); 25 WebMStreamParser();
25 ~WebMStreamParser() override; 26 ~WebMStreamParser() override;
26 27
27 // StreamParser implementation. 28 // StreamParser implementation.
28 void Init(const InitCB& init_cb, 29 void Init(const InitCB& init_cb,
29 const NewConfigCB& config_cb, 30 const NewConfigCB& config_cb,
30 const NewBuffersCB& new_buffers_cb, 31 const NewBuffersCB& new_buffers_cb,
31 bool ignore_text_tracks, 32 bool ignore_text_tracks,
32 const EncryptedMediaInitDataCB& encrypted_media_init_data_cb, 33 const EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 84
84 scoped_ptr<WebMClusterParser> cluster_parser_; 85 scoped_ptr<WebMClusterParser> cluster_parser_;
85 ByteQueue byte_queue_; 86 ByteQueue byte_queue_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(WebMStreamParser); 88 DISALLOW_COPY_AND_ASSIGN(WebMStreamParser);
88 }; 89 };
89 90
90 } // namespace media 91 } // namespace media
91 92
92 #endif // MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ 93 #endif // MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « media/formats/mp4/mp4_stream_parser_unittest.cc ('k') | media/formats/webm/webm_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698