VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_fourcc.h
Go to the documentation of this file.
1/*****************************************************************************
2 * vlc_fourcc.h: Definition of various FOURCC and helpers
3 *****************************************************************************
4 * Copyright (C) 2009 Laurent Aimar
5 *
6 * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ com>
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
22
23#ifndef VLC_FOURCC_H
24#define VLC_FOURCC_H 1
25
26#define VLC_CODEC_UNKNOWN VLC_FOURCC('u','n','d','f')
28/* Video codec */
29#define VLC_CODEC_MPGV VLC_FOURCC('m','p','g','v')
30#define VLC_CODEC_MP4V VLC_FOURCC('m','p','4','v')
31#define VLC_CODEC_DIV1 VLC_FOURCC('D','I','V','1')
32#define VLC_CODEC_DIV2 VLC_FOURCC('D','I','V','2')
33#define VLC_CODEC_DIV3 VLC_FOURCC('D','I','V','3')
34#define VLC_CODEC_SVQ1 VLC_FOURCC('S','V','Q','1')
35#define VLC_CODEC_SVQ3 VLC_FOURCC('S','V','Q','3')
36#define VLC_CODEC_H264 VLC_FOURCC('h','2','6','4')
37#define VLC_CODEC_H263 VLC_FOURCC('h','2','6','3')
38#define VLC_CODEC_H263I VLC_FOURCC('I','2','6','3')
39#define VLC_CODEC_H263P VLC_FOURCC('I','L','V','R')
40#define VLC_CODEC_FLV1 VLC_FOURCC('F','L','V','1')
41#define VLC_CODEC_H261 VLC_FOURCC('h','2','6','1')
42#define VLC_CODEC_VVC VLC_FOURCC('h','2','6','6')
43#define VLC_CODEC_MJPG VLC_FOURCC('M','J','P','G')
44#define VLC_CODEC_MJPGB VLC_FOURCC('m','j','p','b')
45#define VLC_CODEC_LJPG VLC_FOURCC('L','J','P','G')
46#define VLC_CODEC_WMV1 VLC_FOURCC('W','M','V','1')
47#define VLC_CODEC_WMV2 VLC_FOURCC('W','M','V','2')
48#define VLC_CODEC_WMV3 VLC_FOURCC('W','M','V','3')
49#define VLC_CODEC_WMVA VLC_FOURCC('W','M','V','A')
50#define VLC_CODEC_WMVP VLC_FOURCC('W','M','V','P')
51#define VLC_CODEC_WMVP2 VLC_FOURCC('W','V','P','2')
52#define VLC_CODEC_VC1 VLC_FOURCC('V','C','-','1')
53#define VLC_CODEC_DAALA VLC_FOURCC('d','a','a','l')
54#define VLC_CODEC_THEORA VLC_FOURCC('t','h','e','o')
55#define VLC_CODEC_TARKIN VLC_FOURCC('t','a','r','k')
56#define VLC_CODEC_DIRAC VLC_FOURCC('d','r','a','c')
57#define VLC_CODEC_OGGSPOTS VLC_FOURCC('S','P','O','T')
58#define VLC_CODEC_CAVS VLC_FOURCC('C','A','V','S')
59#define VLC_CODEC_CAVS2 VLC_FOURCC('A','V','S','2')
60#define VLC_CODEC_CAVS3 VLC_FOURCC('A','V','S','3')
61#define VLC_CODEC_NUV VLC_FOURCC('N','J','P','G')
62#define VLC_CODEC_RV10 VLC_FOURCC('R','V','1','0')
63#define VLC_CODEC_RV13 VLC_FOURCC('R','V','1','3')
64#define VLC_CODEC_RV20 VLC_FOURCC('R','V','2','0')
65#define VLC_CODEC_RV30 VLC_FOURCC('R','V','3','0')
66#define VLC_CODEC_RV40 VLC_FOURCC('R','V','4','0')
67#define VLC_CODEC_VP3 VLC_FOURCC('V','P','3',' ')
68#define VLC_CODEC_VP5 VLC_FOURCC('V','P','5',' ')
69#define VLC_CODEC_VP6 VLC_FOURCC('V','P','6','2')
70#define VLC_CODEC_VP6F VLC_FOURCC('V','P','6','F')
71#define VLC_CODEC_VP6A VLC_FOURCC('V','P','6','A')
72#define VLC_CODEC_MSVIDEO1 VLC_FOURCC('M','S','V','C')
73#define VLC_CODEC_FLIC VLC_FOURCC('F','L','I','C')
74#define VLC_CODEC_SP5X VLC_FOURCC('S','P','5','X')
75#define VLC_CODEC_DV VLC_FOURCC('d','v',' ',' ')
76#define VLC_CODEC_MSRLE VLC_FOURCC('m','r','l','e')
77#define VLC_CODEC_HUFFYUV VLC_FOURCC('H','F','Y','U')
78#define VLC_CODEC_FFVHUFF VLC_FOURCC('F','F','V','H')
79#define VLC_CODEC_ASV1 VLC_FOURCC('A','S','V','1')
80#define VLC_CODEC_ASV2 VLC_FOURCC('A','S','V','2')
81#define VLC_CODEC_FFV1 VLC_FOURCC('F','F','V','1')
82#define VLC_CODEC_VCR1 VLC_FOURCC('V','C','R','1')
83#define VLC_CODEC_CLJR VLC_FOURCC('C','L','J','R')
84#define VLC_CODEC_RPZA VLC_FOURCC('r','p','z','a')
85#define VLC_CODEC_SMC VLC_FOURCC('s','m','c',' ')
86#define VLC_CODEC_CINEPAK VLC_FOURCC('C','V','I','D')
87#define VLC_CODEC_TSCC VLC_FOURCC('T','S','C','C')
88#define VLC_CODEC_CSCD VLC_FOURCC('C','S','C','D')
89#define VLC_CODEC_ZMBV VLC_FOURCC('Z','M','B','V')
90#define VLC_CODEC_VMNC VLC_FOURCC('V','M','n','c')
91#define VLC_CODEC_FMVC VLC_FOURCC('F','M','V','C')
92#define VLC_CODEC_FRAPS VLC_FOURCC('F','P','S','1')
93#define VLC_CODEC_TRUEMOTION1 VLC_FOURCC('D','U','C','K')
94#define VLC_CODEC_TRUEMOTION2 VLC_FOURCC('T','M','2','0')
95#define VLC_CODEC_QTRLE VLC_FOURCC('r','l','e',' ')
96#define VLC_CODEC_QDRAW VLC_FOURCC('q','d','r','w')
97#define VLC_CODEC_QOI VLC_FOURCC('q','o','i','f')
98#define VLC_CODEC_QPEG VLC_FOURCC('Q','P','E','G')
99#define VLC_CODEC_ULTI VLC_FOURCC('U','L','T','I')
100#define VLC_CODEC_VIXL VLC_FOURCC('V','I','X','L')
101#define VLC_CODEC_LOCO VLC_FOURCC('L','O','C','O')
102#define VLC_CODEC_WNV1 VLC_FOURCC('W','N','V','1')
103#define VLC_CODEC_AASC VLC_FOURCC('A','A','S','C')
104#define VLC_CODEC_INDEO2 VLC_FOURCC('I','V','2','0')
105#define VLC_CODEC_INDEO3 VLC_FOURCC('I','V','3','1')
106#define VLC_CODEC_INDEO4 VLC_FOURCC('I','V','4','1')
107#define VLC_CODEC_INDEO5 VLC_FOURCC('I','V','5','0')
108#define VLC_CODEC_FLASHSV VLC_FOURCC('F','S','V','1')
109#define VLC_CODEC_KMVC VLC_FOURCC('K','M','V','C')
110#define VLC_CODEC_SMACKVIDEO VLC_FOURCC('S','M','K','2')
111#define VLC_CODEC_DNXHD VLC_FOURCC('A','V','d','n')
112#define VLC_CODEC_8BPS VLC_FOURCC('8','B','P','S')
113#define VLC_CODEC_MIMIC VLC_FOURCC('M','L','2','O')
114#define VLC_CODEC_INTERPLAY VLC_FOURCC('i','m','v','e')
115#define VLC_CODEC_IDCIN VLC_FOURCC('I','D','C','I')
116#define VLC_CODEC_4XM VLC_FOURCC('4','X','M','V')
117#define VLC_CODEC_ROQ VLC_FOURCC('R','o','Q','v')
118#define VLC_CODEC_MDEC VLC_FOURCC('M','D','E','C')
119#define VLC_CODEC_VMDVIDEO VLC_FOURCC('V','M','D','V')
120#define VLC_CODEC_CDG VLC_FOURCC('C','D','G',' ')
121#define VLC_CODEC_FRWU VLC_FOURCC('F','R','W','U')
122#define VLC_CODEC_AMV VLC_FOURCC('A','M','V',' ')
123#define VLC_CODEC_VP4 VLC_FOURCC('V','P','4','0')
124#define VLC_CODEC_VP7 VLC_FOURCC('V','P','7','0')
125#define VLC_CODEC_VP8 VLC_FOURCC('V','P','8','0')
126#define VLC_CODEC_VP8ALPHA_ES VLC_FOURCC('V','P','8','a')
127#define VLC_CODEC_VP9 VLC_FOURCC('V','P','9','0')
128#define VLC_CODEC_VP9ALPHA_ES VLC_FOURCC('V','P','9','a')
129#define VLC_CODEC_VP10 VLC_FOURCC('V','P',':','0')
130#define VLC_CODEC_AV1 VLC_FOURCC('a','v','0','1')
131#define VLC_CODEC_JPEG2000 VLC_FOURCC('J','P','2','K')
132#define VLC_CODEC_LAGARITH VLC_FOURCC('L','A','G','S')
133#define VLC_CODEC_FLASHSV2 VLC_FOURCC('F','S','V','2')
134#define VLC_CODEC_PRORES VLC_FOURCC('a','p','c','n')
135#define VLC_CODEC_MXPEG VLC_FOURCC('M','X','P','G')
136#define VLC_CODEC_CDXL VLC_FOURCC('C','D','X','L')
137#define VLC_CODEC_BMVVIDEO VLC_FOURCC('B','M','V','V')
138#define VLC_CODEC_UTVIDEO VLC_FOURCC('U','L','R','A')
139#define VLC_CODEC_VBLE VLC_FOURCC('V','B','L','E')
140#define VLC_CODEC_DXTORY VLC_FOURCC('x','t','o','r')
141#define VLC_CODEC_MSS1 VLC_FOURCC('M','S','S','1')
142#define VLC_CODEC_MSS2 VLC_FOURCC('M','S','S','2')
143#define VLC_CODEC_MSA1 VLC_FOURCC('M','S','A','1')
144#define VLC_CODEC_TSC2 VLC_FOURCC('T','S','C','2')
145#define VLC_CODEC_MTS2 VLC_FOURCC('M','T','S','2')
146#define VLC_CODEC_HEVC VLC_FOURCC('h','e','v','c')
147#define VLC_CODEC_ICOD VLC_FOURCC('i','c','o','d')
148#define VLC_CODEC_G2M2 VLC_FOURCC('G','2','M','2')
149#define VLC_CODEC_G2M3 VLC_FOURCC('G','2','M','3')
150#define VLC_CODEC_G2M4 VLC_FOURCC('G','2','M','4')
151#define VLC_CODEC_BINKVIDEO VLC_FOURCC('B','I','K','f')
152#define VLC_CODEC_BINKAUDIO_DCT VLC_FOURCC('B','A','U','1')
153#define VLC_CODEC_BINKAUDIO_RDFT VLC_FOURCC('B','A','U','2')
154#define VLC_CODEC_XAN_WC4 VLC_FOURCC('X','x','a','n')
155#define VLC_CODEC_LCL_MSZH VLC_FOURCC('M','S','Z','H')
156#define VLC_CODEC_LCL_ZLIB VLC_FOURCC('Z','L','I','B')
157#define VLC_CODEC_THP VLC_FOURCC('T','H','P','0')
158#define VLC_CODEC_ESCAPE124 VLC_FOURCC('E','1','2','4')
159#define VLC_CODEC_KGV1 VLC_FOURCC('K','G','V','1')
160#define VLC_CODEC_CLLC VLC_FOURCC('C','L','L','C')
161#define VLC_CODEC_AURA VLC_FOURCC('A','U','R','A')
162#define VLC_CODEC_FIC VLC_FOURCC('F','I','C','V')
163#define VLC_CODEC_TMV VLC_FOURCC('T','M','A','V')
164#define VLC_CODEC_XAN_WC3 VLC_FOURCC('X','A','N','3')
165#define VLC_CODEC_WS_VQA VLC_FOURCC('W','V','Q','A')
166#define VLC_CODEC_MMVIDEO VLC_FOURCC('M','M','V','I')
167#define VLC_CODEC_AVS VLC_FOURCC('A','V','S','V')
168#define VLC_CODEC_DSICINVIDEO VLC_FOURCC('D','C','I','V')
169#define VLC_CODEC_TIERTEXSEQVIDEO VLC_FOURCC('T','S','E','Q')
170#define VLC_CODEC_DXA VLC_FOURCC('D','E','X','A')
171#define VLC_CODEC_C93 VLC_FOURCC('I','C','9','3')
172#define VLC_CODEC_BETHSOFTVID VLC_FOURCC('B','V','I','D')
173#define VLC_CODEC_VB VLC_FOURCC('V','B','V','1')
174#define VLC_CODEC_RL2 VLC_FOURCC('R','L','V','2')
175#define VLC_CODEC_BFI VLC_FOURCC('B','F','&','I')
176#define VLC_CODEC_CMV VLC_FOURCC('E','C','M','V')
177#define VLC_CODEC_MOTIONPIXELS VLC_FOURCC('M','P','I','X')
178#define VLC_CODEC_TGV VLC_FOURCC('T','G','V','V')
179#define VLC_CODEC_TGQ VLC_FOURCC('T','G','Q','V')
180#define VLC_CODEC_TQI VLC_FOURCC('T','Q','I','V')
181#define VLC_CODEC_MAD VLC_FOURCC('M','A','D','V')
182#define VLC_CODEC_ANM VLC_FOURCC('A','N','I','M')
183#define VLC_CODEC_YOP VLC_FOURCC('Y','O','P','V')
184#define VLC_CODEC_JV VLC_FOURCC('J','V','0','0')
185#define VLC_CODEC_DFA VLC_FOURCC('D','F','I','A')
186#define VLC_CODEC_HNM4_VIDEO VLC_FOURCC('H','N','M','4')
187#define VLC_CODEC_TDSC VLC_FOURCC('T','D','S','C')
188#define VLC_CODEC_HQX VLC_FOURCC('C','H','Q','X')
189#define VLC_CODEC_HQ_HQA VLC_FOURCC('C','U','V','C')
190#define VLC_CODEC_HAP VLC_FOURCC('H','A','P','1')
191#define VLC_CODEC_DXV VLC_FOURCC('D','X','D','3')
192#define VLC_CODEC_CINEFORM VLC_FOURCC('C','F','H','D')
193#define VLC_CODEC_SPEEDHQ VLC_FOURCC('S','H','Q','2')
194#define VLC_CODEC_PIXLET VLC_FOURCC('p','x','l','t')
195#define VLC_CODEC_MAGICYUV VLC_FOURCC('M','8','Y','0')
196#define VLC_CODEC_IMM4 VLC_FOURCC('I','M','M','4')
197#define VLC_CODEC_IMM5 VLC_FOURCC('I','M','M','5')
198#define VLC_CODEC_AGM VLC_FOURCC('A','G','M','0')
199#define VLC_CODEC_NOTCHLC VLC_FOURCC('n','c','l','c')
200#define VLC_CODEC_RTP_VIDEO_RAW VLC_FOURCC('R','T','P','V')
202/***********
203 * Chromas
204 ***********/
205
206/* Planar YUV */
207
208/* Planar YUV 4:1:0 Y:U:V */
209#define VLC_CODEC_I410 VLC_FOURCC('I','4','1','0')
210/* Planar YUV 4:1:1 Y:U:V */
211#define VLC_CODEC_I411 VLC_FOURCC('I','4','1','1')
213/* Planar YUV 4:2:0 Y:V:U */
214#define VLC_CODEC_YV12 VLC_FOURCC('Y','V','1','2')
215/* Planar YUV 4:2:0 Y:U:V 8-bit */
216#define VLC_CODEC_I420 VLC_FOURCC('I','4','2','0')
217/* Planar YUV 4:2:0 Y:U:V 9-bit stored on 16 bits */
218#define VLC_CODEC_I420_9L VLC_FOURCC('I','0','9','L')
219#define VLC_CODEC_I420_9B VLC_FOURCC('I','0','9','B')
220/* Planar YUV 4:2:0 Y:U:V 10-bit stored on 16 bits LSB */
221#define VLC_CODEC_I420_10L VLC_FOURCC('I','0','A','L')
222#define VLC_CODEC_I420_10B VLC_FOURCC('I','0','A','B')
223/* Planar YUV 4:2:0 Y:U:V 12-bit stored on 16 bits LSB */
224#define VLC_CODEC_I420_12L VLC_FOURCC('I','0','C','L')
225#define VLC_CODEC_I420_12B VLC_FOURCC('I','0','C','B')
227/* Planar YUV 4:2:0 Y:U:V 16-bit stored on 16 bits */
228#define VLC_CODEC_I420_16L VLC_FOURCC('I','0','F','L')
229#define VLC_CODEC_I420_16B VLC_FOURCC('I','0','F','B')
231/* Planar YUV 4:2:2 Y:U:V 8-bit */
232#define VLC_CODEC_I422 VLC_FOURCC('I','4','2','2')
233/* Planar YUV 4:2:2 Y:U:V 9-bit stored on 16 bits LSB */
234#define VLC_CODEC_I422_9L VLC_FOURCC('I','2','9','L')
235#define VLC_CODEC_I422_9B VLC_FOURCC('I','2','9','B')
236/* Planar YUV 4:2:2 Y:U:V 10-bit stored on 16 bits LSB */
237#define VLC_CODEC_I422_10L VLC_FOURCC('I','2','A','L')
238#define VLC_CODEC_I422_10B VLC_FOURCC('I','2','A','B')
239/* Planar YUV 4:2:2 Y:U:V 12-bit stored on 16 bits LSB */
240#define VLC_CODEC_I422_12L VLC_FOURCC('I','2','C','L')
241#define VLC_CODEC_I422_12B VLC_FOURCC('I','2','C','B')
242/* Planar YUV 4:2:2 Y:U:V 16-bit stored on 16 bits */
243#define VLC_CODEC_I422_16L VLC_FOURCC('I','2','F','L')
244#define VLC_CODEC_I422_16B VLC_FOURCC('I','2','F','B')
246/* Planar YUV 4:4:0 Y:U:V */
247#define VLC_CODEC_I440 VLC_FOURCC('I','4','4','0')
248/* Planar YUV 4:4:4 Y:U:V 8-bit */
249#define VLC_CODEC_I444 VLC_FOURCC('I','4','4','4')
250/* Planar YUV 4:4:4 Y:U:V 9-bit stored on 16 bits LSB */
251#define VLC_CODEC_I444_9L VLC_FOURCC('I','4','9','L')
252#define VLC_CODEC_I444_9B VLC_FOURCC('I','4','9','B')
253/* Planar YUV 4:4:4 Y:U:V 10-bit stored on 16 bits LSB */
254#define VLC_CODEC_I444_10L VLC_FOURCC('I','4','A','L')
255#define VLC_CODEC_I444_10B VLC_FOURCC('I','4','A','B')
256/* Planar YUV 4:4:4 Y:U:V 12-bit stored on 16 bits LSB */
257#define VLC_CODEC_I444_12L VLC_FOURCC('I','4','C','L')
258#define VLC_CODEC_I444_12B VLC_FOURCC('I','4','C','B')
259/* Planar YUV 4:4:4 Y:U:V 16-bit */
260#define VLC_CODEC_I444_16L VLC_FOURCC('I','4','F','L')
261#define VLC_CODEC_I444_16B VLC_FOURCC('I','4','F','B')
263/* Palettized YUV with palette 8-bit Y:U:V:A in memory order */
264#define VLC_CODEC_YUVP VLC_FOURCC('Y','U','V','P')
266/* Planar YUV 4:4:4 Y:U:V:A */
267#define VLC_CODEC_YUVA VLC_FOURCC('Y','U','V','A')
268/* Planar YUV 4:2:2 Y:U:V:A */
269#define VLC_CODEC_YUV422A VLC_FOURCC('I','4','2','A')
270/* Planar YUV 4:2:0 Y:U:V:A */
271#define VLC_CODEC_YUV420A VLC_FOURCC('I','4','0','A')
273/* Planar Y:U:V:A 4:4:4 10bits */
274#define VLC_CODEC_YUVA_444_10L VLC_FOURCC('Y','A','0','L')
275#define VLC_CODEC_YUVA_444_10B VLC_FOURCC('Y','A','0','B')
277/* Planar Y:U:V:A 4:4:4 12bits */
278#define VLC_CODEC_YUVA_444_12L VLC_FOURCC('Y','A','2','L')
279#define VLC_CODEC_YUVA_444_12B VLC_FOURCC('Y','A','2','B')
281/* Semi-planar Y/UV */
282
283/* 2 planes Y/UV 4:2:0 */
284#define VLC_CODEC_NV12 VLC_FOURCC('N','V','1','2')
285/* 2 planes Y/VU 4:2:0 */
286#define VLC_CODEC_NV21 VLC_FOURCC('N','V','2','1')
287/* 2 planes Y/UV 4:2:2 */
288#define VLC_CODEC_NV16 VLC_FOURCC('N','V','1','6')
289/* 2 planes Y/VU 4:2:2 */
290#define VLC_CODEC_NV61 VLC_FOURCC('N','V','6','1')
291/* 2 planes Y/UV 4:4:4 */
292#define VLC_CODEC_NV24 VLC_FOURCC('N','V','2','4')
293/* 2 planes Y/VU 4:4:4 */
294#define VLC_CODEC_NV42 VLC_FOURCC('N','V','4','2')
295/* 2 planes Y/UV 4:2:0 10-bit MSB, little endian */
296#define VLC_CODEC_P010 VLC_FOURCC('P','0','1','0')
297/* 2 planes Y/UV 4:2:0 12-bit MSB, little endian */
298#define VLC_CODEC_P012 VLC_FOURCC('P','0','1','2')
299/* 2 planes Y/UV 4:2:0 16-bit, little endian */
300#define VLC_CODEC_P016 VLC_FOURCC('P','0','1','6')
302/* Packed YUV */
303
304/* Packed YUV 4:2:0, U:V:Y */
305#define VLC_CODEC_YUV4 VLC_FOURCC('y','u','v','4')
306/* Packed YUV 4:2:2, U:Y:V:Y */
307#define VLC_CODEC_UYVY VLC_FOURCC('U','Y','V','Y')
308/* Packed YUV 4:2:2, V:Y:U:Y */
309#define VLC_CODEC_VYUY VLC_FOURCC('V','Y','U','Y')
310/* Packed YUV 4:2:2, Y:U:Y:V */
311#define VLC_CODEC_YUYV VLC_FOURCC('Y','U','Y','2')
312/* Packed YUV 4:2:2, Y:U:Y:V, signed */
313#define VLC_CODEC_YUV2 VLC_FOURCC('y','u','v','2')
314/* Packed YUV 4:2:2, Y:V:Y:U */
315#define VLC_CODEC_YVYU VLC_FOURCC('Y','V','Y','U')
316/* Packed YUV 2:1:1, Y:U:Y:V */
317#define VLC_CODEC_Y211 VLC_FOURCC('Y','2','1','1')
318/* Packed YUV 4:2:2, U:Y:V:Y, reverted */
319#define VLC_CODEC_CYUV VLC_FOURCC('c','y','u','v')
320/* Packed YUV 4:2:2 10-bit U10:Y10:V10:Y10:X2 (12 on 4*32bits) */
321#define VLC_CODEC_V210 VLC_FOURCC('v','2','1','0')
322/* Packed YUV 4:4:4 */
323#define VLC_CODEC_V308 VLC_FOURCC('v','3','0','8')
324/* Packed YUVA 4:4:4:4 */
325#define VLC_CODEC_V408 VLC_FOURCC('v','4','0','8')
326/* Packed YUV 4:4:4 10-bit X2:U10:Y10:V10:Y10 */
327#define VLC_CODEC_V410 VLC_FOURCC('v','4','1','0')
328/* I420 packed for RTP (RFC 4175) */
329#define VLC_CODEC_R420 VLC_FOURCC('r','4','2','0')
330/* Packed YUV 4:2:2 10-bit V10:U10:Y10:A2 */
331#define VLC_CODEC_Y210 VLC_FOURCC('Y','2','1','0')
332/* Packed YUV 4:4:4 10-bit V10:U10:Y10:A2 */
333#define VLC_CODEC_Y410 VLC_FOURCC('Y','4','1','0')
334/* Packed YUV 4:4:4 V:U:Y:A */
335#define VLC_CODEC_VUYA VLC_FOURCC('V','U','Y','A')
337/* RGB / RGBA */
338
339/* Palettized 8-bit RGB with palette element 8-bit R:G:B:A in memory order */
340#define VLC_CODEC_RGBP VLC_FOURCC('R','G','B','P')
342/* 32-bit RGB, in memory address order: "XRGB" ignoring the x component */
343#define VLC_CODEC_XRGB VLC_FOURCC('R','V','3','2')
344/* 32-bit RGB, in memory address order: "RGBX" ignoring the x component */
345#define VLC_CODEC_RGBX VLC_FOURCC('R','G','B','X')
346/* 32-bit BGR, in memory address order: "BGRX" ignoring the x component */
347#define VLC_CODEC_BGRX VLC_FOURCC('B','G','R','X')
348/* 32-bit BGR, in memory address order: "XBGR" ignoring the x component */
349#define VLC_CODEC_XBGR VLC_FOURCC('X','B','G','R')
351/* 24-bit RGB, in memory address order: "RGB" */
352#define VLC_CODEC_RGB24 VLC_FOURCC('R','V','2','4')
353/* 24-bit BGR, in memory address order: "BGR" */
354#define VLC_CODEC_BGR24 VLC_FOURCC('B','G','R','3')
356/* 16-bit RGB Big-Endian: "R5G6B5" */
357#define VLC_CODEC_RGB565BE VLC_FOURCC('R','B','1','6')
358/* 16-bit RGB Little-Endian: "g3B5 R5G3" */
359#define VLC_CODEC_RGB565LE VLC_FOURCC('R','V','1','6')
360/* 16-bit BGR Big-Endian: "B5G6R5" */
361#define VLC_CODEC_BGR565BE VLC_FOURCC('B','B','1','6')
362/* 16-bit BGR Little-Endian: "g3R5 B5G3" */
363#define VLC_CODEC_BGR565LE VLC_FOURCC('B','L','1','6')
365#ifdef WORDS_BIGENDIAN
366/* 16-bit RGB with host endianness */
367#define VLC_CODEC_RGB565 VLC_CODEC_RGB565BE
368/* 16-bit BGR with host endianness */
369#define VLC_CODEC_BGR565 VLC_CODEC_BGR565BE
370#else
371/* 16-bit RGB with host endianness */
372#define VLC_CODEC_RGB565 VLC_CODEC_RGB565LE
373/* 16-bit BGR with host endianness */
374#define VLC_CODEC_BGR565 VLC_CODEC_BGR565LE
375#endif
376
377/* 15-bit RGB Big-Endian: "0R5G5B5" */
378#define VLC_CODEC_RGB555BE VLC_FOURCC('R','B','1','5')
379/* 15-bit RGB Little-Endian: "g3B5 0R5G2" */
380#define VLC_CODEC_RGB555LE VLC_FOURCC('R','V','1','5')
381/* 15-bit BGR Big-Endian: "0B5G5R5" */
382#define VLC_CODEC_BGR555BE VLC_FOURCC('B','B','1','5')
383/* 15-bit BGR Little-Endian: "g3R5 0B5G2" */
384#define VLC_CODEC_BGR555LE VLC_FOURCC('B','L','1','5')
386#ifdef WORDS_BIGENDIAN
387/* 15-bit RGB with host endianness */
388#define VLC_CODEC_RGB555 VLC_CODEC_RGB555BE
389/* 15-bit BGR with host endianness */
390#define VLC_CODEC_BGR555 VLC_CODEC_BGR555BE
391#else
392/* 15-bit RGB with host endianness */
393#define VLC_CODEC_RGB555 VLC_CODEC_RGB555LE
394/* 15-bit BGR with host endianness */
395#define VLC_CODEC_BGR555 VLC_CODEC_BGR555LE
396#endif
397
398
399/* 8-bit RGB "R3G3B2" */
400#define VLC_CODEC_RGB332 VLC_FOURCC('R','3','3','2')
401/* 8-bit RGB "R2G3B3" */
402#define VLC_CODEC_RGB233 VLC_FOURCC('R','G','B','8')
403/* 8-bit BGR "B2G3R3" */
404#define VLC_CODEC_BGR233 VLC_FOURCC('B','2','3','3')
406/* 32-bit RGBA, in memory address order: "RGBA" */
407#define VLC_CODEC_RGBA VLC_FOURCC('R','G','B','A')
408/* 32-bit ARGB, in memory address order: "ARGB" */
409#define VLC_CODEC_ARGB VLC_FOURCC('A','R','G','B')
410/* 32-bit ARGB, in memory address order: "BGRA" */
411#define VLC_CODEC_BGRA VLC_FOURCC('B','G','R','A')
412/* 32-bit RGBA, in memory address order: "ABGR" */
413#define VLC_CODEC_ABGR VLC_FOURCC('A','B','G','R')
414/* 32 bits Little-Endian RGBA with 10-bit colors "A2B6 b4G4 g6R2 r8" */
415#define VLC_CODEC_RGBA10LE VLC_FOURCC('R','G','A','0')
416/* 64 bits RGBA */
417#define VLC_CODEC_RGBA64 VLC_FOURCC('R','G','A','4')
419/* Planar GBR 4:4:4 8 bits */
420#define VLC_CODEC_GBR_PLANAR VLC_FOURCC('G','B','R','8')
421#define VLC_CODEC_GBR_PLANAR_9B VLC_FOURCC('G','B','9','B')
422#define VLC_CODEC_GBR_PLANAR_9L VLC_FOURCC('G','B','9','L')
423#define VLC_CODEC_GBR_PLANAR_10B VLC_FOURCC('G','B','A','B')
424#define VLC_CODEC_GBR_PLANAR_10L VLC_FOURCC('G','B','A','L')
425#define VLC_CODEC_GBR_PLANAR_12B VLC_FOURCC('G','B','B','B')
426#define VLC_CODEC_GBR_PLANAR_12L VLC_FOURCC('G','B','B','L')
427#define VLC_CODEC_GBR_PLANAR_14B VLC_FOURCC('G','B','D','B')
428#define VLC_CODEC_GBR_PLANAR_14L VLC_FOURCC('G','B','D','L')
429#define VLC_CODEC_GBR_PLANAR_16L VLC_FOURCC('G','B','F','L')
430#define VLC_CODEC_GBR_PLANAR_16B VLC_FOURCC('G','B','F','B')
431#define VLC_CODEC_GBRA_PLANAR VLC_FOURCC('G','B','0','8')
432#define VLC_CODEC_GBRA_PLANAR_10B VLC_FOURCC('G','B','0','B')
433#define VLC_CODEC_GBRA_PLANAR_10L VLC_FOURCC('G','B','0','L')
434#define VLC_CODEC_GBRA_PLANAR_12B VLC_FOURCC('G','B','C','B')
435#define VLC_CODEC_GBRA_PLANAR_12L VLC_FOURCC('G','B','C','L')
436#define VLC_CODEC_GBRA_PLANAR_16L VLC_FOURCC('G','B','E','L')
437#define VLC_CODEC_GBRA_PLANAR_16B VLC_FOURCC('G','B','E','B')
439/* 8 bits grey */
440#define VLC_CODEC_GREY VLC_FOURCC('G','R','E','Y')
441/* 10 bits grey */
442#define VLC_CODEC_GREY_10L VLC_FOURCC('G','0','F','L')
443#define VLC_CODEC_GREY_10B VLC_FOURCC('G','0','F','B')
444/* 12 bits grey */
445#define VLC_CODEC_GREY_12L VLC_FOURCC('G','2','F','L')
446#define VLC_CODEC_GREY_12B VLC_FOURCC('G','2','F','B')
447/* 16 bits grey */
448#define VLC_CODEC_GREY_16L VLC_FOURCC('G','R','F','L')
449#define VLC_CODEC_GREY_16B VLC_FOURCC('G','R','F','B')
451/* VDPAU video surface YCbCr */
452#define VLC_CODEC_VDPAU_VIDEO VLC_FOURCC('V','D','V','Y')
453/* VDPAU output surface RGBA */
454#define VLC_CODEC_VDPAU_OUTPUT VLC_FOURCC('V','D','O','R')
456/* VAAPI opaque surface */
457#define VLC_CODEC_VAAPI_420 VLC_FOURCC('V','A','O','P') /* 4:2:0 8 bpc */
458#define VLC_CODEC_VAAPI_420_10BPP VLC_FOURCC('V','A','O','0') /* 4:2:0 10 bpc */
459#define VLC_CODEC_VAAPI_420_12BPP VLC_FOURCC('V','A','O','2') /* 4:2:0 12 bpc */
461/* MediaCodec/IOMX opaque buffer type */
462#define VLC_CODEC_ANDROID_OPAQUE VLC_FOURCC('A','N','O','P')
464/* Broadcom MMAL opaque buffer type */
465#define VLC_CODEC_MMAL_OPAQUE VLC_FOURCC('M','M','A','L')
467/* DXVA2 opaque video surface for use with D3D9 */
468#define VLC_CODEC_D3D9_OPAQUE VLC_FOURCC('D','X','A','9') /* 4:2:0 8 bpc */
469#define VLC_CODEC_D3D9_OPAQUE_10B VLC_FOURCC('D','X','A','0') /* 4:2:0 10 bpc */
471/* D3D11VA opaque video surface for use with D3D11 */
472#define VLC_CODEC_D3D11_OPAQUE VLC_FOURCC('D','X','1','1') /* 4:2:0 8 bpc */
473#define VLC_CODEC_D3D11_OPAQUE_10B VLC_FOURCC('D','X','1','0') /* 4:2:0 10 bpc */
474#define VLC_CODEC_D3D11_OPAQUE_RGBA VLC_FOURCC('D','X','R','G')
475#define VLC_CODEC_D3D11_OPAQUE_BGRA VLC_FOURCC('D','A','G','R')
476#define VLC_CODEC_D3D11_OPAQUE_ALPHA VLC_FOURCC('D','A','1','1') /* 4:2:0 8 bpc with extra alpha plane */
478/* NVDEC opaque video format for use the NVDec API */
479#define VLC_CODEC_NVDEC_OPAQUE VLC_FOURCC('N','V','D','8') /* 4:2:0 8 bpc */
480#define VLC_CODEC_NVDEC_OPAQUE_10B VLC_FOURCC('N','V','D','0') /* 4:2:0 10 bpc */
481#define VLC_CODEC_NVDEC_OPAQUE_16B VLC_FOURCC('N','V','D','6') /* 4:2:0 16 bpc */
482#define VLC_CODEC_NVDEC_OPAQUE_444 VLC_FOURCC('N','V','4','8') /* 4:4:4 8 bpc */
483#define VLC_CODEC_NVDEC_OPAQUE_444_16B VLC_FOURCC('N','V','4','6') /* 4:4:4 16 bpc */
485/* CVPixelBuffer opaque buffer type */
486#define VLC_CODEC_CVPX_NV12 VLC_FOURCC('C','V','P','N')
487#define VLC_CODEC_CVPX_UYVY VLC_FOURCC('C','V','P','Y')
488#define VLC_CODEC_CVPX_I420 VLC_FOURCC('C','V','P','I')
489#define VLC_CODEC_CVPX_BGRA VLC_FOURCC('C','V','P','B')
490#define VLC_CODEC_CVPX_P010 VLC_FOURCC('C','V','P','P')
492/* GStreamer Memory opaque buffer type */
493#define VLC_CODEC_GST_MEM_OPAQUE VLC_FOURCC('G','S','T','M')
495/* Image codec (video) */
496#define VLC_CODEC_PNG VLC_FOURCC('p','n','g',' ')
497#define VLC_CODEC_PPM VLC_FOURCC('p','p','m',' ')
498#define VLC_CODEC_PGM VLC_FOURCC('p','g','m',' ')
499#define VLC_CODEC_PGMYUV VLC_FOURCC('p','g','m','y')
500#define VLC_CODEC_PAM VLC_FOURCC('p','a','m',' ')
501#define VLC_CODEC_JPEG VLC_FOURCC('j','p','e','g')
502#define VLC_CODEC_BPG VLC_FOURCC('B','P','G',0xFB)
503#define VLC_CODEC_JPEGLS VLC_FOURCC('M','J','L','S')
504#define VLC_CODEC_BMP VLC_FOURCC('b','m','p',' ')
505#define VLC_CODEC_FARBFELD VLC_FOURCC('f','a','r','b')
506#define VLC_CODEC_TIFF VLC_FOURCC('t','i','f','f')
507#define VLC_CODEC_GIF VLC_FOURCC('g','i','f',' ')
508#define VLC_CODEC_TARGA VLC_FOURCC('t','g','a',' ')
509#define VLC_CODEC_SVG VLC_FOURCC('s','v','g',' ')
510#define VLC_CODEC_SGI VLC_FOURCC('s','g','i',' ')
511#define VLC_CODEC_PNM VLC_FOURCC('p','n','m',' ')
512#define VLC_CODEC_PCX VLC_FOURCC('p','c','x',' ')
513#define VLC_CODEC_XWD VLC_FOURCC('X','W','D',' ')
514#define VLC_CODEC_TXD VLC_FOURCC('T','X','D',' ')
515#define VLC_CODEC_WEBP VLC_FOURCC('W','E','B','P')
517
518/* Audio codec */
519#define VLC_CODEC_MPGA VLC_FOURCC('m','p','g','a')
520#define VLC_CODEC_MP4A VLC_FOURCC('m','p','4','a')
521#define VLC_CODEC_MPEGH VLC_FOURCC('M','H','A','S')
522#define VLC_CODEC_ALS VLC_FOURCC('a','l','s',' ')
523#define VLC_CODEC_A52 VLC_FOURCC('a','5','2',' ')
524#define VLC_CODEC_EAC3 VLC_FOURCC('e','a','c','3')
525#define VLC_CODEC_AC4 VLC_FOURCC('a','c','-','4')
526#define VLC_CODEC_DTS VLC_FOURCC('d','t','s',' ')
527/* Only used by outputs and filters */
528#define VLC_CODEC_DTSHD VLC_FOURCC('d','t','s','h')
529#define VLC_CODEC_WMA1 VLC_FOURCC('W','M','A','1')
530#define VLC_CODEC_WMA2 VLC_FOURCC('W','M','A','2')
531#define VLC_CODEC_WMAP VLC_FOURCC('W','M','A','P')
532#define VLC_CODEC_WMAL VLC_FOURCC('W','M','A','L')
533#define VLC_CODEC_WMAS VLC_FOURCC('W','M','A','S')
534#define VLC_CODEC_FLAC VLC_FOURCC('f','l','a','c')
535#define VLC_CODEC_MLP VLC_FOURCC('m','l','p',' ')
536#define VLC_CODEC_TRUEHD VLC_FOURCC('m','l','p','a')
537#define VLC_CODEC_DVAUDIO VLC_FOURCC('d','v','a','u')
538#define VLC_CODEC_SPEEX VLC_FOURCC('s','p','x',' ')
539#define VLC_CODEC_CODEC2 VLC_FOURCC('C','0','D','E')
540#define VLC_CODEC_OPUS VLC_FOURCC('O','p','u','s')
541#define VLC_CODEC_VORBIS VLC_FOURCC('v','o','r','b')
542#define VLC_CODEC_MACE3 VLC_FOURCC('M','A','C','3')
543#define VLC_CODEC_MACE6 VLC_FOURCC('M','A','C','6')
544#define VLC_CODEC_MUSEPACK7 VLC_FOURCC('M','P','C',' ')
545#define VLC_CODEC_MUSEPACK8 VLC_FOURCC('M','P','C','K')
546#define VLC_CODEC_RA_144 VLC_FOURCC('1','4','_','4')
547#define VLC_CODEC_RA_288 VLC_FOURCC('2','8','_','8')
548#define VLC_CODEC_INTERPLAY_DPCM VLC_FOURCC('i','d','p','c')
549#define VLC_CODEC_ROQ_DPCM VLC_FOURCC('R','o','Q','a')
550#define VLC_CODEC_DSICINAUDIO VLC_FOURCC('D','C','I','A')
551#define VLC_CODEC_ADPCM_4XM VLC_FOURCC('4','x','m','a')
552#define VLC_CODEC_ADPCM_EA VLC_FOURCC('A','D','E','A')
553#define VLC_CODEC_ADPCM_XA VLC_FOURCC('x','a',' ',' ')
554#define VLC_CODEC_ADPCM_ADX VLC_FOURCC('a','d','x',' ')
555#define VLC_CODEC_ADPCM_IMA_WS VLC_FOURCC('A','I','W','S')
556#define VLC_CODEC_ADPCM_G722 VLC_FOURCC('g','7','2','2')
557#define VLC_CODEC_ADPCM_G726 VLC_FOURCC('g','7','2','6')
558#define VLC_CODEC_ADPCM_G726_LE VLC_FOURCC('g','7','2','s')
559#define VLC_CODEC_ADPCM_SWF VLC_FOURCC('S','W','F','a')
560#define VLC_CODEC_ADPCM_MS VLC_FOURCC('m','s',0x00,0x02)
561#define VLC_CODEC_ADPCM_IMA_WAV VLC_FOURCC('m','s',0x00,0x11)
562#define VLC_CODEC_ADPCM_IMA_AMV VLC_FOURCC('i','m','a','v')
563#define VLC_CODEC_ADPCM_IMA_QT VLC_FOURCC('i','m','a','4')
564#define VLC_CODEC_ADPCM_YAMAHA VLC_FOURCC('m','s',0x00,0x20)
565#define VLC_CODEC_ADPCM_DK3 VLC_FOURCC('m','s',0x00,0x62)
566#define VLC_CODEC_ADPCM_DK4 VLC_FOURCC('m','s',0x00,0x61)
567#define VLC_CODEC_ADPCM_CREATIVE VLC_FOURCC('m','s',0x00,0xC0)
568#define VLC_CODEC_ADPCM_SBPRO_2 VLC_FOURCC('m','s',0x00,0xC2)
569#define VLC_CODEC_ADPCM_SBPRO_3 VLC_FOURCC('m','s',0x00,0xC3)
570#define VLC_CODEC_ADPCM_SBPRO_4 VLC_FOURCC('m','s',0x00,0xC4)
571#define VLC_CODEC_ADPCM_THP VLC_FOURCC('T','H','P','A')
572#define VLC_CODEC_ADPCM_XA_EA VLC_FOURCC('X','A','J', 0)
573#define VLC_CODEC_G723_1 VLC_FOURCC('g','7','2', 0x31)
574#define VLC_CODEC_G729 VLC_FOURCC('g','7','2','9')
575#define VLC_CODEC_VMDAUDIO VLC_FOURCC('v','m','d','a')
576#define VLC_CODEC_AMR_NB VLC_FOURCC('s','a','m','r')
577#define VLC_CODEC_AMR_WB VLC_FOURCC('s','a','w','b')
578#define VLC_CODEC_ALAC VLC_FOURCC('a','l','a','c')
579#define VLC_CODEC_QDM2 VLC_FOURCC('Q','D','M','2')
580#define VLC_CODEC_QDMC VLC_FOURCC('Q','D','M','C')
581#define VLC_CODEC_QOA VLC_FOURCC('q','o','a','f')
582#define VLC_CODEC_COOK VLC_FOURCC('c','o','o','k')
583#define VLC_CODEC_SIPR VLC_FOURCC('s','i','p','r')
584#define VLC_CODEC_TTA VLC_FOURCC('T','T','A','1')
585#define VLC_CODEC_SHORTEN VLC_FOURCC('s','h','n',' ')
586#define VLC_CODEC_WAVPACK VLC_FOURCC('W','V','P','K')
587#define VLC_CODEC_GSM VLC_FOURCC('g','s','m',' ')
588#define VLC_CODEC_GSM_MS VLC_FOURCC('a','g','s','m')
589#define VLC_CODEC_ATRAC1 VLC_FOURCC('a','t','r','1')
590#define VLC_CODEC_ATRAC3 VLC_FOURCC('a','t','r','c')
591#define VLC_CODEC_ATRAC3P VLC_FOURCC('a','t','r','p')
592#define VLC_CODEC_IMC VLC_FOURCC(0x1,0x4,0x0,0x0)
593#define VLC_CODEC_TRUESPEECH VLC_FOURCC(0x22,0x0,0x0,0x0)
594#define VLC_CODEC_NELLYMOSER VLC_FOURCC('N','E','L','L')
595#define VLC_CODEC_APE VLC_FOURCC('A','P','E',' ')
596#define VLC_CODEC_QCELP VLC_FOURCC('Q','c','l','p')
597#define VLC_CODEC_302M VLC_FOURCC('3','0','2','m')
598#define VLC_CODEC_DVD_LPCM VLC_FOURCC('l','p','c','m')
599#define VLC_CODEC_DVDA_LPCM VLC_FOURCC('a','p','c','m')
600#define VLC_CODEC_BD_LPCM VLC_FOURCC('b','p','c','m')
601#define VLC_CODEC_WIDI_LPCM VLC_FOURCC('w','p','c','m')
602#define VLC_CODEC_SDDS VLC_FOURCC('s','d','d','s')
603#define VLC_CODEC_MIDI VLC_FOURCC('M','I','D','I')
604#define VLC_CODEC_RALF VLC_FOURCC('R','A','L','F')
606#define VLC_CODEC_S8 VLC_FOURCC('s','8',' ',' ')
607#define VLC_CODEC_U8 VLC_FOURCC('u','8',' ',' ')
608#define VLC_CODEC_S16L VLC_FOURCC('s','1','6','l')
609#define VLC_CODEC_S16L_PLANAR VLC_FOURCC('s','1','l','p')
610#define VLC_CODEC_S16B VLC_FOURCC('s','1','6','b')
611#define VLC_CODEC_U16L VLC_FOURCC('u','1','6','l')
612#define VLC_CODEC_U16B VLC_FOURCC('u','1','6','b')
613#define VLC_CODEC_S20B VLC_FOURCC('s','2','0','b')
614#define VLC_CODEC_S24L VLC_FOURCC('s','2','4','l')
615#define VLC_CODEC_S24B VLC_FOURCC('s','2','4','b')
616#define VLC_CODEC_U24L VLC_FOURCC('u','2','4','l')
617#define VLC_CODEC_U24B VLC_FOURCC('u','2','4','b')
618#define VLC_CODEC_S24L32 VLC_FOURCC('s','2','4','4')
619#define VLC_CODEC_S24B32 VLC_FOURCC('S','2','4','4')
620#define VLC_CODEC_S32L VLC_FOURCC('s','3','2','l')
621#define VLC_CODEC_S32B VLC_FOURCC('s','3','2','b')
622#define VLC_CODEC_U32L VLC_FOURCC('u','3','2','l')
623#define VLC_CODEC_U32B VLC_FOURCC('u','3','2','b')
624#define VLC_CODEC_F32L VLC_FOURCC('f','3','2','l')
625#define VLC_CODEC_F32B VLC_FOURCC('f','3','2','b')
626#define VLC_CODEC_F64L VLC_FOURCC('f','6','4','l')
627#define VLC_CODEC_F64B VLC_FOURCC('f','6','4','b')
629#define VLC_CODEC_ALAW VLC_FOURCC('a','l','a','w')
630#define VLC_CODEC_MULAW VLC_FOURCC('m','l','a','w')
631#define VLC_CODEC_DAT12 VLC_FOURCC('L','P','1','2')
632#define VLC_CODEC_S24DAUD VLC_FOURCC('d','a','u','d')
633#define VLC_CODEC_TWINVQ VLC_FOURCC('T','W','I','N')
634#define VLC_CODEC_BMVAUDIO VLC_FOURCC('B','M','V','A')
635#define VLC_CODEC_ULEAD_DV_AUDIO_NTSC VLC_FOURCC('m','s',0x02,0x15)
636#define VLC_CODEC_ULEAD_DV_AUDIO_PAL VLC_FOURCC('m','s',0x02,0x16)
637#define VLC_CODEC_INDEO_AUDIO VLC_FOURCC('m','s',0x04,0x02)
638#define VLC_CODEC_METASOUND VLC_FOURCC('m','s',0x00,0x75)
639#define VLC_CODEC_ON2AVC VLC_FOURCC('m','s',0x05,0x00)
640#define VLC_CODEC_TAK VLC_FOURCC('t','a','k',' ')
641#define VLC_CODEC_SMACKAUDIO VLC_FOURCC('S','M','K','A')
642#define VLC_CODEC_ADPCM_IMA_EA_SEAD VLC_FOURCC('S','E','A','D')
643#define VLC_CODEC_ADPCM_EA_R1 VLC_FOURCC('E','A','R','1')
644#define VLC_CODEC_ADPCM_EA_R3 VLC_FOURCC('E','A','R','3')
645#define VLC_CODEC_ADPCM_IMA_APC VLC_FOURCC('A','I','P','C')
646#define VLC_CODEC_DSD_LSBF VLC_FOURCC('D','S','D','l')
647#define VLC_CODEC_DSD_LSBF_PLANAR VLC_FOURCC('D','S','F','l')
648#define VLC_CODEC_DSD_MSBF VLC_FOURCC('D','S','D',' ')
649#define VLC_CODEC_DSD_MSBF_PLANAR VLC_FOURCC('D','S','F','m')
651/* Subtitle */
652#define VLC_CODEC_SPU VLC_FOURCC('s','p','u',' ')
653#define VLC_CODEC_DVBS VLC_FOURCC('d','v','b','s')
654#define VLC_CODEC_SUBT VLC_FOURCC('s','u','b','t')
655#define VLC_CODEC_XSUB VLC_FOURCC('X','S','U','B')
656#define VLC_CODEC_SSA VLC_FOURCC('s','s','a',' ')
657#define VLC_CODEC_TEXT VLC_FOURCC('T','E','X','T')
658#define VLC_CODEC_TELETEXT VLC_FOURCC('t','e','l','x')
659#define VLC_CODEC_KATE VLC_FOURCC('k','a','t','e')
660#define VLC_CODEC_CMML VLC_FOURCC('c','m','m','l')
661#define VLC_CODEC_ITU_T140 VLC_FOURCC('t','1','4','0')
662#define VLC_CODEC_USF VLC_FOURCC('u','s','f',' ')
663#define VLC_CODEC_OGT VLC_FOURCC('o','g','t',' ')
664#define VLC_CODEC_CVD VLC_FOURCC('c','v','d',' ')
665#define VLC_CODEC_QTXT VLC_FOURCC('q','t','x','t')
666#define VLC_CODEC_TX3G VLC_FOURCC('t','x','3','g')
667#define VLC_CODEC_ARIB_A VLC_FOURCC('a','r','b','a')
668#define VLC_CODEC_ARIB_C VLC_FOURCC('a','r','b','c')
669/* Blu-ray Presentation Graphics */
670#define VLC_CODEC_BD_PG VLC_FOURCC('b','d','p','g')
671#define VLC_CODEC_BD_TEXT VLC_FOURCC('b','d','t','x')
672/* EBU STL (TECH. 3264-E) */
673#define VLC_CODEC_EBU_STL VLC_FOURCC('S','T','L',' ')
674#define VLC_CODEC_SCTE_18 VLC_FOURCC('S','C','1','8')
675#define VLC_CODEC_SCTE_27 VLC_FOURCC('S','C','2','7')
676/* EIA/CEA-608/708 */
677#define VLC_CODEC_CEA608 VLC_FOURCC('c','6','0','8')
678#define VLC_CODEC_CEA708 VLC_FOURCC('c','7','0','8')
679#define VLC_CODEC_TTML VLC_FOURCC('s','t','p','p')
680#define VLC_CODEC_TTML_TS VLC_FOURCC('s','t','p','P') /* special for EN.303.560 */
681#define VLC_CODEC_WEBVTT VLC_FOURCC('w','v','t','t')
683/* XYZ colorspace 12 bits packed in 16 bits, organisation |XXX0|YYY0|ZZZ0| */
684#define VLC_CODEC_XYZ_12L VLC_FOURCC('X','Y','c','L')
685#define VLC_CODEC_XYZ_12B VLC_FOURCC('X','Y','c','B')
687
688/* Special endian dependent values
689 * The suffic N means Native
690 * The suffix I means Inverted (ie non native) */
691#ifdef WORDS_BIGENDIAN
692# define VLC_CODEC_S16N VLC_CODEC_S16B
693# define VLC_CODEC_U16N VLC_CODEC_U16B
694# define VLC_CODEC_S24N VLC_CODEC_S24B
695# define VLC_CODEC_U24N VLC_CODEC_U24B
696# define VLC_CODEC_S32N VLC_CODEC_S32B
697# define VLC_CODEC_U32N VLC_CODEC_U32B
698# define VLC_CODEC_FL32 VLC_CODEC_F32B
699# define VLC_CODEC_FL64 VLC_CODEC_F64B
700
701# define VLC_CODEC_S16I VLC_CODEC_S16L
702# define VLC_CODEC_U16I VLC_CODEC_U16L
703# define VLC_CODEC_S24I VLC_CODEC_S24L
704# define VLC_CODEC_U24I VLC_CODEC_U24L
705# define VLC_CODEC_S32I VLC_CODEC_S32L
706# define VLC_CODEC_U32I VLC_CODEC_U32L
707
708#else
709# define VLC_CODEC_S16N VLC_CODEC_S16L
710# define VLC_CODEC_U16N VLC_CODEC_U16L
711# define VLC_CODEC_S24N VLC_CODEC_S24L
712# define VLC_CODEC_U24N VLC_CODEC_U24L
713# define VLC_CODEC_S32N VLC_CODEC_S32L
714# define VLC_CODEC_U32N VLC_CODEC_U32L
715# define VLC_CODEC_FL32 VLC_CODEC_F32L
716# define VLC_CODEC_FL64 VLC_CODEC_F64L
718# define VLC_CODEC_S16I VLC_CODEC_S16B
719# define VLC_CODEC_U16I VLC_CODEC_U16B
720# define VLC_CODEC_S24I VLC_CODEC_S24B
721# define VLC_CODEC_U24I VLC_CODEC_U24B
722# define VLC_CODEC_S32I VLC_CODEC_S32B
723# define VLC_CODEC_U32I VLC_CODEC_U32B
724#endif
725
726/* Non official codecs, used to force a profile in an encoder */
727/* MPEG-1 video */
728#define VLC_CODEC_MP1V VLC_FOURCC('m','p','1','v')
729/* MPEG-2 video */
730#define VLC_CODEC_MP2V VLC_FOURCC('m','p','2','v')
731/* MPEG-I/II layer 2 audio */
732#define VLC_CODEC_MP2 VLC_FOURCC('m','p','2',' ')
733/* MPEG-I/II layer 3 audio */
734#define VLC_CODEC_MP3 VLC_FOURCC('m','p','3',' ')
736/**
737 * It returns the codec associated to a fourcc within an ES category.
738 *
739 * If not found, it will return the given fourcc.
740 * If found, it will always be one of the VLC_CODEC_ defined above.
741 *
742 * You may use UNKNOWN_ES for the ES category if you don't have the information.
743 */
745
746/**
747 * It returns the codec associated to a fourcc stored in a zero terminated
748 * string.
749 *
750 * If the string is NULL or has more than 4 characters or doesn't correspond
751 * to a string associated with a VLC_CODEC_, it will return 0, otherwise it
752 * will one of the VLC_CODEC_ defined above.
753 *
754 * You may use UNKNOWN_ES for the ES category if you don't have the information.
755 *
756 * Provided for convenience.
757 */
758VLC_API vlc_fourcc_t vlc_fourcc_GetCodecFromString( int i_cat, const char * );
759
760/**
761 * It converts the given fourcc to an audio codec when possible.
762 *
763 * The fourccs converted are aflt, araw/pcm , twos, sowt. When an incompatible i_bits
764 * is detected, 0 is returned.
765 * The other fourccs go through vlc_fourcc_GetCodec and i_bits is not checked.
766 */
768
769/**
770 * It returns the description of the given fourcc or NULL if not found.
771 *
772 * You may use UNKNOWN_ES for the ES category if you don't have the information.
773 */
774VLC_API const char * vlc_fourcc_GetDescription( int i_cat, vlc_fourcc_t i_fourcc );
775
776/**
777 * It returns a list (terminated with the value 0) of YUV fourccs in
778 * decreasing priority order for the given chroma.
779 *
780 * It will always return a non NULL pointer that must not be freed.
781 */
783
784/**
785 * It returns a list (terminated with the value 0) of RGB fourccs in
786 * decreasing priority order for the given chroma.
787 *
788 * It will always return a non NULL pointer that must not be freed.
789 */
791
792/**
793 * It returns a list (terminated with the value 0) of fourccs in decreasing
794 * priority order for the given chroma. It will return either YUV or RGB
795 * fallbacks depending on whether or not the fourcc given is YUV.
796 *
797 * It will always return a non NULL pointer that must not be freed.
798 */
800
801/**
802 * It returns true if the given fourcc is YUV and false otherwise.
803 */
805
806/**
807 * Chroma related information.
808 */
809typedef struct {
811 unsigned plane_count;
812 struct {
815 } p[4];
816 unsigned pixel_size; /* Number of bytes per pixel for a plane */
817 unsigned pixel_bits; /* Number of bits actually used bits per pixel for a plane */
819
820/**
821 * It returns a vlc_chroma_description_t describing the requested fourcc or NULL
822 * if not found.
823 */
825
826/**
827 * Get the average usable bits per pixel for a chroma.
828 * \note it may return 0 for opaque or compressed vlc_fourcc_t
829 */
830static inline unsigned vlc_fourcc_GetChromaBPP( vlc_fourcc_t fourcc )
833 if (desc == NULL || desc->plane_count == 0)
834 return 0;
835
836 unsigned bpp = 0;
837 for (size_t plane=0; plane < desc->plane_count; plane++)
838 {
839 bpp += 2 * desc->pixel_bits * desc->p[plane].h.num * desc->p[plane].w.num /
840 (desc->p[plane].h.den * desc->p[plane].w.den);
841 }
842 bpp /= 2; // for chromas that might have 4*4 denominators
843 return bpp;
844}
845
846#endif /* _VLC_FOURCC_H */
847
#define VLC_USED
Definition fourcc_gen.c:32
#define VLC_API
Definition fourcc_gen.c:31
#define p(t)
uint32_t vlc_fourcc_t
Definition fourcc_gen.c:33
Chroma related information.
Definition vlc_fourcc.h:810
unsigned plane_count
Definition vlc_fourcc.h:812
unsigned pixel_size
Definition vlc_fourcc.h:817
vlc_fourcc_t fcc
Definition vlc_fourcc.h:811
struct vlc_chroma_description_t::@231 p[4]
vlc_rational_t h
Definition vlc_fourcc.h:815
unsigned pixel_bits
Definition vlc_fourcc.h:818
vlc_rational_t w
Definition vlc_fourcc.h:814
Definition fourcc_gen.c:34
unsigned num
Definition fourcc_gen.c:34
unsigned den
Definition fourcc_gen.c:34
vlc_fourcc_t i_fourcc
Definition vlc_codecs.h:313
This file is a collection of common definitions and types.
const vlc_fourcc_t * vlc_fourcc_GetRGBFallback(vlc_fourcc_t)
It returns a list (terminated with the value 0) of RGB fourccs in decreasing priority order for the g...
Definition fourcc.c:648
vlc_fourcc_t vlc_fourcc_GetCodecAudio(vlc_fourcc_t i_fourcc, int i_bits)
It converts the given fourcc to an audio codec when possible.
Definition fourcc.c:132
const vlc_chroma_description_t * vlc_fourcc_GetChromaDescription(vlc_fourcc_t fourcc)
It returns a vlc_chroma_description_t describing the requested fourcc or NULL if not found.
Definition fourcc.c:855
const char * vlc_fourcc_GetDescription(int i_cat, vlc_fourcc_t i_fourcc)
It returns the description of the given fourcc or NULL if not found.
Definition fourcc.c:202
const vlc_fourcc_t * vlc_fourcc_GetFallback(vlc_fourcc_t)
It returns a list (terminated with the value 0) of fourccs in decreasing priority order for the given...
Definition fourcc.c:653
vlc_fourcc_t vlc_fourcc_GetCodec(int i_cat, vlc_fourcc_t i_fourcc)
It returns the codec associated to a fourcc within an ES category.
Definition fourcc.c:112
vlc_fourcc_t vlc_fourcc_GetCodecFromString(int i_cat, const char *)
It returns the codec associated to a fourcc stored in a zero terminated string.
Definition fourcc.c:118
static unsigned vlc_fourcc_GetChromaBPP(vlc_fourcc_t fourcc)
Get the average usable bits per pixel for a chroma.
Definition vlc_fourcc.h:831
const vlc_fourcc_t * vlc_fourcc_GetYUVFallback(vlc_fourcc_t)
It returns a list (terminated with the value 0) of YUV fourccs in decreasing priority order for the g...
Definition fourcc.c:644
bool vlc_fourcc_IsYUV(vlc_fourcc_t)
It returns true if the given fourcc is YUV and false otherwise.
Definition fourcc.c:660