5 #ifndef PACKAGER_MEDIA_BASE_FOURCCS_H_
6 #define PACKAGER_MEDIA_BASE_FOURCCS_H_
13 enum FourCC : uint32_t {
16 FOURCC_ID32 = 0x49443332,
17 FOURCC_Head = 0x48656164,
18 FOURCC_Opus = 0x4f707573,
19 FOURCC_PRIV = 0x50524956,
21 FOURCC_aacd = 0x61616364,
22 FOURCC_ac_3 = 0x61632d33,
23 FOURCC_ac_4 = 0x61632d34,
24 FOURCC_ac3d = 0x61633364,
25 FOURCC_apad = 0x61706164,
26 FOURCC_av01 = 0x61763031,
27 FOURCC_av1C = 0x61763143,
28 FOURCC_avc1 = 0x61766331,
29 FOURCC_avc3 = 0x61766333,
30 FOURCC_avcC = 0x61766343,
31 FOURCC_bloc = 0x626C6F63,
32 FOURCC_cbc1 = 0x63626331,
34 FOURCC_cbca = 0x63626361,
35 FOURCC_cbcs = 0x63626373,
36 FOURCC_cenc = 0x63656e63,
37 FOURCC_cens = 0x63656e73,
38 FOURCC_co64 = 0x636f3634,
39 FOURCC_cmfc = 0x636d6663,
40 FOURCC_cmfs = 0x636d6673,
41 FOURCC_ctim = 0x6374696d,
42 FOURCC_ctts = 0x63747473,
43 FOURCC_dOps = 0x644f7073,
44 FOURCC_dac3 = 0x64616333,
45 FOURCC_dac4 = 0x64616334,
46 FOURCC_dash = 0x64617368,
47 FOURCC_ddts = 0x64647473,
48 FOURCC_dec3 = 0x64656333,
49 FOURCC_dfLa = 0x64664c61,
50 FOURCC_dinf = 0x64696e66,
51 FOURCC_dref = 0x64726566,
52 FOURCC_dtsc = 0x64747363,
53 FOURCC_dtse = 0x64747365,
54 FOURCC_dtsh = 0x64747368,
55 FOURCC_dtsl = 0x6474736c,
56 FOURCC_dtsm = 0x6474732d,
57 FOURCC_dtsp = 0x6474732b,
58 FOURCC_dvcC = 0x64766343,
59 FOURCC_dvh1 = 0x64766831,
60 FOURCC_dvhe = 0x64766865,
61 FOURCC_dvvC = 0x64767643,
62 FOURCC_ec_3 = 0x65632d33,
63 FOURCC_ec3d = 0x65633364,
64 FOURCC_edts = 0x65647473,
65 FOURCC_elst = 0x656c7374,
66 FOURCC_enca = 0x656e6361,
67 FOURCC_encv = 0x656e6376,
68 FOURCC_esds = 0x65736473,
69 FOURCC_fLaC = 0x664c6143,
70 FOURCC_free = 0x66726565,
71 FOURCC_frma = 0x66726d61,
72 FOURCC_ftyp = 0x66747970,
73 FOURCC_hdlr = 0x68646c72,
74 FOURCC_hev1 = 0x68657631,
75 FOURCC_hint = 0x68696e74,
76 FOURCC_hvc1 = 0x68766331,
77 FOURCC_hvcC = 0x68766343,
78 FOURCC_hvcE = 0x68766345,
79 FOURCC_iden = 0x6964656e,
80 FOURCC_iso6 = 0x69736f36,
81 FOURCC_iso8 = 0x69736f38,
82 FOURCC_isom = 0x69736f6d,
83 FOURCC_iods = 0x696f6473,
84 FOURCC_mdat = 0x6d646174,
85 FOURCC_mdhd = 0x6d646864,
86 FOURCC_mdia = 0x6d646961,
87 FOURCC_meco = 0x6d65636f,
88 FOURCC_mehd = 0x6d656864,
89 FOURCC_meta = 0x6d657461,
90 FOURCC_mfhd = 0x6d666864,
91 FOURCC_mfra = 0x6d667261,
92 FOURCC_minf = 0x6d696e66,
93 FOURCC_moof = 0x6d6f6f66,
94 FOURCC_moov = 0x6d6f6f76,
95 FOURCC_mp3a = 0x6d703361,
96 FOURCC_mp41 = 0x6d703431,
97 FOURCC_mp4a = 0x6d703461,
98 FOURCC_mp4v = 0x6d703476,
99 FOURCC_mvex = 0x6d766578,
100 FOURCC_mvhd = 0x6d766864,
101 FOURCC_nmhd = 0x6e6d6864,
102 FOURCC_pasp = 0x70617370,
103 FOURCC_payl = 0x7061796c,
104 FOURCC_pdin = 0x7064696e,
105 FOURCC_prft = 0x70726674,
106 FOURCC_pssh = 0x70737368,
107 FOURCC_roll = 0x726f6c6c,
108 FOURCC_saio = 0x7361696f,
109 FOURCC_saiz = 0x7361697a,
110 FOURCC_sbgp = 0x73626770,
111 FOURCC_schi = 0x73636869,
112 FOURCC_schm = 0x7363686d,
113 FOURCC_sdtp = 0x73647470,
114 FOURCC_seig = 0x73656967,
115 FOURCC_senc = 0x73656e63,
116 FOURCC_sgpd = 0x73677064,
117 FOURCC_sidx = 0x73696478,
118 FOURCC_sinf = 0x73696e66,
119 FOURCC_skip = 0x736b6970,
120 FOURCC_smhd = 0x736d6864,
121 FOURCC_soun = 0x736f756e,
122 FOURCC_ssix = 0x73736978,
123 FOURCC_stbl = 0x7374626c,
124 FOURCC_stco = 0x7374636f,
125 FOURCC_sthd = 0x73746864,
126 FOURCC_stpp = 0x73747070,
127 FOURCC_stsc = 0x73747363,
128 FOURCC_stsd = 0x73747364,
129 FOURCC_stss = 0x73747373,
130 FOURCC_stsz = 0x7374737a,
131 FOURCC_sttg = 0x73747467,
132 FOURCC_stts = 0x73747473,
133 FOURCC_styp = 0x73747970,
134 FOURCC_stz2 = 0x73747a32,
135 FOURCC_subt = 0x73756274,
136 FOURCC_tenc = 0x74656e63,
137 FOURCC_text = 0x74657874,
138 FOURCC_tfdt = 0x74666474,
139 FOURCC_tfhd = 0x74666864,
140 FOURCC_tkhd = 0x746b6864,
141 FOURCC_traf = 0x74726166,
142 FOURCC_trak = 0x7472616b,
143 FOURCC_trex = 0x74726578,
144 FOURCC_trun = 0x7472756e,
145 FOURCC_udta = 0x75647461,
146 FOURCC_url = 0x75726c20,
147 FOURCC_urn = 0x75726e20,
148 FOURCC_uuid = 0x75756964,
149 FOURCC_vide = 0x76696465,
150 FOURCC_vlab = 0x766c6162,
151 FOURCC_vmhd = 0x766d6864,
152 FOURCC_vp08 = 0x76703038,
153 FOURCC_vp09 = 0x76703039,
154 FOURCC_vpcC = 0x76706343,
155 FOURCC_vsid = 0x76736964,
156 FOURCC_vttC = 0x76747443,
157 FOURCC_vtta = 0x76747461,
158 FOURCC_vttc = 0x76747463,
159 FOURCC_vtte = 0x76747465,
160 FOURCC_wide = 0x77696465,
161 FOURCC_wvtt = 0x77767474,
162 FOURCC_zaac = 0x7A616163,
163 FOURCC_zac3 = 0x7A616333,
164 FOURCC_zach = 0x7A616368,
165 FOURCC_zacp = 0x7A616370,
166 FOURCC_zavc = 0x7A617663,
167 FOURCC_zec3 = 0x7A656333,
170 const FourCC kAppleSampleAesProtectionScheme = FOURCC_cbca;
172 const inline std::string FourCCToString(FourCC fourcc) {
174 buf[0] = (fourcc >> 24) & 0xff;
175 buf[1] = (fourcc >> 16) & 0xff;
176 buf[2] = (fourcc >> 8) & 0xff;
177 buf[3] = (fourcc) & 0xff;
179 return std::string(buf);
All the methods that are virtual are virtual for mocking.