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

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

Issue 1289923003: Refactor AnnexB bitstream conversion for AVC/H.264 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@annexb-avc-fix
Patch Set: Added a few comments Created 5 years, 4 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/bitstream_converter.cc ('k') | media/formats/mp4/box_definitions.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_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
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
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_
OLDNEW
« no previous file with comments | « media/formats/mp4/bitstream_converter.cc ('k') | media/formats/mp4/box_definitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698