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_MP4_MP4_STREAM_PARSER_H_ | 5 #ifndef MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_ |
6 #define MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_ | 6 #define MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // The highest end offset in the current moof. This offset is | 111 // The highest end offset in the current moof. This offset is |
112 // relative to |moof_head_|. This value is used to make sure we have collected | 112 // relative to |moof_head_|. This value is used to make sure we have collected |
113 // enough bytes to parse all samples and aux_info in the current moof. | 113 // enough bytes to parse all samples and aux_info in the current moof. |
114 int64_t highest_end_offset_; | 114 int64_t highest_end_offset_; |
115 | 115 |
116 std::unique_ptr<mp4::Movie> moov_; | 116 std::unique_ptr<mp4::Movie> moov_; |
117 std::unique_ptr<mp4::TrackRunIterator> runs_; | 117 std::unique_ptr<mp4::TrackRunIterator> runs_; |
118 | 118 |
119 bool has_audio_; | 119 bool has_audio_; |
120 bool has_video_; | 120 bool has_video_; |
121 uint32_t audio_track_id_; | 121 std::set<uint32_t> audio_track_ids_; |
122 uint32_t video_track_id_; | 122 std::set<uint32_t> video_track_ids_; |
123 // The object types allowed for audio tracks. | 123 // The object types allowed for audio tracks. |
124 std::set<int> audio_object_types_; | 124 std::set<int> audio_object_types_; |
125 bool has_sbr_; | 125 bool has_sbr_; |
126 bool is_audio_track_encrypted_; | 126 std::map<uint32_t, bool> is_track_encrypted_; |
127 bool is_video_track_encrypted_; | |
128 | 127 |
129 // Tracks the number of MEDIA_LOGs for skipping top level boxes. Useful to | 128 // Tracks the number of MEDIA_LOGs for skipping top level boxes. Useful to |
130 // prevent log spam. | 129 // prevent log spam. |
131 int num_top_level_box_skipped_; | 130 int num_top_level_box_skipped_; |
132 | 131 |
133 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); | 132 DISALLOW_COPY_AND_ASSIGN(MP4StreamParser); |
134 }; | 133 }; |
135 | 134 |
136 } // namespace mp4 | 135 } // namespace mp4 |
137 } // namespace media | 136 } // namespace media |
138 | 137 |
139 #endif // MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_ | 138 #endif // MEDIA_FORMATS_MP4_MP4_STREAM_PARSER_H_ |
OLD | NEW |