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

Side by Side Diff: media/formats/mp4/mp4_stream_parser.h

Issue 2254733006: Allow MP4 parser to handle multiple audio and video tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merged-buffers-map
Patch Set: CR feedback Created 4 years, 3 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
« no previous file with comments | « media/formats/mp4/avc.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « media/formats/mp4/avc.cc ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698