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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 DECLARE_BOX_METHODS(VideoSampleEntry); | 200 DECLARE_BOX_METHODS(VideoSampleEntry); |
201 | 201 |
202 FourCC format; | 202 FourCC format; |
203 uint16 data_reference_index; | 203 uint16 data_reference_index; |
204 uint16 width; | 204 uint16 width; |
205 uint16 height; | 205 uint16 height; |
206 | 206 |
207 PixelAspectRatioBox pixel_aspect; | 207 PixelAspectRatioBox pixel_aspect; |
208 ProtectionSchemeInfo sinf; | 208 ProtectionSchemeInfo sinf; |
209 | 209 |
210 // Currently expected to be present regardless of format. | 210 bool IsFormatValid() const; |
211 AVCDecoderConfigurationRecord avcc; | |
212 | 211 |
213 bool IsFormatValid() const; | 212 scoped_refptr<BitstreamConverter> frame_bitstream_converter; |
214 }; | 213 }; |
215 | 214 |
216 struct MEDIA_EXPORT ElementaryStreamDescriptor : Box { | 215 struct MEDIA_EXPORT ElementaryStreamDescriptor : Box { |
217 DECLARE_BOX_METHODS(ElementaryStreamDescriptor); | 216 DECLARE_BOX_METHODS(ElementaryStreamDescriptor); |
218 | 217 |
219 uint8 object_type; | 218 uint8 object_type; |
220 AAC aac; | 219 AAC aac; |
221 }; | 220 }; |
222 | 221 |
223 struct MEDIA_EXPORT AudioSampleEntry : Box { | 222 struct MEDIA_EXPORT AudioSampleEntry : Box { |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 std::vector<TrackFragment> tracks; | 440 std::vector<TrackFragment> tracks; |
442 std::vector<ProtectionSystemSpecificHeader> pssh; | 441 std::vector<ProtectionSystemSpecificHeader> pssh; |
443 }; | 442 }; |
444 | 443 |
445 #undef DECLARE_BOX | 444 #undef DECLARE_BOX |
446 | 445 |
447 } // namespace mp4 | 446 } // namespace mp4 |
448 } // namespace media | 447 } // namespace media |
449 | 448 |
450 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ | 449 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ |
OLD | NEW |