PipeWire  0.3.66
iec958-types.h
1 /* Simple Plugin API */
2 /* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3 /* SPDX-License-Identifier: MIT */
4 
5 #ifndef SPA_AUDIO_IEC958_TYPES_H
6 #define SPA_AUDIO_IEC958_TYPES_H
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include <spa/utils/type.h>
13 #include <spa/param/audio/iec958.h>
14 
15 #define SPA_TYPE_INFO_AudioIEC958Codec SPA_TYPE_INFO_ENUM_BASE "AudioIEC958Codec"
16 #define SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE SPA_TYPE_INFO_AudioIEC958Codec ":"
17 
18 static const struct spa_type_info spa_type_audio_iec958_codec[] = {
19  { SPA_AUDIO_IEC958_CODEC_UNKNOWN, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "UNKNOWN", NULL },
20  { SPA_AUDIO_IEC958_CODEC_PCM, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "PCM", NULL },
21  { SPA_AUDIO_IEC958_CODEC_DTS, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "DTS", NULL },
22  { SPA_AUDIO_IEC958_CODEC_AC3, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "AC3", NULL },
23  { SPA_AUDIO_IEC958_CODEC_MPEG, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "MPEG", NULL },
24  { SPA_AUDIO_IEC958_CODEC_MPEG2_AAC, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "MPEG2-AAC", NULL },
25  { SPA_AUDIO_IEC958_CODEC_EAC3, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "EAC3", NULL },
26  { SPA_AUDIO_IEC958_CODEC_TRUEHD, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "TrueHD", NULL },
27  { SPA_AUDIO_IEC958_CODEC_DTSHD, SPA_TYPE_Int, SPA_TYPE_INFO_AUDIO_IEC958_CODEC_BASE "DTS-HD", NULL },
28  { 0, 0, NULL, NULL },
29 };
30 
35 #ifdef __cplusplus
36 } /* extern "C" */
37 #endif
38 
39 #endif /* SPA_AUDIO_RAW_IEC958_TYPES_H */
@ SPA_AUDIO_IEC958_CODEC_MPEG2_AAC
MPEG-2 AAC.
Definition: iec958.h:30
@ SPA_AUDIO_IEC958_CODEC_AC3
Definition: iec958.h:28
@ SPA_AUDIO_IEC958_CODEC_UNKNOWN
Definition: iec958.h:24
@ SPA_AUDIO_IEC958_CODEC_MPEG
MPEG-1 or MPEG-2 (Part 3, not AAC)
Definition: iec958.h:29
@ SPA_AUDIO_IEC958_CODEC_DTSHD
DTS-HD Master Audio.
Definition: iec958.h:35
@ SPA_AUDIO_IEC958_CODEC_EAC3
Definition: iec958.h:32
@ SPA_AUDIO_IEC958_CODEC_TRUEHD
Dolby TrueHD.
Definition: iec958.h:34
@ SPA_AUDIO_IEC958_CODEC_PCM
Definition: iec958.h:26
@ SPA_AUDIO_IEC958_CODEC_DTS
Definition: iec958.h:27
@ SPA_TYPE_Int
Definition: spa/include/spa/utils/type.h:34
spa/param/audio/iec958.h
spa/utils/type.h
Definition: spa/include/spa/utils/type.h:142