5 #ifndef PACKAGER_MEDIA_BASE_FOURCCS_H_
6 #define PACKAGER_MEDIA_BASE_FOURCCS_H_
10 namespace edash_packager {
13 enum FourCC : uint32_t {
16 FOURCC_ID32 = 0x49443332,
17 FOURCC_PRIV = 0x50524956,
19 FOURCC_aacd = 0x61616364,
20 FOURCC_ac_3 = 0x61632d33,
21 FOURCC_apad = 0x61706164,
22 FOURCC_avc1 = 0x61766331,
23 FOURCC_avcC = 0x61766343,
24 FOURCC_bloc = 0x626C6F63,
25 FOURCC_cbc1 = 0x63626331,
26 FOURCC_cbcs = 0x63626373,
27 FOURCC_cenc = 0x63656e63,
28 FOURCC_cens = 0x63656e73,
29 FOURCC_co64 = 0x636f3634,
30 FOURCC_ctim = 0x6374696d,
31 FOURCC_ctts = 0x63747473,
32 FOURCC_dac3 = 0x64616333,
33 FOURCC_dash = 0x64617368,
34 FOURCC_ddts = 0x64647473,
35 FOURCC_dec3 = 0x64656333,
36 FOURCC_dinf = 0x64696e66,
37 FOURCC_dref = 0x64726566,
38 FOURCC_dtsc = 0x64747363,
39 FOURCC_dtse = 0x64747365,
40 FOURCC_dtsh = 0x64747368,
41 FOURCC_dtsl = 0x6474736c,
42 FOURCC_dtsm = 0x6474732d,
43 FOURCC_dtsp = 0x6474732b,
44 FOURCC_ec_3 = 0x65632d33,
45 FOURCC_edts = 0x65647473,
46 FOURCC_elst = 0x656c7374,
47 FOURCC_enca = 0x656e6361,
48 FOURCC_encv = 0x656e6376,
49 FOURCC_esds = 0x65736473,
50 FOURCC_free = 0x66726565,
51 FOURCC_frma = 0x66726d61,
52 FOURCC_ftyp = 0x66747970,
53 FOURCC_hdlr = 0x68646c72,
54 FOURCC_hev1 = 0x68657631,
55 FOURCC_hint = 0x68696e74,
56 FOURCC_hvc1 = 0x68766331,
57 FOURCC_hvcC = 0x68766343,
58 FOURCC_iden = 0x6964656e,
59 FOURCC_iso6 = 0x69736f36,
60 FOURCC_iods = 0x696f6473,
61 FOURCC_mdat = 0x6d646174,
62 FOURCC_mdhd = 0x6d646864,
63 FOURCC_mdia = 0x6d646961,
64 FOURCC_meco = 0x6d65636f,
65 FOURCC_mehd = 0x6d656864,
66 FOURCC_meta = 0x6d657461,
67 FOURCC_mfhd = 0x6d666864,
68 FOURCC_mfra = 0x6d667261,
69 FOURCC_minf = 0x6d696e66,
70 FOURCC_moof = 0x6d6f6f66,
71 FOURCC_moov = 0x6d6f6f76,
72 FOURCC_mp41 = 0x6d703431,
73 FOURCC_mp4a = 0x6d703461,
74 FOURCC_mp4v = 0x6d703476,
75 FOURCC_mvex = 0x6d766578,
76 FOURCC_mvhd = 0x6d766864,
77 FOURCC_pasp = 0x70617370,
78 FOURCC_payl = 0x7061796c,
79 FOURCC_pdin = 0x7064696e,
80 FOURCC_prft = 0x70726674,
81 FOURCC_pssh = 0x70737368,
82 FOURCC_saio = 0x7361696f,
83 FOURCC_saiz = 0x7361697a,
84 FOURCC_sbgp = 0x73626770,
85 FOURCC_schi = 0x73636869,
86 FOURCC_schm = 0x7363686d,
87 FOURCC_sdtp = 0x73647470,
88 FOURCC_seig = 0x73656967,
89 FOURCC_senc = 0x73656e63,
90 FOURCC_sgpd = 0x73677064,
91 FOURCC_sidx = 0x73696478,
92 FOURCC_sinf = 0x73696e66,
93 FOURCC_skip = 0x736b6970,
94 FOURCC_smhd = 0x736d6864,
95 FOURCC_soun = 0x736f756e,
96 FOURCC_ssix = 0x73736978,
97 FOURCC_stbl = 0x7374626c,
98 FOURCC_stco = 0x7374636f,
99 FOURCC_sthd = 0x73746864,
100 FOURCC_stsc = 0x73747363,
101 FOURCC_stsd = 0x73747364,
102 FOURCC_stss = 0x73747373,
103 FOURCC_stsz = 0x7374737a,
104 FOURCC_sttg = 0x73747467,
105 FOURCC_stts = 0x73747473,
106 FOURCC_styp = 0x73747970,
107 FOURCC_stz2 = 0x73747a32,
108 FOURCC_subt = 0x73756274,
109 FOURCC_tenc = 0x74656e63,
110 FOURCC_text = 0x74657874,
111 FOURCC_tfdt = 0x74666474,
112 FOURCC_tfhd = 0x74666864,
113 FOURCC_tkhd = 0x746b6864,
114 FOURCC_traf = 0x74726166,
115 FOURCC_trak = 0x7472616b,
116 FOURCC_trex = 0x74726578,
117 FOURCC_trun = 0x7472756e,
118 FOURCC_udta = 0x75647461,
119 FOURCC_url = 0x75726c20,
120 FOURCC_urn = 0x75726e20,
121 FOURCC_uuid = 0x75756964,
122 FOURCC_vide = 0x76696465,
123 FOURCC_vlab = 0x766c6162,
124 FOURCC_vmhd = 0x766d6864,
125 FOURCC_vp08 = 0x76703038,
126 FOURCC_vp09 = 0x76703039,
127 FOURCC_vp10 = 0x76703130,
128 FOURCC_vpcC = 0x76706343,
129 FOURCC_vsid = 0x76736964,
130 FOURCC_vttC = 0x76747443,
131 FOURCC_vtta = 0x76747461,
132 FOURCC_vttc = 0x76747463,
133 FOURCC_vtte = 0x76747465,
134 FOURCC_wide = 0x77696465,
135 FOURCC_wvtt = 0x77767474,
136 FOURCC_zaac = 0x7A616163,
137 FOURCC_zach = 0x7A616368,
138 FOURCC_zacp = 0x7A616370,
141 const inline std::string FourCCToString(FourCC fourcc) {
143 buf[0] = (fourcc >> 24) & 0xff;
144 buf[1] = (fourcc >> 16) & 0xff;
145 buf[2] = (fourcc >> 8) & 0xff;
146 buf[3] = (fourcc) & 0xff;
148 return std::string(buf);
154 #endif // PACKAGER_MEDIA_BASE_FOURCCS_H_