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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 DECLARE_BOX_METHODS(ProtectionSchemeInfo); | 141 DECLARE_BOX_METHODS(ProtectionSchemeInfo); |
142 | 142 |
143 OriginalFormat format; | 143 OriginalFormat format; |
144 SchemeType type; | 144 SchemeType type; |
145 SchemeInfo info; | 145 SchemeInfo info; |
146 }; | 146 }; |
147 | 147 |
148 struct MEDIA_EXPORT MovieHeader : Box { | 148 struct MEDIA_EXPORT MovieHeader : Box { |
149 DECLARE_BOX_METHODS(MovieHeader); | 149 DECLARE_BOX_METHODS(MovieHeader); |
150 | 150 |
| 151 uint8_t version; |
151 uint64_t creation_time; | 152 uint64_t creation_time; |
152 uint64_t modification_time; | 153 uint64_t modification_time; |
153 uint32_t timescale; | 154 uint32_t timescale; |
154 uint64_t duration; | 155 uint64_t duration; |
155 int32_t rate; | 156 int32_t rate; |
156 int16_t volume; | 157 int16_t volume; |
157 uint32_t next_track_id; | 158 uint32_t next_track_id; |
158 }; | 159 }; |
159 | 160 |
160 struct MEDIA_EXPORT TrackHeader : Box { | 161 struct MEDIA_EXPORT TrackHeader : Box { |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 std::vector<TrackFragment> tracks; | 478 std::vector<TrackFragment> tracks; |
478 std::vector<ProtectionSystemSpecificHeader> pssh; | 479 std::vector<ProtectionSystemSpecificHeader> pssh; |
479 }; | 480 }; |
480 | 481 |
481 #undef DECLARE_BOX | 482 #undef DECLARE_BOX |
482 | 483 |
483 } // namespace mp4 | 484 } // namespace mp4 |
484 } // namespace media | 485 } // namespace media |
485 | 486 |
486 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ | 487 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ |
OLD | NEW |