25 uint32_t type,
void *body, uint32_t size)
29 spa_debugc(ctx,
"%*s" "Bool %s", indent,
"", (*(int32_t *) body) ?
"true" :
"false");
32 spa_debugc(ctx,
"%*s" "Id %-8d (%s)", indent,
"", *(int32_t *) body,
36 spa_debugc(ctx,
"%*s" "Int %d", indent,
"", *(int32_t *) body);
39 spa_debugc(ctx,
"%*s" "Long %" PRIi64
"", indent,
"", *(int64_t *) body);
42 spa_debugc(ctx,
"%*s" "Float %f", indent,
"", *(
float *) body);
45 spa_debugc(ctx,
"%*s" "Double %f", indent,
"", *(
double *) body);
48 spa_debugc(ctx,
"%*s" "String \"%s\"", indent,
"", (
char *) body);
51 spa_debugc(ctx,
"%*s" "Fd %d", indent,
"", *(
int *) body);
56 spa_debugc(ctx,
"%*s" "Pointer %s %p", indent,
"",
81 spa_debugc(ctx,
"%*s" "Array: child.size %d, child.type %s", indent,
"",
82 b->
child.
size, ti ? ti->name :
"unknown");
84 info = info && info->values ? info->values : info;
95 spa_debugc(ctx,
"%*s" "Choice: type %s, flags %08x %d %d", indent,
"",
120 spa_debugc(ctx,
"%*s" "Object: size %d, type %s (%d), id %s (%d)", indent,
"", size,
121 ti ? ti->name :
"unknown", b->
type, ii ? ii->name :
"unknown", b->
id);
123 info = ti ? ti->
values : info;
128 spa_debugc(ctx,
"%*s" "Prop: key %s (%d), flags %08x", indent+2,
"",
129 ii ? ii->name :
"unknown", p->
key, p->
flags);
146 spa_debugc(ctx,
"%*s" "Sequence: size %d, unit %s", indent,
"", size,
147 ti ? ti->name :
"unknown");
152 spa_debugc(ctx,
"%*s" "Control: offset %d, type %s", indent+2,
"",
153 c->
offset, ii ? ii->name :
"unknown");
188 uint32_t
type,
void *body, uint32_t size)
static const struct spa_type_info spa_type_control[]
Definition type-info.h:32
static int spa_debugc_pod(struct spa_debug_context *ctx, int indent, const struct spa_type_info *info, const struct spa_pod *pod)
Definition pod.h:182
#define spa_debugc(_c, _fmt,...)
Definition context.h:38
static int spa_debug_pod(int indent, const struct spa_type_info *info, const struct spa_pod *pod)
Definition pod.h:198
static const struct spa_type_info * spa_debug_type_find(const struct spa_type_info *info, uint32_t type)
Definition types.h:26
static const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition types.h:53
static int spa_debug_pod_value(int indent, const struct spa_type_info *info, uint32_t type, void *body, uint32_t size)
Definition pod.h:192
static int spa_debugc_pod_value(struct spa_debug_context *ctx, int indent, const struct spa_type_info *info, uint32_t type, void *body, uint32_t size)
Definition pod.h:29
static int spa_debugc_mem(struct spa_debug_context *ctx, int indent, const void *data, size_t size)
Definition mem.h:26
#define SPA_POD_OBJECT_BODY_FOREACH(body, size, iter)
Definition iter.h:109
#define SPA_POD_CHOICE_BODY_FOREACH(body, _size, iter)
Definition iter.h:93
#define SPA_POD_BODY(pod)
Definition pod.h:39
#define SPA_POD_TYPE(pod)
Definition pod.h:28
#define SPA_POD_BODY_SIZE(pod)
Definition pod.h:26
#define SPA_POD_FOREACH(pod, size, iter)
Definition iter.h:101
#define SPA_POD_CONTENTS(type, pod)
Definition pod.h:35
#define SPA_POD_SEQUENCE_BODY_FOREACH(body, size, iter)
Definition iter.h:117
#define SPA_POD_ARRAY_BODY_FOREACH(body, _size, iter)
Definition iter.h:85
static const struct spa_type_info spa_type_choice[]
Definition enum-types.h:41
#define SPA_TYPE_ROOT
Definition type-info.h:26
@ SPA_TYPE_Int
Definition type.h:34
@ SPA_TYPE_Rectangle
Definition type.h:40
@ SPA_TYPE_Long
Definition type.h:35
@ SPA_TYPE_Bool
Definition type.h:32
@ SPA_TYPE_Bytes
Definition type.h:39
@ SPA_TYPE_Bitmap
Definition type.h:42
@ SPA_TYPE_Object
Definition type.h:45
@ SPA_TYPE_Float
Definition type.h:36
@ SPA_TYPE_Fraction
Definition type.h:41
@ SPA_TYPE_None
Definition type.h:31
@ SPA_TYPE_Sequence
Definition type.h:46
@ SPA_TYPE_Double
Definition type.h:37
@ SPA_TYPE_Id
Definition type.h:33
@ SPA_TYPE_Choice
Definition type.h:49
@ SPA_TYPE_Pointer
Definition type.h:47
@ SPA_TYPE_Array
Definition type.h:43
@ SPA_TYPE_String
Definition type.h:38
@ SPA_TYPE_Fd
Definition type.h:48
@ SPA_TYPE_Struct
Definition type.h:44
uint32_t num
Definition defs.h:138
uint32_t denom
Definition defs.h:139
struct spa_pod child
Definition pod.h:122
struct spa_pod child
Definition pod.h:157
uint32_t type
type of choice, one of enum spa_choice_type
Definition pod.h:155
uint32_t flags
extra flags
Definition pod.h:156
struct spa_pod value
control value, depends on type
Definition pod.h:237
uint32_t type
type of control, enum spa_control_type
Definition pod.h:236
uint32_t offset
media offset
Definition pod.h:235
uint32_t type
one of enum spa_type
Definition pod.h:178
uint32_t id
id of the object, depends on the object type
Definition pod.h:179
const void * value
Definition pod.h:191
uint32_t type
pointer id, one of enum spa_type
Definition pod.h:189
uint32_t key
key of property, list of valid keys depends on the object type
Definition pod.h:209
uint32_t flags
flags for property
Definition pod.h:225
struct spa_pod value
Definition pod.h:226
uint32_t unit
Definition pod.h:242
uint32_t type
Definition pod.h:45
uint32_t size
Definition pod.h:44
uint32_t width
Definition defs.h:117
uint32_t height
Definition defs.h:118
const struct spa_type_info * values
Definition type.h:147