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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <memory> | 11 #include <memory> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "media/base/audio_decoder_config.h" | 18 #include "media/base/audio_decoder_config.h" |
19 #include "media/base/media_export.h" | 19 #include "media/base/media_export.h" |
20 #include "media/formats/mp2t/es_parser.h" | 20 #include "media/formats/mp2t/es_parser.h" |
21 #include "media/formats/mpeg/adts_stream_parser.h" | 21 #include "media/formats/mpeg/adts_stream_parser.h" |
22 | 22 |
23 namespace media { | 23 namespace media { |
24 class AudioTimestampHelper; | 24 class AudioTimestampHelper; |
25 class BitReader; | |
26 class OffsetByteQueue; | |
27 class StreamParserBuffer; | |
28 } | 25 } |
29 | 26 |
30 namespace media { | 27 namespace media { |
31 namespace mp2t { | 28 namespace mp2t { |
32 | 29 |
33 class MEDIA_EXPORT EsParserAdts : public EsParser { | 30 class MEDIA_EXPORT EsParserAdts : public EsParser { |
34 public: | 31 public: |
35 typedef base::Callback<void(const AudioDecoderConfig&)> NewAudioConfigCB; | 32 typedef base::Callback<void(const AudioDecoderConfig&)> NewAudioConfigCB; |
36 | 33 |
37 EsParserAdts(const NewAudioConfigCB& new_audio_config_cb, | 34 EsParserAdts(const NewAudioConfigCB& new_audio_config_cb, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 79 |
83 ADTSStreamParser adts_parser_; | 80 ADTSStreamParser adts_parser_; |
84 | 81 |
85 DISALLOW_COPY_AND_ASSIGN(EsParserAdts); | 82 DISALLOW_COPY_AND_ASSIGN(EsParserAdts); |
86 }; | 83 }; |
87 | 84 |
88 } // namespace mp2t | 85 } // namespace mp2t |
89 } // namespace media | 86 } // namespace media |
90 | 87 |
91 #endif // MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_ | 88 #endif // MEDIA_FORMATS_MP2T_ES_PARSER_ADTS_H_ |
OLD | NEW |