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

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

Issue 1826583003: MSE: Record counts of detected MSE audio, video and text tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another attempt to fix that link failure. MEDIA_EXPORT should do it! Created 4 years, 8 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/mp2t/mp2t_stream_parser.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "media/base/decrypt_config.h" 15 #include "media/base/decrypt_config.h"
16 #include "media/base/media_export.h" 16 #include "media/base/media_export.h"
17 #include "media/base/media_log.h" 17 #include "media/base/media_log.h"
18 #include "media/base/video_codecs.h" 18 #include "media/base/video_codecs.h"
19 #include "media/formats/mp4/aac.h" 19 #include "media/formats/mp4/aac.h"
20 #include "media/formats/mp4/avc.h" 20 #include "media/formats/mp4/avc.h"
21 #include "media/formats/mp4/box_reader.h" 21 #include "media/formats/mp4/box_reader.h"
22 #include "media/formats/mp4/fourccs.h" 22 #include "media/formats/mp4/fourccs.h"
23 23
24 namespace media { 24 namespace media {
25 namespace mp4 { 25 namespace mp4 {
26 26
27 enum TrackType { 27 enum TrackType { kInvalid = 0, kVideo, kAudio, kText, kHint };
28 kInvalid = 0,
29 kVideo,
30 kAudio,
31 kHint
32 };
33 28
34 enum SampleFlags { 29 enum SampleFlags {
35 kSampleIsNonSyncSample = 0x10000 30 kSampleIsNonSyncSample = 0x10000
36 }; 31 };
37 32
38 #define DECLARE_BOX_METHODS(T) \ 33 #define DECLARE_BOX_METHODS(T) \
39 T(); \ 34 T(); \
40 ~T() override; \ 35 ~T() override; \
41 bool Parse(BoxReader* reader) override; \ 36 bool Parse(BoxReader* reader) override; \
42 FourCC BoxType() const override; 37 FourCC BoxType() const override;
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 std::vector<TrackFragment> tracks; 468 std::vector<TrackFragment> tracks;
474 std::vector<ProtectionSystemSpecificHeader> pssh; 469 std::vector<ProtectionSystemSpecificHeader> pssh;
475 }; 470 };
476 471
477 #undef DECLARE_BOX 472 #undef DECLARE_BOX
478 473
479 } // namespace mp4 474 } // namespace mp4
480 } // namespace media 475 } // namespace media
481 476
482 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_ 477 #endif // MEDIA_FORMATS_MP4_BOX_DEFINITIONS_H_
OLDNEW
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser.cc ('k') | media/formats/mp4/box_definitions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698