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_MP4_MP4_STREAM_PARSER_H_ | 5 #ifndef MEDIA_MP4_MP4_STREAM_PARSER_H_ |
6 #define MEDIA_MP4_MP4_STREAM_PARSER_H_ | 6 #define MEDIA_MP4_MP4_STREAM_PARSER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
13 #include "media/base/stream_parser.h" | 13 #include "media/base/stream_parser.h" |
| 14 #include "media/mp4/aac.h" |
14 #include "media/mp4/offset_byte_queue.h" | 15 #include "media/mp4/offset_byte_queue.h" |
15 #include "media/mp4/track_run_iterator.h" | 16 #include "media/mp4/track_run_iterator.h" |
16 | 17 |
17 namespace media { | 18 namespace media { |
18 namespace mp4 { | 19 namespace mp4 { |
19 | 20 |
20 struct Movie; | 21 struct Movie; |
21 class BoxReader; | 22 class BoxReader; |
22 | 23 |
23 class MEDIA_EXPORT MP4StreamParser : public StreamParser { | 24 class MEDIA_EXPORT MP4StreamParser : public StreamParser { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 int64 mdat_tail_; | 78 int64 mdat_tail_; |
78 | 79 |
79 scoped_ptr<mp4::Movie> moov_; | 80 scoped_ptr<mp4::Movie> moov_; |
80 scoped_ptr<mp4::TrackRunIterator> runs_; | 81 scoped_ptr<mp4::TrackRunIterator> runs_; |
81 | 82 |
82 bool has_audio_; | 83 bool has_audio_; |
83 bool has_video_; | 84 bool has_video_; |
84 uint32 audio_track_id_; | 85 uint32 audio_track_id_; |
85 uint32 video_track_id_; | 86 uint32 video_track_id_; |
86 | 87 |
| 88 // We keep them around to avoid having to go digging through the moov with |
| 89 // every frame. |
| 90 AAC aac_; |
| 91 |
87 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); | 92 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); |
88 }; | 93 }; |
89 | 94 |
90 } // namespace mp4 | 95 } // namespace mp4 |
91 } // namespace media | 96 } // namespace media |
92 | 97 |
93 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_ | 98 #endif // MEDIA_MP4_MP4_STREAM_PARSER_H_ |
OLD | NEW |