+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
c · 93 lines · 3.4 KB · SPDX: MIT
main
1 /* Simple Plugin API */
2 /* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
3 /* SPDX-License-Identifier: MIT */
4  
5 #ifndef SPA_PARAM_H
6 #define SPA_PARAM_H
7  
8 #include <spa/utils/defs.h>
9  
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13  
14 /** \defgroup spa_param Parameters
15 * Parameter value enumerations and type information
16 */
17  
18 /**
19 * \addtogroup spa_param
20 * \{
21 */
22  
23 /** different parameter types that can be queried */
24 enum spa_param_type {
25 SPA_PARAM_Invalid, /**< invalid */
26 SPA_PARAM_PropInfo, /**< property information as SPA_TYPE_OBJECT_PropInfo */
27 SPA_PARAM_Props, /**< properties as SPA_TYPE_OBJECT_Props */
28 SPA_PARAM_EnumFormat, /**< available formats as SPA_TYPE_OBJECT_Format */
29 SPA_PARAM_Format, /**< configured format as SPA_TYPE_OBJECT_Format */
30 SPA_PARAM_Buffers, /**< buffer configurations as SPA_TYPE_OBJECT_ParamBuffers*/
31 SPA_PARAM_Meta, /**< allowed metadata for buffers as SPA_TYPE_OBJECT_ParamMeta*/
32 SPA_PARAM_IO, /**< configurable IO areas as SPA_TYPE_OBJECT_ParamIO */
33 SPA_PARAM_EnumProfile, /**< profile enumeration as SPA_TYPE_OBJECT_ParamProfile */
34 SPA_PARAM_Profile, /**< profile configuration as SPA_TYPE_OBJECT_ParamProfile */
35 SPA_PARAM_EnumPortConfig, /**< port configuration enumeration as SPA_TYPE_OBJECT_ParamPortConfig */
36 SPA_PARAM_PortConfig, /**< port configuration as SPA_TYPE_OBJECT_ParamPortConfig */
37 SPA_PARAM_EnumRoute, /**< routing enumeration as SPA_TYPE_OBJECT_ParamRoute */
38 SPA_PARAM_Route, /**< routing configuration as SPA_TYPE_OBJECT_ParamRoute */
39 SPA_PARAM_Control, /**< Control parameter, a SPA_TYPE_Sequence */
40 SPA_PARAM_Latency, /**< latency reporting, a SPA_TYPE_OBJECT_ParamLatency */
41 SPA_PARAM_ProcessLatency, /**< processing latency, a SPA_TYPE_OBJECT_ParamProcessLatency */
42 SPA_PARAM_Tag, /**< tag reporting, a SPA_TYPE_OBJECT_ParamTag. Since 0.3.79 */
43 SPA_PARAM_PeerEnumFormat, /**< peer formats, a SPA_TYPE_OBJECT_PeerParam with
44 * SPA_TYPE_OBJECT_Format. Since 1.5.0 */
45 SPA_PARAM_Capability, /**< capability info, a SPA_TYPE_OBJECT_ParamDict, Since 1.5.84 */
46 SPA_PARAM_PeerCapability, /**< peer capabilities, a SPA_TYPE_OBJECT_PeerParam with
47 * SPA_TYPE_OBJECT_ParamDict, since 1.5.84 */
48 };
49  
50 /** information about a parameter */
51 struct spa_param_info {
52 uint32_t id; /**< enum spa_param_type */
53 #define SPA_PARAM_INFO_SERIAL (1<<0) /**< bit to signal update even when the
54 * read/write flags don't change */
55 #define SPA_PARAM_INFO_READ (1<<1)
56 #define SPA_PARAM_INFO_WRITE (1<<2)
57 #define SPA_PARAM_INFO_READWRITE (SPA_PARAM_INFO_WRITE|SPA_PARAM_INFO_READ)
58 uint32_t flags;
59 uint32_t user; /**< private user field. You can use this to keep
60 * state. */
61 int32_t seq; /**< private seq field. You can use this to keep
62 * state of a pending update. */
63 uint32_t padding[4];
64 };
65  
66 #define SPA_PARAM_INFO(id,flags) ((struct spa_param_info){ (id), (flags) })
67  
68 enum spa_param_bitorder {
69 SPA_PARAM_BITORDER_unknown, /**< unknown bitorder */
70 SPA_PARAM_BITORDER_msb, /**< most significant bit */
71 SPA_PARAM_BITORDER_lsb, /**< least significant bit */
72 };
73  
74 enum spa_param_availability {
75 SPA_PARAM_AVAILABILITY_unknown, /**< unknown availability */
76 SPA_PARAM_AVAILABILITY_no, /**< not available */
77 SPA_PARAM_AVAILABILITY_yes, /**< available */
78 };
79  
80 #include <spa/param/buffers.h>
81 #include <spa/param/profile.h>
82 #include <spa/param/port-config.h>
83 #include <spa/param/route.h>
84  
85 /**
86 * \}
87 */
88  
89 #ifdef __cplusplus
90 } /* extern "C" */
91 #endif
92  
93 #endif /* SPA_PARAM_H */