40 #define SPA_POD_BODY_SIZE(pod) (((struct spa_pod*)(pod))->size) 41 #define SPA_POD_TYPE(pod) (((struct spa_pod*)(pod))->type) 42 #define SPA_POD_SIZE(pod) (sizeof(struct spa_pod) + SPA_POD_BODY_SIZE(pod)) 43 #define SPA_POD_CONTENTS_SIZE(type,pod) (SPA_POD_SIZE(pod)-sizeof(type)) 45 #define SPA_POD_CONTENTS(type,pod) SPA_PTROFF((pod),sizeof(type),void) 46 #define SPA_POD_CONTENTS_CONST(type,pod) SPA_PTROFF((pod),sizeof(type),const void) 47 #define SPA_POD_BODY(pod) SPA_PTROFF((pod),sizeof(struct spa_pod),void) 48 #define SPA_POD_BODY_CONST(pod) SPA_PTROFF((pod),sizeof(struct spa_pod),const void) 55 #define SPA_POD_VALUE(type,pod) (((type*)pod)->value) 116 #define SPA_POD_ARRAY_CHILD(arr) (&((struct spa_pod_array*)(arr))->body.child) 117 #define SPA_POD_ARRAY_VALUE_TYPE(arr) (SPA_POD_TYPE(SPA_POD_ARRAY_CHILD(arr))) 118 #define SPA_POD_ARRAY_VALUE_SIZE(arr) (SPA_POD_BODY_SIZE(SPA_POD_ARRAY_CHILD(arr))) 119 #define SPA_POD_ARRAY_N_VALUES(arr) (SPA_POD_ARRAY_VALUE_SIZE(arr) ? ((SPA_POD_BODY_SIZE(arr) - sizeof(struct spa_pod_array_body)) / SPA_POD_ARRAY_VALUE_SIZE(arr)) : 0) 120 #define SPA_POD_ARRAY_VALUES(arr) SPA_POD_CONTENTS(struct spa_pod_array, arr) 132 #define SPA_POD_CHOICE_CHILD(choice) (&((struct spa_pod_choice*)(choice))->body.child) 133 #define SPA_POD_CHOICE_TYPE(choice) (((struct spa_pod_choice*)(choice))->body.type) 134 #define SPA_POD_CHOICE_FLAGS(choice) (((struct spa_pod_choice*)(choice))->body.flags) 135 #define SPA_POD_CHOICE_VALUE_TYPE(choice) (SPA_POD_TYPE(SPA_POD_CHOICE_CHILD(choice))) 136 #define SPA_POD_CHOICE_VALUE_SIZE(choice) (SPA_POD_BODY_SIZE(SPA_POD_CHOICE_CHILD(choice))) 137 #define SPA_POD_CHOICE_N_VALUES(choice) (SPA_POD_CHOICE_VALUE_SIZE(choice) ? ((SPA_POD_BODY_SIZE(choice) - sizeof(struct spa_pod_choice_body)) / SPA_POD_CHOICE_VALUE_SIZE(choice)) : 0) 138 #define SPA_POD_CHOICE_VALUES(choice) (SPA_POD_CONTENTS(struct spa_pod_choice, choice)) 166 #define SPA_POD_OBJECT_TYPE(obj) (((struct spa_pod_object*)(obj))->body.type) 167 #define SPA_POD_OBJECT_ID(obj) (((struct spa_pod_object*)(obj))->body.id) 196 #define SPA_POD_PROP_SIZE(prop) (sizeof(struct spa_pod_prop) + (prop)->value.size) 202 #define SPA_POD_PROP_FLAG_READONLY (1u<<0) 203 #define SPA_POD_PROP_FLAG_HARDWARE (1u<<1) 204 #define SPA_POD_PROP_FLAG_HINT_DICT (1u<<2) 209 #define SPA_POD_PROP_FLAG_MANDATORY (1u<<3) 211 struct spa_pod value; 215 #define SPA_POD_CONTROL_SIZE(ev) (sizeof(struct spa_pod_control) + (ev)->value.size) Definition: pod/pod.h:199
struct spa_pod pod
Definition: pod/pod.h:87
struct spa_pod pod
Definition: pod/pod.h:237
struct spa_pod child
Definition: pod/pod.h:151
Definition: pod/pod.h:161
struct spa_pod pod
Definition: pod/pod.h:192
Definition: pod/pod.h:180
struct spa_pod pod
Definition: pod/pod.h:97
struct spa_pod_array_body body
Definition: pod/pod.h:129
uint32_t type
one of enum spa_type
Definition: pod/pod.h:170
uint32_t id
id of the object, depends on the object type
Definition: pod/pod.h:171
struct spa_pod pod
Definition: pod/pod.h:162
uint32_t offset
media offset
Definition: pod/pod.h:223
uint32_t flags
extra flags
Definition: pod/pod.h:150
struct spa_pod pod
Definition: pod/pod.h:92
uint32_t unit
Definition: pod/pod.h:230
flags: default, possible flags,...
Definition: pod/pod.h:145
Definition: pod/pod.h:101
float value
Definition: pod/pod.h:82
struct spa_pod_choice_body body
Definition: pod/pod.h:158
struct spa_rectangle value
Definition: pod/pod.h:103
struct spa_pod pod
Definition: pod/pod.h:112
int32_t _padding
Definition: pod/pod.h:83
double value
Definition: pod/pod.h:88
int32_t value
Definition: pod/pod.h:59
uint32_t type
Definition: pod/pod.h:52
uint32_t type
pointer id, one of enum spa_type
Definition: pod/pod.h:181
int32_t _padding
Definition: pod/pod.h:72
struct spa_pod_sequence_body body
Definition: pod/pod.h:238
int64_t value
Definition: pod/pod.h:193
struct spa_pod pod
Definition: pod/pod.h:76
struct spa_pod pod
Definition: pod/pod.h:107
uint32_t pad
Definition: pod/pod.h:231
struct spa_pod pod
Definition: pod/pod.h:128
struct spa_pod child
Definition: pod/pod.h:123
uint32_t type
type of control, enum spa_control_type
Definition: pod/pod.h:224
const void * value
Definition: pod/pod.h:183
struct spa_pod pod
Definition: pod/pod.h:64
struct spa_pod_object_body body
Definition: pod/pod.h:177
spa_choice_type
Definition: pod/pod.h:140
struct spa_pod pod
Definition: pod/pod.h:102
no choice, first value is current
Definition: pod/pod.h:141
Definition: pod/pod.h:191
list: default, alternative,...
Definition: pod/pod.h:144
Definition: pod/pod.h:186
range: default, min, max
Definition: pod/pod.h:142
struct spa_pod pod
Definition: pod/pod.h:157
int32_t _padding
Definition: pod/pod.h:66
struct spa_fraction value
Definition: pod/pod.h:108
struct spa_pod pod
Definition: pod/pod.h:70
Definition: pod/pod.h:175
int32_t _padding
Definition: pod/pod.h:60
range with step: default, min, max, step
Definition: pod/pod.h:143
int32_t value
Definition: pod/pod.h:71
Definition: pod/pod.h:148
struct spa_pod value
control value, depends on type
Definition: pod/pod.h:225
Definition: pod/pod.h:222
uint32_t _padding
Definition: pod/pod.h:182
struct spa_pod pod
Definition: pod/pod.h:176
uint32_t key
key of property, list of valid keys depends on the object type
Definition: pod/pod.h:200
uint32_t size
Definition: pod/pod.h:51
Definition: pod/pod.h:127
struct spa_pod_pointer_body body
Definition: pod/pod.h:188
struct spa_pod pod
Definition: pod/pod.h:58
Definition: pod/pod.h:106
struct spa_pod pod
Definition: pod/pod.h:81
Definition: pod/pod.h:229
uint32_t type
type of choice, one of enum spa_choice_type
Definition: pod/pod.h:149
Definition: pod/pod.h:122
struct spa_pod pod
Definition: pod/pod.h:187
Definition: pod/pod.h:169
int64_t value
Definition: pod/pod.h:77
Definition: pod/pod.h:111
Definition: pod/pod.h:156
uint32_t value
Definition: pod/pod.h:65
a sequence of timed controls
Definition: pod/pod.h:236