PipeWire 0.3.77
Loading...
Searching...
No Matches
format-types.h
Go to the documentation of this file.
1/* Simple Plugin API */
2/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3/* SPDX-License-Identifier: MIT */
4
5#ifndef SPA_PARAM_FORMAT_TYPES_H
6#define SPA_PARAM_FORMAT_TYPES_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
17#include <spa/param/format.h>
19
20#include <spa/param/audio/type-info.h>
21#include <spa/param/video/type-info.h>
22
23#define SPA_TYPE_INFO_Format SPA_TYPE_INFO_PARAM_BASE "Format"
24#define SPA_TYPE_INFO_FORMAT_BASE SPA_TYPE_INFO_Format ":"
25
26#define SPA_TYPE_INFO_MediaType SPA_TYPE_INFO_ENUM_BASE "MediaType"
27#define SPA_TYPE_INFO_MEDIA_TYPE_BASE SPA_TYPE_INFO_MediaType ":"
28
29static const struct spa_type_info spa_type_media_type[] = {
37 { 0, 0, NULL, NULL },
38};
39
40#define SPA_TYPE_INFO_MediaSubtype SPA_TYPE_INFO_ENUM_BASE "MediaSubtype"
41#define SPA_TYPE_INFO_MEDIA_SUBTYPE_BASE SPA_TYPE_INFO_MediaSubtype ":"
42
43static const struct spa_type_info spa_type_media_subtype[] = {
45 /* generic subtypes */
50 /* audio subtypes */
67 /* video subtypes */
81 /* image subtypes */
83 /* stream subtypes */
85 /* application subtypes */
87 { 0, 0, NULL, NULL },
88};
89
90#define SPA_TYPE_INFO_FormatAudio SPA_TYPE_INFO_FORMAT_BASE "Audio"
91#define SPA_TYPE_INFO_FORMAT_AUDIO_BASE SPA_TYPE_INFO_FormatAudio ":"
92
93#define SPA_TYPE_INFO_FORMAT_AUDIO_AAC SPA_TYPE_INFO_FORMAT_AUDIO_BASE "AAC"
94#define SPA_TYPE_INFO_FORMAT_AUDIO_AAC_BASE SPA_TYPE_INFO_FORMAT_AUDIO_AAC ":"
95#define SPA_TYPE_INFO_FORMAT_AUDIO_WMA SPA_TYPE_INFO_FORMAT_AUDIO_BASE "WMA"
96#define SPA_TYPE_INFO_FORMAT_AUDIO_WMA_BASE SPA_TYPE_INFO_FORMAT_AUDIO_WMA ":"
97#define SPA_TYPE_INFO_FORMAT_AUDIO_AMR SPA_TYPE_INFO_FORMAT_AUDIO_BASE "AMR"
98#define SPA_TYPE_INFO_FORMAT_AUDIO_AMR_BASE SPA_TYPE_INFO_FORMAT_AUDIO_AMR ":"
99
100#define SPA_TYPE_INFO_FormatVideo SPA_TYPE_INFO_FORMAT_BASE "Video"
101#define SPA_TYPE_INFO_FORMAT_VIDEO_BASE SPA_TYPE_INFO_FormatVideo ":"
103#define SPA_TYPE_INFO_FORMAT_VIDEO_H264 SPA_TYPE_INFO_FORMAT_VIDEO_BASE "H264"
104#define SPA_TYPE_INFO_FORMAT_VIDEO_H264_BASE SPA_TYPE_INFO_FORMAT_VIDEO_H264 ":"
105
106static const struct spa_type_info spa_type_format[] = {
108
124 spa_type_audio_iec958_codec },
131
133 spa_type_audio_aac_stream_format },
135 spa_type_audio_wma_profile },
137 spa_type_audio_amr_band_mode },
138
158
161 { 0, 0, NULL, NULL },
162};
163
168#ifdef __cplusplus
169} /* extern "C" */
170#endif
171
172#endif /* SPA_PARAM_FORMAT_TYPES_H */
static const struct spa_type_info spa_type_media_subtype[]
Definition: format-types.h:54
static const struct spa_type_info spa_type_prop_channel_map[]
Definition: param-types.h:66
static const struct spa_type_info spa_type_audio_format[]
Definition: audio/raw-types.h:30
#define SPA_TYPE_INFO_FORMAT_VIDEO_BASE
Definition: format-types.h:122
static const struct spa_type_info spa_type_format[]
Definition: format-types.h:129
static const struct spa_type_info spa_type_audio_flags[]
Definition: audio/raw-types.h:143
#define SPA_TYPE_INFO_FORMAT_AUDIO_AMR_BASE
Definition: format-types.h:117
#define SPA_TYPE_INFO_FORMAT_AUDIO_AAC_BASE
Definition: format-types.h:109
static const struct spa_type_info spa_type_video_interlace_mode[]
Definition: video/raw-types.h:139
static const struct spa_type_info spa_type_video_format[]
Definition: video/raw-types.h:29
#define SPA_TYPE_INFO_FORMAT_AUDIO_BASE
Definition: format-types.h:104
#define SPA_TYPE_INFO_MEDIA_TYPE_BASE
Definition: format-types.h:36
static const struct spa_type_info spa_type_param_bitorder[]
Definition: param-types.h:81
#define SPA_TYPE_INFO_FORMAT_VIDEO_H264_BASE
Definition: format-types.h:127
static const struct spa_type_info spa_type_param[]
Definition: param-types.h:32
#define SPA_TYPE_INFO_FORMAT_AUDIO_WMA_BASE
Definition: format-types.h:113
static const struct spa_type_info spa_type_media_type[]
Definition: format-types.h:38
#define SPA_TYPE_INFO_FORMAT_BASE
Definition: format-types.h:31
#define SPA_TYPE_INFO_MEDIA_SUBTYPE_BASE
Definition: format-types.h:52
@ SPA_MEDIA_TYPE_unknown
Definition: param/format.h:26
@ SPA_MEDIA_TYPE_application
Definition: param/format.h:32
@ SPA_MEDIA_TYPE_audio
Definition: param/format.h:27
@ SPA_MEDIA_TYPE_video
Definition: param/format.h:28
@ SPA_MEDIA_TYPE_binary
Definition: param/format.h:30
@ SPA_MEDIA_TYPE_image
Definition: param/format.h:29
@ SPA_MEDIA_TYPE_stream
Definition: param/format.h:31
@ SPA_FORMAT_VIDEO_framerate
frame rate (Fraction)
Definition: param/format.h:124
@ SPA_FORMAT_AUDIO_iec958Codec
codec used (IEC958) (Id enum spa_audio_iec958_codec)
Definition: param/format.h:104
@ SPA_FORMAT_VIDEO_H264_streamFormat
(Id enum spa_h264_stream_format)
Definition: param/format.h:138
@ SPA_FORMAT_AUDIO_AAC_streamFormat
AAC stream format, (Id enum spa_audio_aac_stream_format)
Definition: param/format.h:111
@ SPA_FORMAT_AUDIO_interleave
Interleave bytes (Int)
Definition: param/format.h:107
@ SPA_FORMAT_AUDIO_blockAlign
audio data block alignment (Int)
Definition: param/format.h:109
@ SPA_FORMAT_AUDIO_AMR_bandMode
AMR band mode (Id enum spa_audio_amr_band_mode)
Definition: param/format.h:115
@ SPA_FORMAT_AUDIO_bitorder
bit order (Id enum spa_param_bitorder)
Definition: param/format.h:106
@ SPA_FORMAT_VIDEO_level
(Int)
Definition: param/format.h:137
@ SPA_FORMAT_mediaType
media type (Id enum spa_media_type)
Definition: param/format.h:93
@ SPA_FORMAT_VIDEO_size
size (Rectangle)
Definition: param/format.h:123
@ SPA_FORMAT_AUDIO_position
channel positions (Id enum spa_audio_position)
Definition: param/format.h:102
@ SPA_FORMAT_VIDEO_profile
(Int)
Definition: param/format.h:136
@ SPA_FORMAT_VIDEO_modifier
format modifier (Long) use only with DMA-BUF and omit for other buffer types
Definition: param/format.h:121
@ SPA_FORMAT_AUDIO_rate
sample rate (Int)
Definition: param/format.h:100
@ SPA_FORMAT_VIDEO_multiviewMode
(Id enum spa_video_multiview_mode)
Definition: param/format.h:129
@ SPA_FORMAT_VIDEO_interlaceMode
(Id enum spa_video_interlace_mode)
Definition: param/format.h:127
@ SPA_FORMAT_VIDEO_maxFramerate
maximum frame rate (Fraction)
Definition: param/format.h:125
@ SPA_FORMAT_AUDIO_flags
optional flags (Int)
Definition: param/format.h:99
@ SPA_FORMAT_VIDEO_pixelAspectRatio
(Rectangle)
Definition: param/format.h:128
@ SPA_FORMAT_VIDEO_colorMatrix
/Id enum spa_video_color_matrix)
Definition: param/format.h:133
@ SPA_FORMAT_AUDIO_bitrate
bit rate (Int)
Definition: param/format.h:108
@ SPA_FORMAT_AUDIO_WMA_profile
WMA profile (Id enum spa_audio_wma_profile)
Definition: param/format.h:113
@ SPA_FORMAT_VIDEO_format
video format (Id enum spa_video_format)
Definition: param/format.h:120
@ SPA_FORMAT_mediaSubtype
media subtype (Id enum spa_media_subtype)
Definition: param/format.h:94
@ SPA_FORMAT_AUDIO_format
audio format, (Id enum spa_audio_format)
Definition: param/format.h:98
@ SPA_FORMAT_VIDEO_chromaSite
/Id enum spa_video_chroma_site)
Definition: param/format.h:131
@ SPA_FORMAT_VIDEO_views
number of views (Int)
Definition: param/format.h:126
@ SPA_FORMAT_VIDEO_colorPrimaries
/Id enum spa_video_color_primaries)
Definition: param/format.h:135
@ SPA_FORMAT_VIDEO_transferFunction
/Id enum spa_video_transfer_function)
Definition: param/format.h:134
@ SPA_FORMAT_VIDEO_H264_alignment
(Id enum spa_h264_alignment)
Definition: param/format.h:139
@ SPA_FORMAT_VIDEO_colorRange
/Id enum spa_video_color_range)
Definition: param/format.h:132
@ SPA_FORMAT_AUDIO_channels
number of audio channels (Int)
Definition: param/format.h:101
@ SPA_FORMAT_VIDEO_multiviewFlags
(Id enum spa_video_multiview_flags)
Definition: param/format.h:130
@ SPA_FORMAT_START
Definition: param/format.h:91
@ SPA_MEDIA_SUBTYPE_midi
Definition: param/format.h:82
@ SPA_MEDIA_SUBTYPE_h264
Definition: param/format.h:62
@ SPA_MEDIA_SUBTYPE_alac
Definition: param/format.h:56
@ SPA_MEDIA_SUBTYPE_ra
Definition: param/format.h:48
@ SPA_MEDIA_SUBTYPE_mpeg4
Definition: param/format.h:69
@ SPA_MEDIA_SUBTYPE_mp3
Definition: param/format.h:44
@ SPA_MEDIA_SUBTYPE_aac
Definition: param/format.h:45
@ SPA_MEDIA_SUBTYPE_iec958
Definition: param/format.h:40
@ SPA_MEDIA_SUBTYPE_mpeg2
Definition: param/format.h:68
@ SPA_MEDIA_SUBTYPE_sbc
Definition: param/format.h:49
@ SPA_MEDIA_SUBTYPE_ape
since 0.3.65
Definition: param/format.h:58
@ SPA_MEDIA_SUBTYPE_wma
Definition: param/format.h:47
@ SPA_MEDIA_SUBTYPE_h263
Definition: param/format.h:66
@ SPA_MEDIA_SUBTYPE_g726
Definition: param/format.h:52
@ SPA_MEDIA_SUBTYPE_amr
Definition: param/format.h:54
@ SPA_MEDIA_SUBTYPE_unknown
Definition: param/format.h:37
@ SPA_MEDIA_SUBTYPE_mjpg
Definition: param/format.h:63
@ SPA_MEDIA_SUBTYPE_vp8
Definition: param/format.h:72
@ SPA_MEDIA_SUBTYPE_dsp
Definition: param/format.h:39
@ SPA_MEDIA_SUBTYPE_vorbis
Definition: param/format.h:46
@ SPA_MEDIA_SUBTYPE_dv
Definition: param/format.h:64
@ SPA_MEDIA_SUBTYPE_raw
Definition: param/format.h:38
@ SPA_MEDIA_SUBTYPE_mpegts
Definition: param/format.h:65
@ SPA_MEDIA_SUBTYPE_mpeg1
Definition: param/format.h:67
@ SPA_MEDIA_SUBTYPE_vc1
Definition: param/format.h:71
@ SPA_MEDIA_SUBTYPE_jpeg
Definition: param/format.h:77
@ SPA_MEDIA_SUBTYPE_xvid
Definition: param/format.h:70
@ SPA_MEDIA_SUBTYPE_dsd
S/PDIF.
Definition: param/format.h:41
@ SPA_MEDIA_SUBTYPE_adpcm
Definition: param/format.h:50
@ SPA_MEDIA_SUBTYPE_bayer
Definition: param/format.h:74
@ SPA_MEDIA_SUBTYPE_g723
Definition: param/format.h:51
@ SPA_MEDIA_SUBTYPE_control
control stream, data contains spa_pod_sequence with control info.
Definition: param/format.h:85
@ SPA_MEDIA_SUBTYPE_gsm
Definition: param/format.h:55
@ SPA_MEDIA_SUBTYPE_opus
since 0.3.65
Definition: param/format.h:59
@ SPA_MEDIA_SUBTYPE_g729
Definition: param/format.h:53
@ SPA_MEDIA_SUBTYPE_vp9
Definition: param/format.h:73
@ SPA_MEDIA_SUBTYPE_flac
since 0.3.65
Definition: param/format.h:57
@ SPA_TYPE_Int
Definition: spa/include/spa/utils/type.h:34
@ SPA_TYPE_Rectangle
Definition: spa/include/spa/utils/type.h:40
@ SPA_TYPE_Long
Definition: spa/include/spa/utils/type.h:35
@ SPA_TYPE_Fraction
Definition: spa/include/spa/utils/type.h:41
@ SPA_TYPE_Id
Definition: spa/include/spa/utils/type.h:33
@ SPA_TYPE_Array
Definition: spa/include/spa/utils/type.h:43
spa/param/param-types.h
spa/param/format.h
Definition: spa/include/spa/utils/type.h:142