PipeWire: port-config-types.h Source File

PipeWire 0.3.66

Loading...
Searching...
No Matches
port-config-types.h
Go to the documentation of this file.
1/* Simple Plugin API
2 *
3 * Copyright © 2018 Wim Taymans
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice (including the next
13 * paragraph) shall be included in all copies or substantial portions of the
14 * Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 */
24
25#ifndef SPA_PARAM_PORT_CONFIG_TYPES_H
26#define SPA_PARAM_PORT_CONFIG_TYPES_H
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
37#include <spa/utils/enum-types.h>
38#include <spa/param/param-types.h>
39#include <spa/param/port-config.h>
40
41#define SPA_TYPE_INFO_ParamPortConfigMode SPA_TYPE_INFO_ENUM_BASE "ParamPortConfigMode"
42#define SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE SPA_TYPE_INFO_ParamPortConfigMode ":"
43
44static const struct spa_type_info spa_type_param_port_config_mode[] = {
45 { SPA_PARAM_PORT_CONFIG_MODE_none, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE "none", NULL },
46 { SPA_PARAM_PORT_CONFIG_MODE_passthrough, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE "passthrough", NULL },
47 { SPA_PARAM_PORT_CONFIG_MODE_convert, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE "convert", NULL },
48 { SPA_PARAM_PORT_CONFIG_MODE_dsp, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE "dsp", NULL },
49 { 0, 0, NULL, NULL },
50};
51
52#define SPA_TYPE_INFO_PARAM_PortConfig SPA_TYPE_INFO_PARAM_BASE "PortConfig"
53#define SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE SPA_TYPE_INFO_PARAM_PortConfig ":"
54
55static const struct spa_type_info spa_type_param_port_config[] = {
56 { SPA_PARAM_PORT_CONFIG_START, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE, spa_type_param, },
57 { SPA_PARAM_PORT_CONFIG_direction, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "direction", spa_type_direction, },
58 { SPA_PARAM_PORT_CONFIG_mode, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "mode", spa_type_param_port_config_mode },
59 { SPA_PARAM_PORT_CONFIG_monitor, SPA_TYPE_Bool, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "monitor", NULL },
60 { SPA_PARAM_PORT_CONFIG_control, SPA_TYPE_Bool, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "control", NULL },
61 { SPA_PARAM_PORT_CONFIG_format, SPA_TYPE_OBJECT_Format, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "format", NULL },
62 { 0, 0, NULL, NULL },
63};
64
69#ifdef __cplusplus
70} /* extern "C" */
71#endif
72
73#endif /* SPA_PARAM_PORT_CONFIG_TYPES_H */
spa_type_param_port_config_mode
static const struct spa_type_info spa_type_param_port_config_mode[]
Definition: port-config-types.h:51
spa_type_param_port_config
static const struct spa_type_info spa_type_param_port_config[]
Definition: port-config-types.h:64
SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE
#define SPA_TYPE_INFO_PARAM_PORT_CONFIG_MODE_BASE
Definition: port-config-types.h:49
SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE
#define SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE
Definition: port-config-types.h:62
spa_type_param
static const struct spa_type_info spa_type_param[]
Definition: param-types.h:52
SPA_PARAM_PORT_CONFIG_MODE_convert
@ SPA_PARAM_PORT_CONFIG_MODE_convert
convert configuration
Definition: port-config.h:47
SPA_PARAM_PORT_CONFIG_MODE_none
@ SPA_PARAM_PORT_CONFIG_MODE_none
no configuration
Definition: port-config.h:45
SPA_PARAM_PORT_CONFIG_MODE_dsp
@ SPA_PARAM_PORT_CONFIG_MODE_dsp
dsp configuration, depending on the external format.
Definition: port-config.h:48
SPA_PARAM_PORT_CONFIG_MODE_passthrough
@ SPA_PARAM_PORT_CONFIG_MODE_passthrough
passthrough configuration
Definition: port-config.h:46
SPA_PARAM_PORT_CONFIG_mode
@ SPA_PARAM_PORT_CONFIG_mode
(Id enum spa_param_port_config_mode) mode
Definition: port-config.h:57
SPA_PARAM_PORT_CONFIG_format
@ SPA_PARAM_PORT_CONFIG_format
(Object) format filter
Definition: port-config.h:60
SPA_PARAM_PORT_CONFIG_monitor
@ SPA_PARAM_PORT_CONFIG_monitor
(Bool) enable monitor output ports on input ports
Definition: port-config.h:58
SPA_PARAM_PORT_CONFIG_control
@ SPA_PARAM_PORT_CONFIG_control
(Bool) enable control ports
Definition: port-config.h:59
SPA_PARAM_PORT_CONFIG_direction
@ SPA_PARAM_PORT_CONFIG_direction
(Id enum spa_direction) direction
Definition: port-config.h:56
SPA_PARAM_PORT_CONFIG_START
@ SPA_PARAM_PORT_CONFIG_START
Definition: port-config.h:55
SPA_TYPE_Int
@ SPA_TYPE_Int
Definition: spa/include/spa/utils/type.h:54
SPA_TYPE_Bool
@ SPA_TYPE_Bool
Definition: spa/include/spa/utils/type.h:52
SPA_TYPE_Id
@ SPA_TYPE_Id
Definition: spa/include/spa/utils/type.h:53
SPA_TYPE_OBJECT_Format
@ SPA_TYPE_OBJECT_Format
Definition: spa/include/spa/utils/type.h:96
param-types.h
spa/param/param-types.h
port-config.h
spa/param/port-config.h
spa_type_info
Definition: spa/include/spa/utils/type.h:162