OLD | NEW |
---|---|
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_MP2T_ES_PARSER_ADTS_H_ | 5 #ifndef MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_ |
6 #define MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_ | 6 #define MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "media/base/audio_decoder_config.h" | 15 #include "media/base/audio_decoder_config.h" |
16 #include "media/base/media_export.h" | |
16 #include "media/formats/mp2t/es_parser.h" | 17 #include "media/formats/mp2t/es_parser.h" |
17 | 18 |
18 namespace media { | 19 namespace media { |
19 class AudioTimestampHelper; | 20 class AudioTimestampHelper; |
20 class BitReader; | 21 class BitReader; |
21 class OffsetByteQueue; | 22 class OffsetByteQueue; |
22 class StreamParserBuffer; | 23 class StreamParserBuffer; |
23 } | 24 } |
24 | 25 |
25 namespace media { | 26 namespace media { |
26 namespace mp2t { | 27 namespace mp2t { |
27 | 28 |
28 class EsParserAdts : public EsParser { | 29 class MEDIA_EXPORT EsParserAdts : public EsParser { |
wolenetz
2014/07/16 20:35:30
nit: seems to me it would be good to add similar M
| |
29 public: | 30 public: |
30 typedef base::Callback<void(const AudioDecoderConfig&)> NewAudioConfigCB; | 31 typedef base::Callback<void(const AudioDecoderConfig&)> NewAudioConfigCB; |
31 | 32 |
32 EsParserAdts(const NewAudioConfigCB& new_audio_config_cb, | 33 EsParserAdts(const NewAudioConfigCB& new_audio_config_cb, |
33 const EmitBufferCB& emit_buffer_cb, | 34 const EmitBufferCB& emit_buffer_cb, |
34 bool sbr_in_mimetype); | 35 bool sbr_in_mimetype); |
35 virtual ~EsParserAdts(); | 36 virtual ~EsParserAdts(); |
36 | 37 |
37 // EsParser implementation. | 38 // EsParser implementation. |
38 virtual bool Parse(const uint8* buf, int size, | 39 virtual bool Parse(const uint8* buf, int size, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 AudioDecoderConfig last_audio_decoder_config_; | 87 AudioDecoderConfig last_audio_decoder_config_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(EsParserAdts); | 89 DISALLOW_COPY_AND_ASSIGN(EsParserAdts); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace mp2t | 92 } // namespace mp2t |
92 } // namespace media | 93 } // namespace media |
93 | 94 |
94 #endif | 95 #endif |
95 | 96 |
OLD | NEW |