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

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

Issue 812643005: Re-add AC3/EAC3 audio demuxing support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: buildfix Created 4 years, 11 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/es_descriptor.h ('k') | media/formats/mp4/mp4_stream_parser.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_FOURCCS_H_ 5 #ifndef MEDIA_FORMATS_MP4_FOURCCS_H_
6 #define MEDIA_FORMATS_MP4_FOURCCS_H_ 6 #define MEDIA_FORMATS_MP4_FOURCCS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "media/media_features.h"
11
10 namespace media { 12 namespace media {
11 namespace mp4 { 13 namespace mp4 {
12 14
13 enum FourCC { 15 enum FourCC {
14 FOURCC_NULL = 0, 16 FOURCC_NULL = 0,
17 #if BUILDFLAG(ENABLE_AC3_EAC3_AUDIO_DEMUXING)
18 FOURCC_AC3 = 0x61632d33, // "ac-3"
19 FOURCC_EAC3 = 0x65632d33, // "ec-3"
20 #endif
15 FOURCC_AVC1 = 0x61766331, 21 FOURCC_AVC1 = 0x61766331,
16 FOURCC_AVC3 = 0x61766333, 22 FOURCC_AVC3 = 0x61766333,
17 FOURCC_AVCC = 0x61766343, 23 FOURCC_AVCC = 0x61766343,
18 FOURCC_BLOC = 0x626C6F63, 24 FOURCC_BLOC = 0x626C6F63,
19 FOURCC_CENC = 0x63656e63, 25 FOURCC_CENC = 0x63656e63,
20 FOURCC_CO64 = 0x636f3634, 26 FOURCC_CO64 = 0x636f3634,
21 FOURCC_CTTS = 0x63747473, 27 FOURCC_CTTS = 0x63747473,
22 FOURCC_DINF = 0x64696e66, 28 FOURCC_DINF = 0x64696e66,
23 FOURCC_EDTS = 0x65647473, 29 FOURCC_EDTS = 0x65647473,
24 FOURCC_EMSG = 0x656d7367, 30 FOURCC_EMSG = 0x656d7367,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 buf[2] = (fourcc >> 8) & 0xff; 106 buf[2] = (fourcc >> 8) & 0xff;
101 buf[3] = (fourcc) & 0xff; 107 buf[3] = (fourcc) & 0xff;
102 buf[4] = 0; 108 buf[4] = 0;
103 return std::string(buf); 109 return std::string(buf);
104 } 110 }
105 111
106 } // namespace mp4 112 } // namespace mp4
107 } // namespace media 113 } // namespace media
108 114
109 #endif // MEDIA_FORMATS_MP4_FOURCCS_H_ 115 #endif // MEDIA_FORMATS_MP4_FOURCCS_H_
OLDNEW
« no previous file with comments | « media/formats/mp4/es_descriptor.h ('k') | media/formats/mp4/mp4_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698