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_BOX_DEFINITIONS_H_ | 5 #ifndef MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ |
6 #define MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ | 6 #define MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 uint8 avc_level; | 163 uint8 avc_level; |
164 uint8 length_size; | 164 uint8 length_size; |
165 | 165 |
166 typedef std::vector<uint8> SPS; | 166 typedef std::vector<uint8> SPS; |
167 typedef std::vector<uint8> PPS; | 167 typedef std::vector<uint8> PPS; |
168 | 168 |
169 std::vector<SPS> sps_list; | 169 std::vector<SPS> sps_list; |
170 std::vector<PPS> pps_list; | 170 std::vector<PPS> pps_list; |
171 | 171 |
172 private: | 172 private: |
173 bool ParseInternal(BufferReader* reader); | 173 bool ParseInternal(BufferReader* reader, const LogCB& log_cb); |
174 }; | 174 }; |
175 | 175 |
176 struct MEDIA_EXPORT PixelAspectRatioBox : Box { | 176 struct MEDIA_EXPORT PixelAspectRatioBox : Box { |
177 DECLARE_BOX_METHODS(PixelAspectRatioBox); | 177 DECLARE_BOX_METHODS(PixelAspectRatioBox); |
178 | 178 |
179 uint32 h_spacing; | 179 uint32 h_spacing; |
180 uint32 v_spacing; | 180 uint32 v_spacing; |
181 }; | 181 }; |
182 | 182 |
183 struct MEDIA_EXPORT VideoSampleEntry : Box { | 183 struct MEDIA_EXPORT VideoSampleEntry : Box { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 std::vector<TrackFragment> tracks; | 383 std::vector<TrackFragment> tracks; |
384 std::vector<ProtectionSystemSpecificHeader> pssh; | 384 std::vector<ProtectionSystemSpecificHeader> pssh; |
385 }; | 385 }; |
386 | 386 |
387 #undef DECLARE_BOX | 387 #undef DECLARE_BOX |
388 | 388 |
389 } // namespace mp4 | 389 } // namespace mp4 |
390 } // namespace media | 390 } // namespace media |
391 | 391 |
392 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ | 392 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ |
OLD | NEW |