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

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

Issue 1933793003: Parse VPCodecConfiguration and extract VP9 profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: vpcC should inherit from FullBox instead of Box Created 4 years, 6 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 typedef std::vector<uint8_t> PPS; 217 typedef std::vector<uint8_t> PPS;
218 218
219 std::vector<SPS> sps_list; 219 std::vector<SPS> sps_list;
220 std::vector<PPS> pps_list; 220 std::vector<PPS> pps_list;
221 221
222 private: 222 private:
223 bool ParseInternal(BufferReader* reader, 223 bool ParseInternal(BufferReader* reader,
224 const scoped_refptr<MediaLog>& media_log); 224 const scoped_refptr<MediaLog>& media_log);
225 }; 225 };
226 226
227 struct MEDIA_EXPORT VPCodecConfigurationRecord : Box {
228 DECLARE_BOX_METHODS(VPCodecConfigurationRecord);
229
230 VideoCodecProfile profile;
231 };
232
227 struct MEDIA_EXPORT PixelAspectRatioBox : Box { 233 struct MEDIA_EXPORT PixelAspectRatioBox : Box {
228 DECLARE_BOX_METHODS(PixelAspectRatioBox); 234 DECLARE_BOX_METHODS(PixelAspectRatioBox);
229 235
230 uint32_t h_spacing; 236 uint32_t h_spacing;
231 uint32_t v_spacing; 237 uint32_t v_spacing;
232 }; 238 };
233 239
234 struct MEDIA_EXPORT VideoSampleEntry : Box { 240 struct MEDIA_EXPORT VideoSampleEntry : Box {
235 DECLARE_BOX_METHODS(VideoSampleEntry); 241 DECLARE_BOX_METHODS(VideoSampleEntry);
236 242
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 std::vector<TrackFragment> tracks; 477 std::vector<TrackFragment> tracks;
472 std::vector<ProtectionSystemSpecificHeader> pssh; 478 std::vector<ProtectionSystemSpecificHeader> pssh;
473 }; 479 };
474 480
475 #undef DECLARE_BOX 481 #undef DECLARE_BOX
476 482
477 } // namespace mp4 483 } // namespace mp4
478 } // namespace media 484 } // namespace media
479 485
480 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ 486 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_
OLDNEW
« no previous file with comments | « no previous file | media/formats/mp4/box_definitions.cc » ('j') | media/formats/mp4/box_definitions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698