20 #define SPA_POD_BODY_SIZE(pod) (((struct spa_pod*)(pod))->size) 21 #define SPA_POD_TYPE(pod) (((struct spa_pod*)(pod))->type) 22 #define SPA_POD_SIZE(pod) ((uint64_t)sizeof(struct spa_pod) + SPA_POD_BODY_SIZE(pod)) 23 #define SPA_POD_CONTENTS_SIZE(type,pod) (SPA_POD_SIZE(pod)-sizeof(type)) 25 #define SPA_POD_CONTENTS(type,pod) SPA_PTROFF((pod),sizeof(type),void) 26 #define SPA_POD_CONTENTS_CONST(type,pod) SPA_PTROFF((pod),sizeof(type),const void) 27 #define SPA_POD_BODY(pod) SPA_PTROFF((pod),sizeof(struct spa_pod),void) 28 #define SPA_POD_BODY_CONST(pod) SPA_PTROFF((pod),sizeof(struct spa_pod),const void) 35 #define SPA_POD_VALUE(type,pod) (((type*)(pod))->value) 96 #define SPA_POD_ARRAY_CHILD(arr) (&((struct spa_pod_array*)(arr))->body.child) 97 #define SPA_POD_ARRAY_VALUE_TYPE(arr) (SPA_POD_TYPE(SPA_POD_ARRAY_CHILD(arr))) 98 #define SPA_POD_ARRAY_VALUE_SIZE(arr) (SPA_POD_BODY_SIZE(SPA_POD_ARRAY_CHILD(arr))) 99 #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) 100 #define SPA_POD_ARRAY_VALUES(arr) SPA_POD_CONTENTS(struct spa_pod_array, arr) 112 #define SPA_POD_CHOICE_CHILD(choice) (&((struct spa_pod_choice*)(choice))->body.child) 113 #define SPA_POD_CHOICE_TYPE(choice) (((struct spa_pod_choice*)(choice))->body.type) 114 #define SPA_POD_CHOICE_FLAGS(choice) (((struct spa_pod_choice*)(choice))->body.flags) 115 #define SPA_POD_CHOICE_VALUE_TYPE(choice) (SPA_POD_TYPE(SPA_POD_CHOICE_CHILD(choice))) 116 #define SPA_POD_CHOICE_VALUE_SIZE(choice) (SPA_POD_BODY_SIZE(SPA_POD_CHOICE_CHILD(choice))) 117 #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) 118 #define SPA_POD_CHOICE_VALUES(choice) (SPA_POD_CONTENTS(struct spa_pod_choice, choice)) 146 #define SPA_POD_OBJECT_TYPE(obj) (((struct spa_pod_object*)(obj))->body.type) 147 #define SPA_POD_OBJECT_ID(obj) (((struct spa_pod_object*)(obj))->body.id) 176 #define SPA_POD_PROP_SIZE(prop) (sizeof(struct spa_pod_prop) + (prop)->value.size) 182 #define SPA_POD_PROP_FLAG_READONLY (1u<<0) 183 #define SPA_POD_PROP_FLAG_HARDWARE (1u<<1) 184 #define SPA_POD_PROP_FLAG_HINT_DICT (1u<<2) 189 #define SPA_POD_PROP_FLAG_MANDATORY (1u<<3) 190 #define SPA_POD_PROP_FLAG_DONT_FIXATE (1u<<4) 192 struct spa_pod value; 196 #define SPA_POD_CONTROL_SIZE(ev) (sizeof(struct spa_pod_control) + (ev)->value.size) Definition: pod/pod.h:208
struct spa_pod pod
Definition: pod/pod.h:81
struct spa_pod pod
Definition: pod/pod.h:253
struct spa_pod child
Definition: pod/pod.h:157
Definition: pod/pod.h:167
struct spa_pod pod
Definition: pod/pod.h:200
Definition: pod/pod.h:188
struct spa_pod pod
Definition: pod/pod.h:91
struct spa_pod_array_body body
Definition: pod/pod.h:128
uint32_t type
one of enum spa_type
Definition: pod/pod.h:178
uint32_t id
id of the object, depends on the object type
Definition: pod/pod.h:179
struct spa_pod pod
Definition: pod/pod.h:168
uint32_t offset
media offset
Definition: pod/pod.h:239
uint32_t flags
extra flags
Definition: pod/pod.h:156
struct spa_pod pod
Definition: pod/pod.h:86
uint32_t unit
Definition: pod/pod.h:246
flags: default, possible flags,...
Definition: pod/pod.h:151
float value
Definition: pod/pod.h:76
struct spa_pod_choice_body body
Definition: pod/pod.h:164
struct spa_rectangle value
Definition: pod/pod.h:97
struct spa_pod pod
Definition: pod/pod.h:106
int32_t _padding
Definition: pod/pod.h:77
double value
Definition: pod/pod.h:82
int32_t value
Definition: pod/pod.h:53
uint32_t type
Definition: pod/pod.h:45
uint32_t type
pointer id, one of enum spa_type
Definition: pod/pod.h:189
int32_t _padding
Definition: pod/pod.h:66
struct spa_pod_sequence_body body
Definition: pod/pod.h:254
int64_t value
Definition: pod/pod.h:201
struct spa_pod pod
Definition: pod/pod.h:70
struct spa_pod pod
Definition: pod/pod.h:101
uint32_t pad
Definition: pod/pod.h:247
struct spa_pod pod
Definition: pod/pod.h:127
struct spa_pod child
Definition: pod/pod.h:122
uint32_t type
type of control, enum spa_control_type
Definition: pod/pod.h:240
const void * value
Definition: pod/pod.h:191
struct spa_pod pod
Definition: pod/pod.h:58
struct spa_pod_object_body body
Definition: pod/pod.h:185
spa_choice_type
Definition: pod/pod.h:146
struct spa_pod pod
Definition: pod/pod.h:96
no choice, first value is current
Definition: pod/pod.h:147
Definition: pod/pod.h:199
list: default, alternative,...
Definition: pod/pod.h:150
Definition: pod/pod.h:194
range: default, min, max
Definition: pod/pod.h:148
struct spa_pod pod
Definition: pod/pod.h:163
int32_t _padding
Definition: pod/pod.h:60
struct spa_fraction value
Definition: pod/pod.h:102
struct spa_pod pod
Definition: pod/pod.h:64
Definition: pod/pod.h:183
int32_t _padding
Definition: pod/pod.h:54
range with step: default, min, max, step
Definition: pod/pod.h:149
int32_t value
Definition: pod/pod.h:65
Definition: pod/pod.h:154
struct spa_pod value
control value, depends on type
Definition: pod/pod.h:241
Definition: pod/pod.h:238
uint32_t _padding
Definition: pod/pod.h:190
struct spa_pod pod
Definition: pod/pod.h:184
uint32_t key
key of property, list of valid keys depends on the object type
Definition: pod/pod.h:209
uint32_t size
Definition: pod/pod.h:44
Definition: pod/pod.h:126
struct spa_pod_pointer_body body
Definition: pod/pod.h:196
struct spa_pod pod
Definition: pod/pod.h:52
Definition: pod/pod.h:100
struct spa_pod pod
Definition: pod/pod.h:75
Definition: pod/pod.h:245
uint32_t type
type of choice, one of enum spa_choice_type
Definition: pod/pod.h:155
Definition: pod/pod.h:121
struct spa_pod pod
Definition: pod/pod.h:195
Definition: pod/pod.h:177
int64_t value
Definition: pod/pod.h:71
Definition: pod/pod.h:105
Definition: pod/pod.h:162
uint32_t value
Definition: pod/pod.h:59
a sequence of timed controls
Definition: pod/pod.h:252