VLC  4.0.0-dev
vlc_codecs.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * vlc_codecs.h: codec related structures needed by the demuxers and decoders
3  *****************************************************************************
4  * Copyright (C) 1999-2001 VLC authors and VideoLAN
5  *
6  * Author: Gildas Bazin <gbazin@videolan.org>
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_CODECS_H
24 #define VLC_CODECS_H 1
25 
26 #include <vlc_fourcc.h>
27 /**
28  * \file
29  * This file defines codec related structures needed by the demuxers and decoders
30  */
31 
32 /* Structures exported to the demuxers and decoders */
33 
34 #if !(defined _GUID_DEFINED || defined GUID_DEFINED)
35 #define GUID_DEFINED
36 typedef struct _GUID
37 {
38  uint32_t Data1;
39  uint16_t Data2;
40  uint16_t Data3;
41  uint8_t Data4[8];
43 #endif /* GUID_DEFINED */
44 
45 typedef GUID vlc_guid_t;
46 
47 #ifdef HAVE_ATTRIBUTE_PACKED
48 # define ATTR_PACKED __attribute__((__packed__))
49 #elif defined(__SUNPRO_C) || defined(_MSC_VER)
50 # pragma pack(1)
51 # define ATTR_PACKED
52 #elif defined(__APPLE__)
53 # pragma pack(push, 1)
54 # define ATTR_PACKED
55 #else
56 # error FIXME
57 #endif
58 
59 #ifndef _WAVEFORMATEX_
60 #define _WAVEFORMATEX_
61 typedef struct
64  uint16_t wFormatTag;
65  uint16_t nChannels;
66  uint32_t nSamplesPerSec;
67  uint32_t nAvgBytesPerSec;
68  uint16_t nBlockAlign;
69  uint16_t wBitsPerSample;
70  uint16_t cbSize;
72 #endif /* _WAVEFORMATEX_ */
73 
74 #ifndef _WAVEFORMATEXTENSIBLE_
75 #define _WAVEFORMATEXTENSIBLE_
76 typedef struct
79  WAVEFORMATEX Format;
80  union {
81  uint16_t wValidBitsPerSample; /* bits of precision */
82  uint16_t wSamplesPerBlock; /* valid if wBitsPerSample==0 */
83  uint16_t wReserved; /* If neither applies, set to zero. */
84  } Samples;
85 
86  uint32_t dwChannelMask; /* Channels present */
87 
88  GUID SubFormat;
90 #endif /* _WAVEFORMATEXTENSIBLE_ */
91 
92 #ifndef _WAVEFORMATEXTENSIBLE_IEC61937_
93 #define _WAVEFORMATEXTENSIBLE_IEC61937_
94 typedef struct
97  WAVEFORMATEXTENSIBLE FormatExt;
98  uint32_t dwEncodedSamplesPerSec;
99  uint32_t dwEncodedChannelCount;
100  uint32_t dwAverageBytesPerSec;
102 #endif /* _WAVEFORMATEXTENSIBLE_IEC61937_ */
103 
104 #ifndef _WAVEHEADER_
105 #define _WAVEHEADER_
106 typedef struct
108 _WAVEHEADER {
109  uint32_t MainChunkID;
110  uint32_t Length;
111  uint32_t ChunkTypeID;
112  uint32_t SubChunkID;
113  uint32_t SubChunkLength;
114  uint16_t Format;
115  uint16_t Modus;
116  uint32_t SampleFreq;
117  uint32_t BytesPerSec;
118  uint16_t BytesPerSample;
119  uint16_t BitsPerSample;
120  uint32_t DataChunkID;
121  uint32_t DataLength;
123 #endif /* _WAVEHEADER_ */
124 
125 #ifndef _VLC_BITMAPINFOHEADER_
126 #define _VLC_BITMAPINFOHEADER_
127 
128 typedef struct
130 {
131  uint32_t biSize;
132  uint32_t biWidth;
133  uint32_t biHeight;
134  uint16_t biPlanes;
135  uint16_t biBitCount;
136  uint32_t biCompression;
137  uint32_t biSizeImage;
138  uint32_t biXPelsPerMeter;
139  uint32_t biYPelsPerMeter;
140  uint32_t biClrUsed;
141  uint32_t biClrImportant;
143 
144 typedef struct
146 {
147  VLC_BITMAPINFOHEADER bmiHeader;
148  int bmiColors[1];
150 #endif
151 
152 #ifndef _RECT32_
153 #define _RECT32_
154 typedef struct
156 {
157  int left, top, right, bottom;
159 #endif
160 
161 #ifndef _REFERENCE_TIME_
162 #define _REFERENCE_TIME_
163 typedef int64_t REFERENCE_TIME;
164 #endif
165 
166 #ifndef _VIDEOINFOHEADER_
167 #define _VIDEOINFOHEADER_
168 typedef struct
170 {
171  RECT32 rcSource;
172  RECT32 rcTarget;
173  uint32_t dwBitRate;
174  uint32_t dwBitErrorRate;
175  REFERENCE_TIME AvgTimePerFrame;
178 #endif
179 
180 #if defined(__SUNPRO_C) || defined(_MSC_VER)
181 # pragma pack()
182 #elif defined(__APPLE__) && !defined(HAVE_ATTRIBUTE_PACKED)
183 # pragma pack(pop)
184 #endif
185 
186 /* WAVE format wFormatTag IDs */
187 /* See http://msdn.microsoft.com/en-us/library/aa904731%28v=vs.80%29.aspx */
188 #define WAVE_FORMAT_UNKNOWN 0x0000 /* Microsoft Corporation */
189 #define WAVE_FORMAT_PCM 0x0001 /* Microsoft Corporation */
190 #define WAVE_FORMAT_ADPCM 0x0002 /* Microsoft Corporation */
191 #define WAVE_FORMAT_IEEE_FLOAT 0x0003 /* Microsoft Corporation */
192 #define WAVE_FORMAT_ALAW 0x0006 /* Microsoft Corporation */
193 #define WAVE_FORMAT_MULAW 0x0007 /* Microsoft Corporation */
194 #define WAVE_FORMAT_DTS 0x0008 /* Microsoft Corporation */
195 #define WAVE_FORMAT_WMAS 0x000a /* WMA 9 Speech */
196 #define WAVE_FORMAT_IMA_ADPCM 0x0011 /* Intel Corporation */
197 #define WAVE_FORMAT_YAMAHA_ADPCM 0x0020 /* Yamaha */
198 #define WAVE_FORMAT_TRUESPEECH 0x0022 /* TrueSpeech */
199 #define WAVE_FORMAT_GSM610 0x0031 /* Microsoft Corporation */
200 #define WAVE_FORMAT_MSNAUDIO 0x0032 /* Microsoft Corporation */
201 #define WAVE_FORMAT_AMR_NB_2 0x0038 /* AMR NB rogue */
202 #define WAVE_FORMAT_MSG723 0x0042 /* Microsoft G.723 [G723.1] */
203 #define WAVE_FORMAT_SHARP_G726 0x0045 /* ITU-T standard */
204 #define WAVE_FORMAT_MPEG 0x0050 /* Microsoft Corporation */
205 #define WAVE_FORMAT_MPEGLAYER3 0x0055 /* ISO/MPEG Layer3 Format Tag */
206 #define WAVE_FORMAT_AMR_NARROWBAND 0x0057 /* AMR NB */
207 #define WAVE_FORMAT_AMR_WIDEBAND 0x0058 /* AMR Wideband */
208 #define WAVE_FORMAT_G726_ADPCM 0x0064 /* G.726 ADPCM */
209 #define WAVE_FORMAT_VOXWARE_RT29 0x0075 /* VoxWare MetaSound */
210 #define WAVE_FORMAT_DOLBY_AC3_SPDIF 0x0092 /* Sonic Foundry */
211 #define WAVE_FORMAT_VIVOG723 0x0111 /* Vivo G.723.1 */
212 
213 #define WAVE_FORMAT_AAC 0x00FF /* */
214 #define WAVE_FORMAT_AAC_MS 0xa106 /* Microsoft AAC */
215 #define WAVE_FORMAT_SIPRO 0x0130 /* Sipro Lab Telecom Inc. */
216 
217 #define WAVE_FORMAT_WMA1 0x0160 /* WMA version 1 */
218 #define WAVE_FORMAT_WMA2 0x0161 /* WMA (v2) 7, 8, 9 Series */
219 #define WAVE_FORMAT_WMAP 0x0162 /* WMA 9 Professional */
220 #define WAVE_FORMAT_WMAL 0x0163 /* WMA 9 Lossless */
221 
222 #define WAVE_FORMAT_CREATIVE_ADPCM 0x0200 /* Creative */
223 
224 #define WAVE_FORMAT_ULEAD_DV_AUDIO_NTSC 0x0215 /* Ulead */
225 #define WAVE_FORMAT_ULEAD_DV_AUDIO_PAL 0x0216 /* Ulead */
226 
227 #define WAVE_FORMAT_ATRAC3 0x0270 /* Atrac3, != from MSDN doc */
228 #define WAVE_FORMAT_SONY_ATRAC3 0x0272 /* Atrac3, != from MSDN doc */
229 
230 #define WAVE_FORMAT_IMC 0x0401
231 #define WAVE_FORMAT_INDEO_AUDIO 0x0402 /* Indeo Audio Coder */
232 
233 #define WAVE_FORMAT_ON2_AVC 0x0500 /* VP7 */
234 #define WAVE_FORMAT_ON2_AVC_2 0x0501 /* VP6 */
235 
236 #define WAVE_FORMAT_QNAP_ADTS 0x0AAC /* Qnap ADTS */
237 #define WAVE_FORMAT_AAC_ADTS 0x1600 /* AAC/ADTS */
238 #define WAVE_FORMAT_AAC_2 0x1601 /* Other AAC */
239 #define WAVE_FORMAT_AAC_LATM 0x1602 /* AAC/LATM */
240 #define WAVE_FORMAT_HEAAC 0x1610 /* Raw AAC or ADTS */
241 
242 #define WAVE_FORMAT_A52 0x2000 /* a52 */
243 #define WAVE_FORMAT_DTSINC_DTS 0x2001 /* DTS */
244 #define WAVE_FORMAT_ALAC 0x6c61
245 #define WAVE_FORMAT_OPUS 0x704f
246 #define WAVE_FORMAT_AVCODEC_AAC 0x706D
247 #define WAVE_FORMAT_DIVIO_AAC 0x4143 /* Divio's AAC */
248 
249 #define WAVE_FORMAT_AMR_NB 0x7361
250 #define WAVE_FORMAT_AMR_WB 0x7362
251 #define WAVE_FORMAT_AMR_WP 0x7363
252 
253 #define WAVE_FORMAT_GSM_AMR_FIXED 0x7A21 /* Fixed bitrate, no SID */
254 #define WAVE_FORMAT_GSM_AMR 0x7A22 /* Variable bitrate, including SID */
255 
256 #define WAVE_FORMAT_DK3 0x0062
257 #define WAVE_FORMAT_DK4 0x0061
258 
259 /* At least libavformat use that ID: from libavformat/riff.c ('Vo' == 0x566f)
260  * { CODEC_ID_VORBIS, ('V'<<8)+'o' }, //HACK/FIXME, does vorbis in WAV/AVI have an (in)official id?
261  */
262 #define WAVE_FORMAT_VORBIS 0x566f
263 
264 /* It seems that these IDs are used by braindead & obsolete VorbisACM encoder
265  * (Windows only)
266  * A few info is available except VorbisACM source (remember, Windows only)
267  * (available on http://svn.xiph.org), but it seems that vo3+ at least is
268  * made of Vorbis data encapsulated in Ogg container...
269  */
270 #define WAVE_FORMAT_VORB_1 0x674f
271 #define WAVE_FORMAT_VORB_2 0x6750
272 #define WAVE_FORMAT_VORB_3 0x6751
273 #define WAVE_FORMAT_VORB_1PLUS 0x676f
274 #define WAVE_FORMAT_VORB_2PLUS 0x6770
275 #define WAVE_FORMAT_VORB_3PLUS 0x6771
276 
277 #define WAVE_FORMAT_G723_1 0xa100
278 #define WAVE_FORMAT_AAC_3 0xa106
279 #define WAVE_FORMAT_SPEEX 0xa109 /* Speex audio */
280 #define WAVE_FORMAT_FLAC 0xf1ac /* Xiph Flac */
281 
282 #if !defined(WAVE_FORMAT_EXTENSIBLE)
283  #define WAVE_FORMAT_EXTENSIBLE 0xFFFE /* Microsoft */
284 #endif
285 
286 /* GUID SubFormat IDs */
287 #define VLC_KSDATAFORMAT_SUBTYPE_ATRAC3P {0xE923AABF, 0xCB58, 0x4471, {0xA1, 0x19, 0xFF, 0xFA, 0x01, 0xE4, 0xCE, 0x62}} /* Undocumented */
288 #define VLC_KSDATAFORMAT_SUBTYPE_UNKNOWN {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}
289 #define VLC_WAVEFORMATEX_GUIDBASE {0x00000000, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}} /* Generated from Wave Format */
290 #define VLC_AMBISONIC_SUBTYPE_PCM {0x00000001, 0x0721, 0x11D3, {0x86, 0x44, 0xC8, 0xC1, 0xCA, 0x00, 0x00, 0x00}} /* AMBISONIC_B_FORMAT_PCM */
291 #define VLC_AMBISONIC_SUBTYPE_IEEE_FLOAT {0x00000003, 0x0721, 0x11D3, {0x86, 0x44, 0xC8, 0xC1, 0xCA, 0x00, 0x00, 0x00}} /* AMBISONIC_B_FORMAT_IEEE_FLOAT */
292 
293 /* Microsoft speaker definitions */
294 #define WAVE_SPEAKER_FRONT_LEFT 0x1
295 #define WAVE_SPEAKER_FRONT_RIGHT 0x2
296 #define WAVE_SPEAKER_FRONT_CENTER 0x4
297 #define WAVE_SPEAKER_LOW_FREQUENCY 0x8
298 #define WAVE_SPEAKER_BACK_LEFT 0x10
299 #define WAVE_SPEAKER_BACK_RIGHT 0x20
300 #define WAVE_SPEAKER_FRONT_LEFT_OF_CENTER 0x40
301 #define WAVE_SPEAKER_FRONT_RIGHT_OF_CENTER 0x80
302 #define WAVE_SPEAKER_BACK_CENTER 0x100
303 #define WAVE_SPEAKER_SIDE_LEFT 0x200
304 #define WAVE_SPEAKER_SIDE_RIGHT 0x400
305 #define WAVE_SPEAKER_TOP_CENTER 0x800
306 #define WAVE_SPEAKER_TOP_FRONT_LEFT 0x1000
307 #define WAVE_SPEAKER_TOP_FRONT_CENTER 0x2000
308 #define WAVE_SPEAKER_TOP_FRONT_RIGHT 0x4000
309 #define WAVE_SPEAKER_TOP_BACK_LEFT 0x8000
310 #define WAVE_SPEAKER_TOP_BACK_CENTER 0x10000
311 #define WAVE_SPEAKER_TOP_BACK_RIGHT 0x20000
312 #define WAVE_SPEAKER_RESERVED 0x80000000
313 
314 static const struct
315 {
316  uint16_t i_tag;
318  const char *psz_name;
319 }
321 {
322  { WAVE_FORMAT_PCM, VLC_FOURCC( 'a', 'r', 'a', 'w' ), "Raw audio" },
323  { WAVE_FORMAT_PCM, VLC_CODEC_S8, "PCM S8 audio" },
324  { WAVE_FORMAT_PCM, VLC_CODEC_S16L, "PCM S16L audio" },
325  { WAVE_FORMAT_PCM, VLC_CODEC_S24L, "PCM S24L audio" },
326  { WAVE_FORMAT_PCM, VLC_CODEC_S32L, "PCM S32L audio" },
328  { WAVE_FORMAT_IEEE_FLOAT, VLC_FOURCC( 'a', 'f', 'l', 't' ), "IEEE Float audio" },
329  { WAVE_FORMAT_IEEE_FLOAT, VLC_CODEC_F32L, "PCM 32 (Float) audio" },
330  { WAVE_FORMAT_IEEE_FLOAT, VLC_CODEC_F64L, "PCM 64 (Float) audio" },
331  { WAVE_FORMAT_ALAW, VLC_CODEC_ALAW, "A-Law" },
332  { WAVE_FORMAT_MULAW, VLC_CODEC_MULAW, "Mu-Law" },
336  { WAVE_FORMAT_TRUESPEECH, VLC_CODEC_TRUESPEECH, "Truespeech" },
337  { WAVE_FORMAT_GSM610, VLC_CODEC_GSM_MS, "Microsoft WAV GSM" },
338  { WAVE_FORMAT_MSNAUDIO, VLC_CODEC_GSM_MS, "Microsoft MSN Audio" },
339  { WAVE_FORMAT_SHARP_G726, VLC_CODEC_ADPCM_G726, "G.726 ADPCM" },
340  { WAVE_FORMAT_G726_ADPCM, VLC_CODEC_ADPCM_G726, "G.726 ADPCM" },
341  { WAVE_FORMAT_G723_1, VLC_CODEC_G723_1, "G.723.1" },
342  { WAVE_FORMAT_MSG723, VLC_CODEC_G723_1, "Microsoft G.723 [G723.1]" },
343  { WAVE_FORMAT_VIVOG723, VLC_CODEC_G723_1, "Vivo G.723.1" },
344  { WAVE_FORMAT_MPEGLAYER3, VLC_CODEC_MP3, "Mpeg Audio Layer 3" },
345  { WAVE_FORMAT_MPEG, VLC_CODEC_MPGA, "Mpeg Audio" },
347  { WAVE_FORMAT_AMR_NB, VLC_CODEC_AMR_NB, "AMR NB" },
348  { WAVE_FORMAT_AMR_NB_2, VLC_CODEC_AMR_NB, "AMR NB" },
349  { WAVE_FORMAT_AMR_WIDEBAND, VLC_CODEC_AMR_WB, "AMR Wideband" },
350  { WAVE_FORMAT_AMR_WB, VLC_CODEC_AMR_WB, "AMR Wideband" },
351  { WAVE_FORMAT_SIPRO, VLC_CODEC_SIPR, "Sipr Audio" },
352  { WAVE_FORMAT_A52, VLC_CODEC_A52, "A/52" },
353  { WAVE_FORMAT_WMA1, VLC_CODEC_WMA1, "Window Media Audio v1" },
354  { WAVE_FORMAT_WMA2, VLC_CODEC_WMA2, "Window Media Audio v2" },
355  { WAVE_FORMAT_WMAP, VLC_CODEC_WMAP, "Window Media Audio 9 Professional" },
356  { WAVE_FORMAT_WMAL, VLC_CODEC_WMAL, "Window Media Audio 9 Lossless" },
357  { WAVE_FORMAT_WMAS, VLC_CODEC_WMAS, "Window Media Audio 9 Speech" },
358  { WAVE_FORMAT_ATRAC3, VLC_CODEC_ATRAC3, "Sony Atrac3" },
359  { WAVE_FORMAT_SONY_ATRAC3, VLC_CODEC_ATRAC3, "Sony Atrac3" },
360  { WAVE_FORMAT_DK3, VLC_CODEC_ADPCM_DK3, "Duck DK3" },
361  { WAVE_FORMAT_DK4, VLC_CODEC_ADPCM_DK4, "Duck DK4" },
362  { WAVE_FORMAT_DTSINC_DTS, VLC_CODEC_DTS, "DTS Coherent Acoustics" },
363  { WAVE_FORMAT_DTS, VLC_CODEC_DTS, "DTS Coherent Acoustics" },
364  { WAVE_FORMAT_DIVIO_AAC, VLC_CODEC_MP4A, "MPEG-4 Audio (Divio)" },
365  { WAVE_FORMAT_AAC, VLC_CODEC_MP4A, "MPEG-4 Audio" },
366  { WAVE_FORMAT_QNAP_ADTS, VLC_CODEC_MP4A, "MPEG-4 ADTS Audio" },
367  { WAVE_FORMAT_AAC_ADTS, VLC_CODEC_MP4A, "MPEG-4 ADTS Audio" },
368  { WAVE_FORMAT_AAC_2, VLC_CODEC_MP4A, "MPEG-4 Audio" },
369  { WAVE_FORMAT_AAC_3, VLC_CODEC_MP4A, "MPEG-4 Audio" },
370  { WAVE_FORMAT_AAC_LATM, VLC_CODEC_MP4A, "MPEG-4 LATM Audio" },
371  { WAVE_FORMAT_HEAAC, VLC_CODEC_MP4A, "MPEG-4 Audio" },
372  { WAVE_FORMAT_ALAC, VLC_CODEC_ALAC, "Apple Lossless" },
373  { WAVE_FORMAT_OPUS, VLC_CODEC_OPUS, "Opus Audio" },
374  { WAVE_FORMAT_AVCODEC_AAC, VLC_CODEC_MP4A, "MPEG-4 Audio" },
375  { WAVE_FORMAT_AAC_MS, VLC_CODEC_MP4A, "MPEG-4 Audio" },
376  { WAVE_FORMAT_VORBIS, VLC_CODEC_VORBIS, "Vorbis Audio" },
377  { WAVE_FORMAT_VORB_1, VLC_FOURCC( 'v', 'o', 'r', '1' ), "Vorbis 1 Audio" },
378  { WAVE_FORMAT_VORB_1PLUS, VLC_FOURCC( 'v', 'o', '1', '+' ), "Vorbis 1+ Audio" },
379  { WAVE_FORMAT_VORB_2, VLC_FOURCC( 'v', 'o', 'r', '2' ), "Vorbis 2 Audio" },
380  { WAVE_FORMAT_VORB_2PLUS, VLC_FOURCC( 'v', 'o', '2', '+' ), "Vorbis 2+ Audio" },
381  { WAVE_FORMAT_VORB_3, VLC_FOURCC( 'v', 'o', 'r', '3' ), "Vorbis 3 Audio" },
382  { WAVE_FORMAT_VORB_3PLUS, VLC_FOURCC( 'v', 'o', '3', '+' ), "Vorbis 3+ Audio" },
383  { WAVE_FORMAT_SPEEX, VLC_CODEC_SPEEX, "Speex Audio" },
384  { WAVE_FORMAT_FLAC, VLC_CODEC_FLAC, "FLAC Audio" },
385  { WAVE_FORMAT_GSM_AMR_FIXED, VLC_CODEC_AMR_NB, "GSM-AMR Audio CBR, no SID" },
386  { WAVE_FORMAT_GSM_AMR, VLC_CODEC_AMR_NB, "GSM-AMR Audio VBR, SID" },
389  { WAVE_FORMAT_IMC, VLC_CODEC_IMC, "IMC" },
390  { WAVE_FORMAT_INDEO_AUDIO, VLC_CODEC_INDEO_AUDIO, "Indeo Audio Coder" },
391  { WAVE_FORMAT_VOXWARE_RT29, VLC_CODEC_METASOUND, "VoxWare MetaSound" },
392  { WAVE_FORMAT_ON2_AVC, VLC_CODEC_ON2AVC, "On2 Audio for Video Codec (VP7)" },
393  { WAVE_FORMAT_ON2_AVC_2, VLC_CODEC_ON2AVC, "On2 Audio for Video Codec (VP6)" },
394 
395  { WAVE_FORMAT_UNKNOWN, VLC_CODEC_UNKNOWN, "Unknown" }
396 };
397 
398 static inline void wf_tag_to_fourcc( uint16_t i_tag, vlc_fourcc_t *fcc,
399  const char **ppsz_name )
400 {
401  int i;
402  for( i = 0; wave_format_tag_to_fourcc[i].i_tag != 0; i++ )
403  {
404  if( wave_format_tag_to_fourcc[i].i_tag == i_tag ) break;
405  }
406  if( fcc ) *fcc = wave_format_tag_to_fourcc[i].i_fourcc;
407  if( ppsz_name ) *ppsz_name = wave_format_tag_to_fourcc[i].psz_name;
408 }
409 
410 static inline void fourcc_to_wf_tag( vlc_fourcc_t fcc, uint16_t *pi_tag )
411 {
412  int i;
413  for( i = 0; wave_format_tag_to_fourcc[i].i_tag != 0; i++ )
414  {
415  if( wave_format_tag_to_fourcc[i].i_fourcc == fcc ) break;
416  }
417  if( pi_tag ) *pi_tag = wave_format_tag_to_fourcc[i].i_tag;
418 }
419 
420 /* If wFormatTag is WAVEFORMATEXTENSIBLE, we must look at the SubFormat tag
421  * to determine the actual format. Microsoft has stopped giving out wFormatTag
422  * assignments in lieu of letting 3rd parties generate their own GUIDs
423  */
424 static const struct
425 {
426  const GUID guid_tag;
428  const char *psz_name;
429 }
431 {
432  { VLC_AMBISONIC_SUBTYPE_PCM, VLC_FOURCC( 'a', 'r', 'a', 'w' ), "Ambisonic B format (PCM)" },
433  { VLC_AMBISONIC_SUBTYPE_IEEE_FLOAT, VLC_FOURCC( 'a', 'f', 'l', 't' ), "Ambisonic B format (IEEE float)" },
436 };
437 
438 static inline int guidcmpbase( const GUID *s1, const GUID *s2 )
439 {
440  return( s1->Data2 == s2->Data2 &&
441  s1->Data3 == s2->Data3 && !memcmp( s1->Data4, s2->Data4, 8 ) );
442 }
443 
444 /* compares two GUIDs, returns 1 if identical, 0 otherwise */
445 static inline int guidcmp( const GUID *s1, const GUID *s2 )
446 {
447  return( s1->Data1 == s2->Data1 && guidcmpbase( s1, s2 ) );
448 }
449 
450 #define GUID_FMT "0x%8.8x-0x%4.4x-0x%4.4x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
451 #define GUID_PRINT( guid ) \
452  (unsigned)(guid).Data1, \
453  (guid).Data2, \
454  (guid).Data3, \
455  (guid).Data4[0],(guid).Data4[1],(guid).Data4[2],(guid).Data4[3], \
456  (guid).Data4[4],(guid).Data4[5],(guid).Data4[6],(guid).Data4[7]
457 
458 
459 static inline void sf_tag_to_fourcc( const GUID *guid_tag,
460  vlc_fourcc_t *fcc, const char **ppsz_name )
461 {
462  int i;
463  bool b_found = false;
464 
465  const GUID unknown = VLC_KSDATAFORMAT_SUBTYPE_UNKNOWN;
466  const GUID waveformatex = VLC_WAVEFORMATEX_GUIDBASE;
467 
468  for( i = 0; !guidcmp( &sub_format_tag_to_fourcc[i].guid_tag,
469  &unknown ); i++ )
470  {
472  {
473  b_found = true;
474  break;
475  }
476  }
477 
478  if( !b_found && guidcmpbase(guid_tag, &waveformatex) )
479  {
480  wf_tag_to_fourcc(guid_tag->Data1, fcc, ppsz_name);
481  }
482  else
483  {
484  if( fcc ) *fcc = sub_format_tag_to_fourcc[i].i_fourcc;
485  if( ppsz_name ) *ppsz_name = sub_format_tag_to_fourcc[i].psz_name;
486  }
487 }
488 
489 #endif /* "codecs.h" */
WAVE_FORMAT_DTSINC_DTS
#define WAVE_FORMAT_DTSINC_DTS
Definition: vlc_codecs.h:244
VLC_CODEC_UNKNOWN
#define VLC_CODEC_UNKNOWN
Definition: vlc_fourcc.h:27
WAVE_FORMAT_AAC
#define WAVE_FORMAT_AAC
Definition: vlc_codecs.h:214
_WAVEFORMATEXTENSIBLE_IEC61937::FormatExt
WAVEFORMATEXTENSIBLE FormatExt
Definition: vlc_codecs.h:98
VLC_CODEC_IMC
#define VLC_CODEC_IMC
Definition: vlc_fourcc.h:530
i_tag
uint16_t i_tag
Definition: vlc_codecs.h:317
WAVE_FORMAT_DK3
#define WAVE_FORMAT_DK3
Definition: vlc_codecs.h:257
ATTR_PACKED::biClrImportant
uint32_t biClrImportant
Definition: vlc_codecs.h:142
WAVE_FORMAT_ON2_AVC_2
#define WAVE_FORMAT_ON2_AVC_2
Definition: vlc_codecs.h:235
VLC_LPBITMAPINFOHEADER
struct ATTR_PACKED * VLC_LPBITMAPINFOHEADER
WAVE_FORMAT_G723_1
#define WAVE_FORMAT_G723_1
Definition: vlc_codecs.h:278
wf_tag_to_fourcc
static void wf_tag_to_fourcc(uint16_t i_tag, vlc_fourcc_t *fcc, const char **ppsz_name)
Definition: vlc_codecs.h:399
WAVE_FORMAT_VORB_2PLUS
#define WAVE_FORMAT_VORB_2PLUS
Definition: vlc_codecs.h:275
WAVE_FORMAT_QNAP_ADTS
#define WAVE_FORMAT_QNAP_ADTS
Definition: vlc_codecs.h:237
ATTR_PACKED::biPlanes
uint16_t biPlanes
Definition: vlc_codecs.h:135
WAVEFORMATEX
struct ATTR_PACKED _WAVEFORMATEX WAVEFORMATEX
NPWAVEFORMATEX
struct ATTR_PACKED _WAVEFORMATEX * NPWAVEFORMATEX
WAVE_FORMAT_WMAS
#define WAVE_FORMAT_WMAS
Definition: vlc_codecs.h:196
ATTR_PACKED::biHeight
uint32_t biHeight
Definition: vlc_codecs.h:134
WAVE_FORMAT_YAMAHA_ADPCM
#define WAVE_FORMAT_YAMAHA_ADPCM
Definition: vlc_codecs.h:198
_WAVEFORMATEXTENSIBLE::Format
WAVEFORMATEX Format
Definition: vlc_codecs.h:80
_WAVEHEADER::DataChunkID
uint32_t DataChunkID
Definition: vlc_codecs.h:121
WAVE_FORMAT_VORB_3PLUS
#define WAVE_FORMAT_VORB_3PLUS
Definition: vlc_codecs.h:276
WAVE_FORMAT_VIVOG723
#define WAVE_FORMAT_VIVOG723
Definition: vlc_codecs.h:212
VLC_CODEC_ULEAD_DV_AUDIO_PAL
#define VLC_CODEC_ULEAD_DV_AUDIO_PAL
Definition: vlc_fourcc.h:574
vlc_common.h
_WAVEHEADER
Definition: vlc_codecs.h:107
VLC_CODEC_ADPCM_IMA_WAV
#define VLC_CODEC_ADPCM_IMA_WAV
Definition: vlc_fourcc.h:500
VLC_CODEC_ULEAD_DV_AUDIO_NTSC
#define VLC_CODEC_ULEAD_DV_AUDIO_NTSC
Definition: vlc_fourcc.h:573
ATTR_PACKED::dwBitRate
uint32_t dwBitRate
Definition: vlc_codecs.h:174
_WAVEHEADER::Modus
uint16_t Modus
Definition: vlc_codecs.h:116
WAVE_FORMAT_ON2_AVC
#define WAVE_FORMAT_ON2_AVC
Definition: vlc_codecs.h:234
WAVE_FORMAT_OPUS
#define WAVE_FORMAT_OPUS
Definition: vlc_codecs.h:246
REFERENCE_TIME
int64_t REFERENCE_TIME
Definition: vlc_codecs.h:164
_WAVEFORMATEX::cbSize
uint16_t cbSize
Definition: vlc_codecs.h:71
_WAVEHEADER::ChunkTypeID
uint32_t ChunkTypeID
Definition: vlc_codecs.h:112
ATTR_PACKED::AvgTimePerFrame
REFERENCE_TIME AvgTimePerFrame
Definition: vlc_codecs.h:176
VLC_CODEC_MP3
#define VLC_CODEC_MP3
Definition: vlc_fourcc.h:670
WAVE_FORMAT_INDEO_AUDIO
#define WAVE_FORMAT_INDEO_AUDIO
Definition: vlc_codecs.h:232
VLC_CODEC_GSM_MS
#define VLC_CODEC_GSM_MS
Definition: vlc_fourcc.h:526
WAVE_FORMAT_GSM_AMR_FIXED
#define WAVE_FORMAT_GSM_AMR_FIXED
Definition: vlc_codecs.h:254
WAVE_FORMAT_SPEEX
#define WAVE_FORMAT_SPEEX
Definition: vlc_codecs.h:280
_WAVEHEADER::DataLength
uint32_t DataLength
Definition: vlc_codecs.h:122
ATTR_PACKED::biXPelsPerMeter
uint32_t biXPelsPerMeter
Definition: vlc_codecs.h:139
WAVE_FORMAT_VORB_2
#define WAVE_FORMAT_VORB_2
Definition: vlc_codecs.h:272
PWAVEFORMATEXTENSIBLE
struct ATTR_PACKED _WAVEFORMATEXTENSIBLE * PWAVEFORMATEXTENSIBLE
_WAVEHEADER::BitsPerSample
uint16_t BitsPerSample
Definition: vlc_codecs.h:120
_WAVEHEADER::BytesPerSec
uint32_t BytesPerSec
Definition: vlc_codecs.h:118
WAVE_FORMAT_AMR_NB_2
#define WAVE_FORMAT_AMR_NB_2
Definition: vlc_codecs.h:202
VLC_CODEC_FLAC
#define VLC_CODEC_FLAC
Definition: vlc_fourcc.h:474
_WAVEFORMATEXTENSIBLE::wSamplesPerBlock
uint16_t wSamplesPerBlock
Definition: vlc_codecs.h:83
_WAVEFORMATEXTENSIBLE::wReserved
uint16_t wReserved
Definition: vlc_codecs.h:84
ATTR_PACKED::biSizeImage
uint32_t biSizeImage
Definition: vlc_codecs.h:138
VLC_CODEC_TRUESPEECH
#define VLC_CODEC_TRUESPEECH
Definition: vlc_fourcc.h:531
VLC_KSDATAFORMAT_SUBTYPE_UNKNOWN
#define VLC_KSDATAFORMAT_SUBTYPE_UNKNOWN
Definition: vlc_codecs.h:289
VLC_CODEC_WMAS
#define VLC_CODEC_WMAS
Definition: vlc_fourcc.h:473
WAVE_FORMAT_AMR_NB
#define WAVE_FORMAT_AMR_NB
Definition: vlc_codecs.h:250
WAVE_FORMAT_SIPRO
#define WAVE_FORMAT_SIPRO
Definition: vlc_codecs.h:216
VLC_CODEC_WMAP
#define VLC_CODEC_WMAP
Definition: vlc_fourcc.h:471
WAVE_FORMAT_IMC
#define WAVE_FORMAT_IMC
Definition: vlc_codecs.h:231
WAVE_FORMAT_MSG723
#define WAVE_FORMAT_MSG723
Definition: vlc_codecs.h:203
VLC_CODEC_SPEEX
#define VLC_CODEC_SPEEX
Definition: vlc_fourcc.h:478
_WAVEHEADER::Length
uint32_t Length
Definition: vlc_codecs.h:111
VLC_CODEC_WMA2
#define VLC_CODEC_WMA2
Definition: vlc_fourcc.h:470
WAVEFORMATEXTENSIBLE_IEC61937
struct ATTR_PACKED _WAVEFORMATEXTENSIBLE_IEC61937 WAVEFORMATEXTENSIBLE_IEC61937
fourcc_to_wf_tag
static void fourcc_to_wf_tag(vlc_fourcc_t fcc, uint16_t *pi_tag)
Definition: vlc_codecs.h:411
VLC_CODEC_ALAW
#define VLC_CODEC_ALAW
Definition: vlc_fourcc.h:567
WAVE_FORMAT_WMA1
#define WAVE_FORMAT_WMA1
Definition: vlc_codecs.h:218
VLC_CODEC_F32L
#define VLC_CODEC_F32L
Definition: vlc_fourcc.h:562
VLC_CODEC_G723_1
#define VLC_CODEC_G723_1
Definition: vlc_fourcc.h:512
VLC_CODEC_ALAC
#define VLC_CODEC_ALAC
Definition: vlc_fourcc.h:517
_WAVEFORMATEXTENSIBLE_IEC61937::dwEncodedChannelCount
uint32_t dwEncodedChannelCount
Definition: vlc_codecs.h:100
VLC_CODEC_ON2AVC
#define VLC_CODEC_ON2AVC
Definition: vlc_fourcc.h:577
_GUID::Data4
uint8_t Data4[8]
Definition: vlc_codecs.h:42
WAVE_FORMAT_GSM610
#define WAVE_FORMAT_GSM610
Definition: vlc_codecs.h:200
ATTR_PACKED::biYPelsPerMeter
uint32_t biYPelsPerMeter
Definition: vlc_codecs.h:140
PWAVEFORMATEX
struct ATTR_PACKED _WAVEFORMATEX * PWAVEFORMATEX
WAVE_FORMAT_MSNAUDIO
#define WAVE_FORMAT_MSNAUDIO
Definition: vlc_codecs.h:201
_WAVEHEADER::SubChunkID
uint32_t SubChunkID
Definition: vlc_codecs.h:113
WAVE_FORMAT_VORB_3
#define WAVE_FORMAT_VORB_3
Definition: vlc_codecs.h:273
WAVE_FORMAT_UNKNOWN
#define WAVE_FORMAT_UNKNOWN
Definition: vlc_codecs.h:189
sf_tag_to_fourcc
static void sf_tag_to_fourcc(const GUID *guid_tag, vlc_fourcc_t *fcc, const char **ppsz_name)
Definition: vlc_codecs.h:460
VLC_CODEC_ADPCM_DK4
#define VLC_CODEC_ADPCM_DK4
Definition: vlc_fourcc.h:505
WAVE_FORMAT_FLAC
#define WAVE_FORMAT_FLAC
Definition: vlc_codecs.h:281
WAVE_FORMAT_GSM_AMR
#define WAVE_FORMAT_GSM_AMR
Definition: vlc_codecs.h:255
i_fourcc
vlc_fourcc_t i_fourcc
Definition: vlc_codecs.h:318
_WAVEFORMATEXTENSIBLE
Definition: vlc_codecs.h:77
WAVEFORMATEXTENSIBLE
struct ATTR_PACKED _WAVEFORMATEXTENSIBLE WAVEFORMATEXTENSIBLE
VLC_CODEC_AMR_NB
#define VLC_CODEC_AMR_NB
Definition: vlc_fourcc.h:515
WAVE_FORMAT_IEEE_FLOAT
#define WAVE_FORMAT_IEEE_FLOAT
Definition: vlc_codecs.h:192
VLC_WAVEFORMATEX_GUIDBASE
#define VLC_WAVEFORMATEX_GUIDBASE
Definition: vlc_codecs.h:290
GUID
struct _GUID GUID
_GUID::Data3
uint16_t Data3
Definition: vlc_codecs.h:41
VLC_CODEC_VORBIS
#define VLC_CODEC_VORBIS
Definition: vlc_fourcc.h:481
VLC_CODEC_WMAL
#define VLC_CODEC_WMAL
Definition: vlc_fourcc.h:472
ATTR_PACKED::rcSource
RECT32 rcSource
Definition: vlc_codecs.h:172
WAVE_FORMAT_ULEAD_DV_AUDIO_NTSC
#define WAVE_FORMAT_ULEAD_DV_AUDIO_NTSC
Definition: vlc_codecs.h:225
WAVE_FORMAT_ALAC
#define WAVE_FORMAT_ALAC
Definition: vlc_codecs.h:245
guidcmp
static int guidcmp(const GUID *s1, const GUID *s2)
Definition: vlc_codecs.h:446
VLC_CODEC_ATRAC3P
#define VLC_CODEC_ATRAC3P
Definition: vlc_fourcc.h:529
WAVE_FORMAT_AAC_ADTS
#define WAVE_FORMAT_AAC_ADTS
Definition: vlc_codecs.h:238
vlc_fourcc.h
ATTR_PACKED::top
int top
Definition: vlc_codecs.h:158
WAVEHEADER
struct ATTR_PACKED _WAVEHEADER WAVEHEADER
PWAVEFORMATEXTENSIBLE_IEC61937
struct ATTR_PACKED _WAVEFORMATEXTENSIBLE_IEC61937 * PWAVEFORMATEXTENSIBLE_IEC61937
WAVE_FORMAT_WMAL
#define WAVE_FORMAT_WMAL
Definition: vlc_codecs.h:221
VLC_CODEC_MP4A
#define VLC_CODEC_MP4A
Definition: vlc_fourcc.h:460
VLC_CODEC_S32L
#define VLC_CODEC_S32L
Definition: vlc_fourcc.h:558
guidcmpbase
static int guidcmpbase(const GUID *s1, const GUID *s2)
Definition: vlc_codecs.h:439
psz_name
const char * psz_name
Definition: vlc_codecs.h:319
WAVE_FORMAT_ADPCM
#define WAVE_FORMAT_ADPCM
Definition: vlc_codecs.h:191
RECT32
struct ATTR_PACKED RECT32
WAVE_FORMAT_CREATIVE_ADPCM
#define WAVE_FORMAT_CREATIVE_ADPCM
Definition: vlc_codecs.h:223
VLC_AMBISONIC_SUBTYPE_IEEE_FLOAT
#define VLC_AMBISONIC_SUBTYPE_IEEE_FLOAT
Definition: vlc_codecs.h:292
_WAVEFORMATEX
Definition: vlc_codecs.h:62
ATTR_PACKED::bmiHeader
VLC_BITMAPINFOHEADER bmiHeader
Definition: vlc_codecs.h:148
_WAVEFORMATEX::nBlockAlign
uint16_t nBlockAlign
Definition: vlc_codecs.h:69
WAVE_FORMAT_DK4
#define WAVE_FORMAT_DK4
Definition: vlc_codecs.h:258
VLC_CODEC_DTS
#define VLC_CODEC_DTS
Definition: vlc_fourcc.h:466
WAVE_FORMAT_VORBIS
#define WAVE_FORMAT_VORBIS
Definition: vlc_codecs.h:263
VLC_CODEC_ADPCM_DK3
#define VLC_CODEC_ADPCM_DK3
Definition: vlc_fourcc.h:504
WAVE_FORMAT_AAC_3
#define WAVE_FORMAT_AAC_3
Definition: vlc_codecs.h:279
_WAVEFORMATEXTENSIBLE::wValidBitsPerSample
uint16_t wValidBitsPerSample
Definition: vlc_codecs.h:82
LPGUID
struct _GUID * LPGUID
_WAVEFORMATEX::nAvgBytesPerSec
uint32_t nAvgBytesPerSec
Definition: vlc_codecs.h:68
VLC_CODEC_S8
#define VLC_CODEC_S8
Definition: vlc_fourcc.h:544
WAVE_FORMAT_ULEAD_DV_AUDIO_PAL
#define WAVE_FORMAT_ULEAD_DV_AUDIO_PAL
Definition: vlc_codecs.h:226
VLC_CODEC_F64L
#define VLC_CODEC_F64L
Definition: vlc_fourcc.h:564
WAVE_FORMAT_AMR_WIDEBAND
#define WAVE_FORMAT_AMR_WIDEBAND
Definition: vlc_codecs.h:208
WAVE_FORMAT_PCM
#define WAVE_FORMAT_PCM
Definition: vlc_codecs.h:190
WAVE_FORMAT_AMR_WB
#define WAVE_FORMAT_AMR_WB
Definition: vlc_codecs.h:251
_WAVEFORMATEX::wBitsPerSample
uint16_t wBitsPerSample
Definition: vlc_codecs.h:70
VLC_BITMAPINFOHEADER
struct ATTR_PACKED VLC_BITMAPINFOHEADER
WAVE_FORMAT_WMAP
#define WAVE_FORMAT_WMAP
Definition: vlc_codecs.h:220
LPWAVEFORMATEX
struct ATTR_PACKED _WAVEFORMATEX * LPWAVEFORMATEX
WAVE_FORMAT_ATRAC3
#define WAVE_FORMAT_ATRAC3
Definition: vlc_codecs.h:228
VLC_CODEC_ADPCM_CREATIVE
#define VLC_CODEC_ADPCM_CREATIVE
Definition: vlc_fourcc.h:506
_WAVEFORMATEX::nChannels
uint16_t nChannels
Definition: vlc_codecs.h:66
WAVE_FORMAT_HEAAC
#define WAVE_FORMAT_HEAAC
Definition: vlc_codecs.h:241
VLC_CODEC_ADPCM_MS
#define VLC_CODEC_ADPCM_MS
Definition: vlc_fourcc.h:499
WAVE_FORMAT_MPEGLAYER3
#define WAVE_FORMAT_MPEGLAYER3
Definition: vlc_codecs.h:206
VLC_CODEC_A52
#define VLC_CODEC_A52
Definition: vlc_fourcc.h:463
_WAVEHEADER::Format
uint16_t Format
Definition: vlc_codecs.h:115
WAVE_FORMAT_VOXWARE_RT29
#define WAVE_FORMAT_VOXWARE_RT29
Definition: vlc_codecs.h:210
WAVE_FORMAT_TRUESPEECH
#define WAVE_FORMAT_TRUESPEECH
Definition: vlc_codecs.h:199
ATTR_PACKED::biCompression
uint32_t biCompression
Definition: vlc_codecs.h:137
WAVE_FORMAT_DIVIO_AAC
#define WAVE_FORMAT_DIVIO_AAC
Definition: vlc_codecs.h:248
guid_tag
const GUID guid_tag
Definition: vlc_codecs.h:427
_WAVEHEADER::MainChunkID
uint32_t MainChunkID
Definition: vlc_codecs.h:110
_WAVEHEADER::SubChunkLength
uint32_t SubChunkLength
Definition: vlc_codecs.h:114
WAVE_FORMAT_WMA2
#define WAVE_FORMAT_WMA2
Definition: vlc_codecs.h:219
VLC_LPBITMAPINFO
struct ATTR_PACKED * VLC_LPBITMAPINFO
VLC_CODEC_OPUS
#define VLC_CODEC_OPUS
Definition: vlc_fourcc.h:480
_WAVEFORMATEXTENSIBLE_IEC61937::dwEncodedSamplesPerSec
uint32_t dwEncodedSamplesPerSec
Definition: vlc_codecs.h:99
VLC_KSDATAFORMAT_SUBTYPE_ATRAC3P
#define VLC_KSDATAFORMAT_SUBTYPE_ATRAC3P
Definition: vlc_codecs.h:288
_GUID
Definition: vlc_codecs.h:37
VLC_CODEC_WMA1
#define VLC_CODEC_WMA1
Definition: vlc_fourcc.h:469
ATTR_PACKED::dwBitErrorRate
uint32_t dwBitErrorRate
Definition: vlc_codecs.h:175
ATTR_PACKED::rcTarget
RECT32 rcTarget
Definition: vlc_codecs.h:173
VLC_CODEC_METASOUND
#define VLC_CODEC_METASOUND
Definition: vlc_fourcc.h:576
VLC_CODEC_S16L
#define VLC_CODEC_S16L
Definition: vlc_fourcc.h:546
_GUID::Data1
uint32_t Data1
Definition: vlc_codecs.h:39
VLC_FOURCC
#define VLC_FOURCC(a, b, c, d)
Definition: fourcc_gen.c:37
VLC_CODEC_S24L
#define VLC_CODEC_S24L
Definition: vlc_fourcc.h:552
WAVE_FORMAT_ALAW
#define WAVE_FORMAT_ALAW
Definition: vlc_codecs.h:193
ATTR_PACKED
Definition: vlc_codecs.h:129
WAVE_FORMAT_AAC_LATM
#define WAVE_FORMAT_AAC_LATM
Definition: vlc_codecs.h:240
WAVE_FORMAT_AAC_MS
#define WAVE_FORMAT_AAC_MS
Definition: vlc_codecs.h:215
VLC_CODEC_MULAW
#define VLC_CODEC_MULAW
Definition: vlc_fourcc.h:568
wave_format_tag_to_fourcc
static const struct @192 wave_format_tag_to_fourcc[]
ATTR_PACKED::biBitCount
uint16_t biBitCount
Definition: vlc_codecs.h:136
_WAVEFORMATEXTENSIBLE::SubFormat
GUID SubFormat
Definition: vlc_codecs.h:89
WAVE_FORMAT_MULAW
#define WAVE_FORMAT_MULAW
Definition: vlc_codecs.h:194
_WAVEHEADER::BytesPerSample
uint16_t BytesPerSample
Definition: vlc_codecs.h:119
_WAVEFORMATEXTENSIBLE_IEC61937
Definition: vlc_codecs.h:95
VLC_BITMAPINFO
struct ATTR_PACKED VLC_BITMAPINFO
VLC_PBITMAPINFOHEADER
struct ATTR_PACKED * VLC_PBITMAPINFOHEADER
_WAVEFORMATEXTENSIBLE_IEC61937::dwAverageBytesPerSec
uint32_t dwAverageBytesPerSec
Definition: vlc_codecs.h:101
VIDEOINFOHEADER
struct ATTR_PACKED VIDEOINFOHEADER
ATTR_PACKED::biSize
uint32_t biSize
Definition: vlc_codecs.h:132
VLC_CODEC_ATRAC3
#define VLC_CODEC_ATRAC3
Definition: vlc_fourcc.h:528
ATTR_PACKED::biClrUsed
uint32_t biClrUsed
Definition: vlc_codecs.h:141
WAVE_FORMAT_VORB_1PLUS
#define WAVE_FORMAT_VORB_1PLUS
Definition: vlc_codecs.h:274
WAVE_FORMAT_DTS
#define WAVE_FORMAT_DTS
Definition: vlc_codecs.h:195
_GUID::Data2
uint16_t Data2
Definition: vlc_codecs.h:40
VLC_CODEC_INDEO_AUDIO
#define VLC_CODEC_INDEO_AUDIO
Definition: vlc_fourcc.h:575
_WAVEFORMATEX::wFormatTag
uint16_t wFormatTag
Definition: vlc_codecs.h:65
ATTR_PACKED::biWidth
uint32_t biWidth
Definition: vlc_codecs.h:133
VLC_AMBISONIC_SUBTYPE_PCM
#define VLC_AMBISONIC_SUBTYPE_PCM
Definition: vlc_codecs.h:291
WAVE_FORMAT_AVCODEC_AAC
#define WAVE_FORMAT_AVCODEC_AAC
Definition: vlc_codecs.h:247
WAVE_FORMAT_AAC_2
#define WAVE_FORMAT_AAC_2
Definition: vlc_codecs.h:239
VLC_CODEC_ADPCM_G726
#define VLC_CODEC_ADPCM_G726
Definition: vlc_fourcc.h:497
vlc_guid_t
GUID vlc_guid_t
Definition: vlc_codecs.h:46
VLC_CODEC_SIPR
#define VLC_CODEC_SIPR
Definition: vlc_fourcc.h:521
WAVE_FORMAT_SONY_ATRAC3
#define WAVE_FORMAT_SONY_ATRAC3
Definition: vlc_codecs.h:229
sub_format_tag_to_fourcc
static const struct @193 sub_format_tag_to_fourcc[]
WAVE_FORMAT_IMA_ADPCM
#define WAVE_FORMAT_IMA_ADPCM
Definition: vlc_codecs.h:197
WAVE_FORMAT_SHARP_G726
#define WAVE_FORMAT_SHARP_G726
Definition: vlc_codecs.h:204
WAVE_FORMAT_AMR_NARROWBAND
#define WAVE_FORMAT_AMR_NARROWBAND
Definition: vlc_codecs.h:207
WAVE_FORMAT_MPEG
#define WAVE_FORMAT_MPEG
Definition: vlc_codecs.h:205
_WAVEHEADER::SampleFreq
uint32_t SampleFreq
Definition: vlc_codecs.h:117
_WAVEFORMATEXTENSIBLE::dwChannelMask
uint32_t dwChannelMask
Definition: vlc_codecs.h:87
WAVE_FORMAT_A52
#define WAVE_FORMAT_A52
Definition: vlc_codecs.h:243
WAVE_FORMAT_G726_ADPCM
#define WAVE_FORMAT_G726_ADPCM
Definition: vlc_codecs.h:209
_WAVEFORMATEX::nSamplesPerSec
uint32_t nSamplesPerSec
Definition: vlc_codecs.h:67
VLC_CODEC_MPGA
#define VLC_CODEC_MPGA
Definition: vlc_fourcc.h:459
VLC_CODEC_ADPCM_YAMAHA
#define VLC_CODEC_ADPCM_YAMAHA
Definition: vlc_fourcc.h:503
REFGUID
struct _GUID * REFGUID
VLC_CODEC_AMR_WB
#define VLC_CODEC_AMR_WB
Definition: vlc_fourcc.h:516
WAVE_FORMAT_VORB_1
#define WAVE_FORMAT_VORB_1
Definition: vlc_codecs.h:271
vlc_fourcc_t
uint32_t vlc_fourcc_t
Definition: fourcc_gen.c:33