1 /*****************************************************************************
2 * vlc_fourcc.h: Definition of various FOURCC and helpers
3 *****************************************************************************
4 * Copyright (C) 2009 Laurent Aimar
7 * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ com>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
25 #define VLC_FOURCC_H 1
27 #include <vlc_common.h>
31 #define VLC_CODEC_MPGV VLC_FOURCC('m','p','g','v')
32 #define VLC_CODEC_MP4V VLC_FOURCC('m','p','4','v')
33 #define VLC_CODEC_DIV1 VLC_FOURCC('D','I','V','1')
34 #define VLC_CODEC_DIV2 VLC_FOURCC('D','I','V','2')
35 #define VLC_CODEC_DIV3 VLC_FOURCC('D','I','V','3')
36 #define VLC_CODEC_SVQ1 VLC_FOURCC('S','V','Q','1')
37 #define VLC_CODEC_SVQ3 VLC_FOURCC('S','V','Q','3')
38 #define VLC_CODEC_H264 VLC_FOURCC('h','2','6','4')
39 #define VLC_CODEC_H263 VLC_FOURCC('h','2','6','3')
40 #define VLC_CODEC_H263I VLC_FOURCC('I','2','6','3')
41 #define VLC_CODEC_H263P VLC_FOURCC('I','L','V','R')
42 #define VLC_CODEC_FLV1 VLC_FOURCC('F','L','V','1')
43 #define VLC_CODEC_H261 VLC_FOURCC('h','2','6','1')
44 #define VLC_CODEC_MJPG VLC_FOURCC('M','J','P','G')
45 #define VLC_CODEC_MJPGB VLC_FOURCC('m','j','p','b')
46 #define VLC_CODEC_LJPG VLC_FOURCC('L','J','P','G')
47 #define VLC_CODEC_WMV1 VLC_FOURCC('W','M','V','1')
48 #define VLC_CODEC_WMV2 VLC_FOURCC('W','M','V','2')
49 #define VLC_CODEC_WMV3 VLC_FOURCC('W','M','V','3')
50 #define VLC_CODEC_WMVA VLC_FOURCC('W','M','V','A')
51 #define VLC_CODEC_VC1 VLC_FOURCC('V','C','-','1')
52 #define VLC_CODEC_THEORA VLC_FOURCC('t','h','e','o')
53 #define VLC_CODEC_TARKIN VLC_FOURCC('t','a','r','k')
54 #define VLC_CODEC_SNOW VLC_FOURCC('S','N','O','W')
55 #define VLC_CODEC_DIRAC VLC_FOURCC('d','r','a','c')
56 #define VLC_CODEC_CAVS VLC_FOURCC('C','A','V','S')
57 #define VLC_CODEC_NUV VLC_FOURCC('N','J','P','G')
58 #define VLC_CODEC_RV10 VLC_FOURCC('R','V','1','0')
59 #define VLC_CODEC_RV13 VLC_FOURCC('R','V','1','3')
60 #define VLC_CODEC_RV20 VLC_FOURCC('R','V','2','0')
61 #define VLC_CODEC_RV30 VLC_FOURCC('R','V','3','0')
62 #define VLC_CODEC_RV40 VLC_FOURCC('R','V','4','0')
63 #define VLC_CODEC_VP3 VLC_FOURCC('V','P','3',' ')
64 #define VLC_CODEC_VP5 VLC_FOURCC('V','P','5',' ')
65 #define VLC_CODEC_VP6 VLC_FOURCC('V','P','6','2')
66 #define VLC_CODEC_VP6F VLC_FOURCC('V','P','6','F')
67 #define VLC_CODEC_VP6A VLC_FOURCC('V','P','6','A')
68 #define VLC_CODEC_MSVIDEO1 VLC_FOURCC('M','S','V','C')
69 #define VLC_CODEC_FLIC VLC_FOURCC('F','L','I','C')
70 #define VLC_CODEC_SP5X VLC_FOURCC('S','P','5','X')
71 #define VLC_CODEC_DV VLC_FOURCC('d','v',' ',' ')
72 #define VLC_CODEC_MSRLE VLC_FOURCC('m','r','l','e')
73 #define VLC_CODEC_INDEO3 VLC_FOURCC('I','V','3','1')
74 #define VLC_CODEC_HUFFYUV VLC_FOURCC('H','F','Y','U')
75 #define VLC_CODEC_FFVHUFF VLC_FOURCC('F','F','V','H')
76 #define VLC_CODEC_ASV1 VLC_FOURCC('A','S','V','1')
77 #define VLC_CODEC_ASV2 VLC_FOURCC('A','S','V','2')
78 #define VLC_CODEC_FFV1 VLC_FOURCC('F','F','V','1')
79 #define VLC_CODEC_VCR1 VLC_FOURCC('V','C','R','1')
80 #define VLC_CODEC_CLJR VLC_FOURCC('C','L','J','R')
81 #define VLC_CODEC_RPZA VLC_FOURCC('r','p','z','a')
82 #define VLC_CODEC_SMC VLC_FOURCC('s','m','c',' ')
83 #define VLC_CODEC_CINEPAK VLC_FOURCC('C','V','I','D')
84 #define VLC_CODEC_TSCC VLC_FOURCC('T','S','C','C')
85 #define VLC_CODEC_CSCD VLC_FOURCC('C','S','C','D')
86 #define VLC_CODEC_ZMBV VLC_FOURCC('Z','M','B','V')
87 #define VLC_CODEC_VMNC VLC_FOURCC('V','M','n','c')
88 #define VLC_CODEC_FRAPS VLC_FOURCC('F','P','S','1')
89 #define VLC_CODEC_TRUEMOTION1 VLC_FOURCC('D','U','C','K')
90 #define VLC_CODEC_TRUEMOTION2 VLC_FOURCC('T','M','2','0')
91 #define VLC_CODEC_QTRLE VLC_FOURCC('r','l','e',' ')
92 #define VLC_CODEC_QDRAW VLC_FOURCC('q','d','r','w')
93 #define VLC_CODEC_QPEG VLC_FOURCC('Q','P','E','G')
94 #define VLC_CODEC_ULTI VLC_FOURCC('U','L','T','I')
95 #define VLC_CODEC_VIXL VLC_FOURCC('V','I','X','L')
96 #define VLC_CODEC_LOCO VLC_FOURCC('L','O','C','O')
97 #define VLC_CODEC_WNV1 VLC_FOURCC('W','N','V','1')
98 #define VLC_CODEC_AASC VLC_FOURCC('A','A','S','C')
99 #define VLC_CODEC_INDEO2 VLC_FOURCC('I','V','2','0')
100 #define VLC_CODEC_FLASHSV VLC_FOURCC('F','S','V','1')
101 #define VLC_CODEC_KMVC VLC_FOURCC('K','M','V','C')
102 #define VLC_CODEC_SMACKVIDEO VLC_FOURCC('S','M','K','2')
103 #define VLC_CODEC_DNXHD VLC_FOURCC('A','V','d','n')
104 #define VLC_CODEC_8BPS VLC_FOURCC('8','B','P','S')
105 #define VLC_CODEC_MIMIC VLC_FOURCC('M','L','2','O')
106 #define VLC_CODEC_INTERPLAY VLC_FOURCC('i','m','v','e')
107 #define VLC_CODEC_IDCIN VLC_FOURCC('I','D','C','I')
108 #define VLC_CODEC_4XM VLC_FOURCC('4','X','M','V')
109 #define VLC_CODEC_ROQ VLC_FOURCC('R','o','Q','v')
110 #define VLC_CODEC_MDEC VLC_FOURCC('M','D','E','C')
111 #define VLC_CODEC_VMDVIDEO VLC_FOURCC('V','M','D','V')
112 #define VLC_CODEC_CDG VLC_FOURCC('C','D','G',' ')
113 #define VLC_CODEC_FRWU VLC_FOURCC('F','R','W','U')
114 #define VLC_CODEC_AMV VLC_FOURCC('A','M','V',' ')
115 #define VLC_CODEC_INDEO5 VLC_FOURCC('I','V','5','0')
118 /* Planar YUV 4:1:0 Y:V:U */
119 #define VLC_CODEC_YV9 VLC_FOURCC('Y','V','U','9')
120 /* Planar YUV 4:2:0 Y:V:U */
121 #define VLC_CODEC_YV12 VLC_FOURCC('Y','V','1','2')
122 /* Planar YUV 4:1:0 Y:U:V */
123 #define VLC_CODEC_I410 VLC_FOURCC('I','4','1','0')
124 /* Planar YUV 4:1:1 Y:U:V */
125 #define VLC_CODEC_I411 VLC_FOURCC('I','4','1','1')
126 /* Planar YUV 4:2:0 Y:U:V */
127 #define VLC_CODEC_I420 VLC_FOURCC('I','4','2','0')
128 /* Planar YUV 4:2:2 Y:U:V */
129 #define VLC_CODEC_I422 VLC_FOURCC('I','4','2','2')
130 /* Planar YUV 4:4:0 Y:U:V */
131 #define VLC_CODEC_I440 VLC_FOURCC('I','4','4','0')
132 /* Planar YUV 4:4:4 Y:U:V */
133 #define VLC_CODEC_I444 VLC_FOURCC('I','4','4','4')
134 /* Planar YUV 4:2:0 Y:U:V full scale */
135 #define VLC_CODEC_J420 VLC_FOURCC('J','4','2','0')
136 /* Planar YUV 4:2:2 Y:U:V full scale */
137 #define VLC_CODEC_J422 VLC_FOURCC('J','4','2','2')
138 /* Planar YUV 4:4:0 Y:U:V full scale */
139 #define VLC_CODEC_J440 VLC_FOURCC('J','4','4','0')
140 /* Planar YUV 4:4:4 Y:U:V full scale */
141 #define VLC_CODEC_J444 VLC_FOURCC('J','4','4','4')
142 /* Palettized YUV with palette element Y:U:V:A */
143 #define VLC_CODEC_YUVP VLC_FOURCC('Y','U','V','P')
144 /* Planar YUV 4:4:4 Y:U:V:A */
145 #define VLC_CODEC_YUVA VLC_FOURCC('Y','U','V','A')
146 /* Palettized RGB with palette element R:G:B */
147 #define VLC_CODEC_RGBP VLC_FOURCC('R','G','B','P')
149 #define VLC_CODEC_RGB8 VLC_FOURCC('R','G','B','2')
150 /* 15 bits RGB stored on 16 bits */
151 #define VLC_CODEC_RGB15 VLC_FOURCC('R','V','1','5')
152 /* 16 bits RGB store on a 16 bits */
153 #define VLC_CODEC_RGB16 VLC_FOURCC('R','V','1','6')
155 #define VLC_CODEC_RGB24 VLC_FOURCC('R','V','2','4')
157 #define VLC_CODEC_RGB32 VLC_FOURCC('R','V','3','2')
158 /* 32 bits VLC RGBA */
159 #define VLC_CODEC_RGBA VLC_FOURCC('R','G','B','A')
161 #define VLC_CODEC_GREY VLC_FOURCC('G','R','E','Y')
162 /* Packed YUV 4:2:2, U:Y:V:Y */
163 #define VLC_CODEC_UYVY VLC_FOURCC('U','Y','V','Y')
164 /* Packed YUV 4:2:2, V:Y:U:Y */
165 #define VLC_CODEC_VYUY VLC_FOURCC('V','Y','U','Y')
166 /* Packed YUV 4:2:2, Y:U:Y:V */
167 #define VLC_CODEC_YUYV VLC_FOURCC('Y','U','Y','2')
168 /* Packed YUV 4:2:2, Y:V:Y:U */
169 #define VLC_CODEC_YVYU VLC_FOURCC('Y','V','Y','U')
170 /* Packed YUV 2:1:1, Y:U:Y:V */
171 #define VLC_CODEC_Y211 VLC_FOURCC('Y','2','1','1')
172 /* Packed YUV 4:2:2, U:Y:V:Y, reverted */
173 #define VLC_CODEC_CYUV VLC_FOURCC('c','y','u','v')
174 /* 10-bit 4:2:2 Component YCbCr */
175 #define VLC_CODEC_V210 VLC_FOURCC('v','2','1','0')
177 /* Image codec (video) */
178 #define VLC_CODEC_PNG VLC_FOURCC('p','n','g',' ')
179 #define VLC_CODEC_PPM VLC_FOURCC('p','p','m',' ')
180 #define VLC_CODEC_PGM VLC_FOURCC('p','g','m',' ')
181 #define VLC_CODEC_PGMYUV VLC_FOURCC('p','g','m','y')
182 #define VLC_CODEC_PAM VLC_FOURCC('p','a','m',' ')
183 #define VLC_CODEC_JPEG VLC_FOURCC('j','p','e','g')
184 #define VLC_CODEC_JPEGLS VLC_FOURCC('M','J','L','S')
185 #define VLC_CODEC_BMP VLC_FOURCC('b','m','p',' ')
186 #define VLC_CODEC_TIFF VLC_FOURCC('t','i','f','f')
187 #define VLC_CODEC_GIF VLC_FOURCC('g','i','f',' ')
188 #define VLC_CODEC_TARGA VLC_FOURCC('t','g','a',' ')
189 #define VLC_CODEC_SGI VLC_FOURCC('s','g','i',' ')
190 #define VLC_CODEC_PNM VLC_FOURCC('p','n','m',' ')
191 #define VLC_CODEC_PCX VLC_FOURCC('p','c','x',' ')
195 #define VLC_CODEC_MPGA VLC_FOURCC('m','p','g','a')
196 #define VLC_CODEC_MP4A VLC_FOURCC('m','p','4','a')
197 #define VLC_CODEC_ALS VLC_FOURCC('a','l','s',' ')
198 #define VLC_CODEC_A52 VLC_FOURCC('a','5','2',' ')
199 #define VLC_CODEC_EAC3 VLC_FOURCC('e','a','c','3')
200 #define VLC_CODEC_DTS VLC_FOURCC('d','t','s',' ')
201 #define VLC_CODEC_WMA1 VLC_FOURCC('W','M','A','1')
202 #define VLC_CODEC_WMA2 VLC_FOURCC('W','M','A','2')
203 #define VLC_CODEC_WMAP VLC_FOURCC('W','M','A','P')
204 #define VLC_CODEC_WMAL VLC_FOURCC('W','M','A','L')
205 #define VLC_CODEC_WMAS VLC_FOURCC('W','M','A','S')
206 #define VLC_CODEC_FLAC VLC_FOURCC('f','l','a','c')
207 #define VLC_CODEC_MLP VLC_FOURCC('m','l','p',' ')
208 #define VLC_CODEC_TRUEHD VLC_FOURCC('t','r','h','d')
209 #define VLC_CODEC_DVAUDIO VLC_FOURCC('d','v','a','u')
210 #define VLC_CODEC_SPEEX VLC_FOURCC('s','p','x',' ')
211 #define VLC_CODEC_VORBIS VLC_FOURCC('v','o','r','b')
212 #define VLC_CODEC_MACE3 VLC_FOURCC('M','A','C','3')
213 #define VLC_CODEC_MACE6 VLC_FOURCC('M','A','C','6')
214 #define VLC_CODEC_MUSEPACK7 VLC_FOURCC('M','P','C',' ')
215 #define VLC_CODEC_MUSEPACK8 VLC_FOURCC('M','P','C','K')
216 #define VLC_CODEC_RA_144 VLC_FOURCC('1','4','_','4')
217 #define VLC_CODEC_RA_288 VLC_FOURCC('2','8','_','8')
218 #define VLC_CODEC_ADPCM_4XM VLC_FOURCC('4','x','m','a')
219 #define VLC_CODEC_ADPCM_EA VLC_FOURCC('A','D','E','A')
220 #define VLC_CODEC_INTERPLAY_DPCM VLC_FOURCC('i','d','p','c')
221 #define VLC_CODEC_ROQ_DPCM VLC_FOURCC('R','o','Q','a')
222 #define VLC_CODEC_DSICINAUDIO VLC_FOURCC('D','C','I','A')
223 #define VLC_CODEC_ADPCM_XA VLC_FOURCC('x','a',' ',' ')
224 #define VLC_CODEC_ADPCM_ADX VLC_FOURCC('a','d','x',' ')
225 #define VLC_CODEC_ADPCM_IMA_WS VLC_FOURCC('A','I','W','S')
226 #define VLC_CODEC_ADPCM_G726 VLC_FOURCC('g','7','2','6')
227 #define VLC_CODEC_ADPCM_SWF VLC_FOURCC('S','W','F','a')
228 #define VLC_CODEC_ADPCM_MS VLC_FOURCC('m','s',0x00,0x02)
229 #define VLC_CODEC_ADPCM_IMA_WAV VLC_FOURCC('m','s',0x00,0x11)
230 #define VLC_CODEC_VMDAUDIO VLC_FOURCC('v','m','d','a')
231 #define VLC_CODEC_AMR_NB VLC_FOURCC('s','a','m','r')
232 #define VLC_CODEC_AMR_WB VLC_FOURCC('s','a','w','b')
233 #define VLC_CODEC_ALAC VLC_FOURCC('a','l','a','c')
234 #define VLC_CODEC_QDM2 VLC_FOURCC('Q','D','M','2')
235 #define VLC_CODEC_COOK VLC_FOURCC('c','o','o','k')
236 #define VLC_CODEC_SIPR VLC_FOURCC('s','i','p','r')
237 #define VLC_CODEC_TTA VLC_FOURCC('T','T','A','1')
238 #define VLC_CODEC_SHORTEN VLC_FOURCC('s','h','n',' ')
239 #define VLC_CODEC_WAVPACK VLC_FOURCC('W','V','P','K')
240 #define VLC_CODEC_GSM VLC_FOURCC('g','s','m',' ')
241 #define VLC_CODEC_GSM_MS VLC_FOURCC('a','g','s','m')
242 #define VLC_CODEC_ATRAC1 VLC_FOURCC('a','t','r','1')
243 #define VLC_CODEC_ATRAC3 VLC_FOURCC('a','t','r','c')
244 #define VLC_CODEC_SONIC VLC_FOURCC('S','O','N','C')
245 #define VLC_CODEC_IMC VLC_FOURCC(0x1,0x4,0x0,0x0)
246 #define VLC_CODEC_TRUESPEECH VLC_FOURCC(0x22,0x0,0x0,0x0)
247 #define VLC_CODEC_NELLYMOSER VLC_FOURCC('N','E','L','L')
248 #define VLC_CODEC_APE VLC_FOURCC('A','P','E',' ')
249 #define VLC_CODEC_QCELP VLC_FOURCC('Q','c','l','p')
250 #define VLC_CODEC_302M VLC_FOURCC('3','0','2','m')
251 #define VLC_CODEC_DVD_LPCM VLC_FOURCC('l','p','c','m')
252 #define VLC_CODEC_DVDA_LPCM VLC_FOURCC('a','p','c','m')
253 #define VLC_CODEC_BD_LPCM VLC_FOURCC('b','p','c','m')
254 #define VLC_CODEC_SDDS VLC_FOURCC('s','d','d','s')
255 #define VLC_CODEC_MIDI VLC_FOURCC('M','I','D','I')
256 #define VLC_CODEC_S8 VLC_FOURCC('s','8',' ',' ')
257 #define VLC_CODEC_U8 VLC_FOURCC('u','8',' ',' ')
258 #define VLC_CODEC_S16L VLC_FOURCC('s','1','6','l')
259 #define VLC_CODEC_S16B VLC_FOURCC('s','1','6','b')
260 #define VLC_CODEC_U16L VLC_FOURCC('u','1','6','l')
261 #define VLC_CODEC_U16B VLC_FOURCC('u','1','6','b')
262 #define VLC_CODEC_S24L VLC_FOURCC('s','2','4','l')
263 #define VLC_CODEC_S24B VLC_FOURCC('s','2','4','b')
264 #define VLC_CODEC_U24L VLC_FOURCC('u','2','4','l')
265 #define VLC_CODEC_U24B VLC_FOURCC('u','2','4','b')
266 #define VLC_CODEC_S32L VLC_FOURCC('s','3','2','l')
267 #define VLC_CODEC_S32B VLC_FOURCC('s','3','2','b')
268 #define VLC_CODEC_U32L VLC_FOURCC('u','3','2','l')
269 #define VLC_CODEC_U32B VLC_FOURCC('u','3','2','b')
270 #define VLC_CODEC_F32L VLC_FOURCC('f','3','2','l')
271 #define VLC_CODEC_F32B VLC_FOURCC('f','3','2','b')
272 #define VLC_CODEC_F64L VLC_FOURCC('f','6','4','l')
273 #define VLC_CODEC_F64B VLC_FOURCC('f','6','4','b')
275 #define VLC_CODEC_ALAW VLC_FOURCC('a','l','a','w')
276 #define VLC_CODEC_MULAW VLC_FOURCC('m','l','a','w')
277 #define VLC_CODEC_S24DAUD VLC_FOURCC('d','a','u','d')
278 #define VLC_CODEC_FI32 VLC_FOURCC('f','i','3','2')
279 #define VLC_CODEC_TWINVQ VLC_FOURCC('T','W','I','N')
280 #define VLC_CODEC_ADPCM_IMA_AMV VLC_FOURCC('i','m','a','v')
283 #define VLC_CODEC_SPU VLC_FOURCC('s','p','u',' ')
284 #define VLC_CODEC_DVBS VLC_FOURCC('d','v','b','s')
285 #define VLC_CODEC_SUBT VLC_FOURCC('s','u','b','t')
286 #define VLC_CODEC_XSUB VLC_FOURCC('X','S','U','B')
287 #define VLC_CODEC_SSA VLC_FOURCC('s','s','a',' ')
288 #define VLC_CODEC_TEXT VLC_FOURCC('T','E','X','T')
289 #define VLC_CODEC_TELETEXT VLC_FOURCC('t','e','l','x')
290 #define VLC_CODEC_KATE VLC_FOURCC('k','a','t','e')
291 #define VLC_CODEC_CMML VLC_FOURCC('c','m','m','l')
292 #define VLC_CODEC_ITU_T140 VLC_FOURCC('t','1','4','0')
293 #define VLC_CODEC_USF VLC_FOURCC('u','s','f',' ')
294 #define VLC_CODEC_OGT VLC_FOURCC('o','g','t',' ')
295 #define VLC_CODEC_CVD VLC_FOURCC('c','v','d',' ')
296 /* Blu-ray Presentation Graphics */
297 #define VLC_CODEC_BD_PG VLC_FOURCC('b','d','p','g')
300 /* Special endian dependant values
301 * The suffic N means Native
302 * The suffix I means Inverted (ie non native) */
303 #ifdef WORDS_BIGENDIAN
304 # define VLC_CODEC_S16N VLC_CODEC_S16B
305 # define VLC_CODEC_U16N VLC_CODEC_U16B
306 # define VLC_CODEC_S24N VLC_CODEC_S24B
307 # define VLC_CODEC_S32N VLC_CODEC_S32B
308 # define VLC_CODEC_FL32 VLC_CODEC_F32B
309 # define VLC_CODEC_FL64 VLC_CODEC_F64B
311 # define VLC_CODEC_S16I VLC_CODEC_S16L
312 # define VLC_CODEC_U16I VLC_CODEC_U16L
313 # define VLC_CODEC_S24I VLC_CODEC_S24L
314 # define VLC_CODEC_S32I VLC_CODEC_S32L
316 # define VLC_CODEC_S16N VLC_CODEC_S16L
317 # define VLC_CODEC_U16N VLC_CODEC_U16L
318 # define VLC_CODEC_S24N VLC_CODEC_S24L
319 # define VLC_CODEC_S32N VLC_CODEC_S32L
320 # define VLC_CODEC_FL32 VLC_CODEC_F32L
321 # define VLC_CODEC_FL64 VLC_CODEC_F64L
323 # define VLC_CODEC_S16I VLC_CODEC_S16B
324 # define VLC_CODEC_U16I VLC_CODEC_U16B
325 # define VLC_CODEC_S24I VLC_CODEC_S24B
326 # define VLC_CODEC_S32I VLC_CODEC_S32B
329 /* Non official codecs, used to force a profile in an encoder */
331 #define VLC_CODEC_MP1V VLC_FOURCC('m','p','1','v')
333 #define VLC_CODEC_MP2V VLC_FOURCC('m','p','2','v')
334 /* MPEG-I/II layer 3 audio */
335 #define VLC_CODEC_MP3 VLC_FOURCC('m','p','3',' ')
338 * It returns the codec associated to a fourcc within a ES category.
340 * If not found, it will return the given fourcc.
341 * If found, it will allways be one of the VLC_CODEC_ defined above.
343 * You may use UNKNOWN_ES for the ES category if you don't have the information.
345 VLC_EXPORT( vlc_fourcc_t
, vlc_fourcc_GetCodec
, ( int i_cat
, vlc_fourcc_t i_fourcc
) );
348 * It returns the codec associated to a fourcc store in a zero terminated
351 * If the string is NULL or does not have exactly 4 charateres, it will
352 * return 0, otherwise it behaves like vlc_fourcc_GetCodec.
354 * Provided for convenience.
356 VLC_EXPORT( vlc_fourcc_t
, vlc_fourcc_GetCodecFromString
, ( int i_cat
, const char * ) );
359 * It convert the gives fourcc to an audio codec when possible.
361 * The fourcc converted are aflt, araw/pcm , twos, sowt. When an incompatible i_bits
362 * is detected, 0 is returned.
363 * The other fourcc goes through vlc_fourcc_GetCodec and i_bits is not checked.
365 VLC_EXPORT( vlc_fourcc_t
, vlc_fourcc_GetCodecAudio
, ( vlc_fourcc_t i_fourcc
, int i_bits
) );
368 * It returns the description of the given fourcc or NULL if not found.
370 * You may use UNKNOWN_ES for the ES category if you don't have the information.
372 VLC_EXPORT( const char *, vlc_fourcc_GetDescription
, ( int i_cat
, vlc_fourcc_t i_fourcc
) );
375 * It returns a list (terminated with the value 0) of YUV fourccs in
376 * decreasing priority order for the given chroma.
378 * It will always return a non NULL pointer that must not be freed.
380 VLC_EXPORT( const vlc_fourcc_t
*, vlc_fourcc_GetYUVFallback
, ( vlc_fourcc_t
) );
383 * It returns a list (terminated with the value 0) of RGB fourccs in
384 * decreasing priority order for the given chroma.
386 * It will always return a non NULL pointer that must not be freed.
388 VLC_EXPORT( const vlc_fourcc_t
*, vlc_fourcc_GetRGBFallback
, ( vlc_fourcc_t
) );
391 * It returns true if the given fourcc is YUV and false otherwise.
393 VLC_EXPORT( bool, vlc_fourcc_IsYUV
, ( vlc_fourcc_t
) );
396 * It returns true if the two fourccs are equivalent if their U&V planes are
399 VLC_EXPORT( bool, vlc_fourcc_AreUVPlanesSwapped
, (vlc_fourcc_t
, vlc_fourcc_t
) );
402 #endif /* _VLC_FOURCC_H */