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

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

Issue 14641006: Support EAC3 (Dolby Digital Plus) codec (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Aaron's comments Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MP4_FOURCCS_H_ 5 #ifndef MEDIA_MP4_FOURCCS_H_
6 #define MEDIA_MP4_FOURCCS_H_ 6 #define MEDIA_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 FOURCC_AVC1 = 0x61766331, 15 FOURCC_AVC1 = 0x61766331,
16 FOURCC_AVCC = 0x61766343, 16 FOURCC_AVCC = 0x61766343,
17 FOURCC_BLOC = 0x626C6F63, 17 FOURCC_BLOC = 0x626C6F63,
18 FOURCC_CENC = 0x63656e63, 18 FOURCC_CENC = 0x63656e63,
19 FOURCC_CO64 = 0x636f3634, 19 FOURCC_CO64 = 0x636f3634,
20 FOURCC_CTTS = 0x63747473, 20 FOURCC_CTTS = 0x63747473,
21 FOURCC_DINF = 0x64696e66, 21 FOURCC_DINF = 0x64696e66,
22 FOURCC_EAC3 = 0x65632d33,
22 FOURCC_EDTS = 0x65647473, 23 FOURCC_EDTS = 0x65647473,
23 FOURCC_ELST = 0x656c7374, 24 FOURCC_ELST = 0x656c7374,
24 FOURCC_ENCA = 0x656e6361, 25 FOURCC_ENCA = 0x656e6361,
25 FOURCC_ENCV = 0x656e6376, 26 FOURCC_ENCV = 0x656e6376,
26 FOURCC_ESDS = 0x65736473, 27 FOURCC_ESDS = 0x65736473,
27 FOURCC_FREE = 0x66726565, 28 FOURCC_FREE = 0x66726565,
28 FOURCC_FRMA = 0x66726d61, 29 FOURCC_FRMA = 0x66726d61,
29 FOURCC_FTYP = 0x66747970, 30 FOURCC_FTYP = 0x66747970,
30 FOURCC_HDLR = 0x68646c72, 31 FOURCC_HDLR = 0x68646c72,
31 FOURCC_HINT = 0x68696e74, 32 FOURCC_HINT = 0x68696e74,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 buf[2] = (fourcc >> 8) & 0xff; 91 buf[2] = (fourcc >> 8) & 0xff;
91 buf[3] = (fourcc) & 0xff; 92 buf[3] = (fourcc) & 0xff;
92 buf[4] = 0; 93 buf[4] = 0;
93 return std::string(buf); 94 return std::string(buf);
94 } 95 }
95 96
96 } // namespace mp4 97 } // namespace mp4
97 } // namespace media 98 } // namespace media
98 99
99 #endif // MEDIA_MP4_FOURCCS_H_ 100 #endif // MEDIA_MP4_FOURCCS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698