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_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 namespace media { | 10 namespace media { |
11 namespace mp4 { | 11 namespace mp4 { |
12 | 12 |
13 enum FourCC { | 13 enum FourCC { |
14 FOURCC_NULL = 0, | 14 FOURCC_NULL = 0, |
| 15 #if defined(ENABLE_AC3_EAC3_AUDIO_DEMUXING) |
| 16 // AC3 fourcc codes |
| 17 FOURCC_A52 = 0x61353220, // "a52 " AC3 is also known as A52 |
| 18 FOURCC_AC3 = 0x61633320, // "ac3 " |
| 19 FOURCC_AC_3 = 0x61632d33, // "ac-3" |
| 20 // EAC3 fourcc codes |
| 21 FOURCC_A52b = 0x61353262, // "a52b" |
| 22 FOURCC_EAC3 = 0x65632d33, // "ec-3" |
| 23 #endif |
15 FOURCC_AVC1 = 0x61766331, | 24 FOURCC_AVC1 = 0x61766331, |
16 FOURCC_AVC3 = 0x61766333, | 25 FOURCC_AVC3 = 0x61766333, |
17 FOURCC_AVCC = 0x61766343, | 26 FOURCC_AVCC = 0x61766343, |
18 FOURCC_BLOC = 0x626C6F63, | 27 FOURCC_BLOC = 0x626C6F63, |
19 FOURCC_CENC = 0x63656e63, | 28 FOURCC_CENC = 0x63656e63, |
20 FOURCC_CO64 = 0x636f3634, | 29 FOURCC_CO64 = 0x636f3634, |
21 FOURCC_CTTS = 0x63747473, | 30 FOURCC_CTTS = 0x63747473, |
22 FOURCC_DINF = 0x64696e66, | 31 FOURCC_DINF = 0x64696e66, |
23 FOURCC_EDTS = 0x65647473, | 32 FOURCC_EDTS = 0x65647473, |
24 FOURCC_EMSG = 0x656d7367, | 33 FOURCC_EMSG = 0x656d7367, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 buf[2] = (fourcc >> 8) & 0xff; | 109 buf[2] = (fourcc >> 8) & 0xff; |
101 buf[3] = (fourcc) & 0xff; | 110 buf[3] = (fourcc) & 0xff; |
102 buf[4] = 0; | 111 buf[4] = 0; |
103 return std::string(buf); | 112 return std::string(buf); |
104 } | 113 } |
105 | 114 |
106 } // namespace mp4 | 115 } // namespace mp4 |
107 } // namespace media | 116 } // namespace media |
108 | 117 |
109 #endif // MEDIA_FORMATS_MP4_FOURCCS_H_ | 118 #endif // MEDIA_FORMATS_MP4_FOURCCS_H_ |
OLD | NEW |