25 #ifndef SPA_DEBUG_FORMAT_H 26 #define SPA_DEBUG_FORMAT_H 45 uint32_t type,
void *body, uint32_t size)
56 snprintf(tmp,
sizeof(tmp),
"%d", *(int32_t*)body);
120 const char *media_type;
121 const char *media_subtype;
123 uint32_t mtype, mstype;
144 uint32_t i,
type, size, n_vals, choice;
162 key = ti ? ti->name : NULL;
171 const char *ssep, *esep, *sep;
191 for (i = 1; i < n_vals; i++) {
uint32_t type
Definition: type.h:163
uint32_t num
Definition: defs.h:122
uint32_t denom
Definition: defs.h:123
media type (Id enum spa_media_type)
Definition: format.h:109
uint32_t height
Definition: defs.h:102
#define SPA_POD_OBJECT_FOREACH(obj, iter)
Definition: iter.h:128
flags: default, possible flags,...
Definition: pod.h:171
static int spa_debug_format(int indent, const struct spa_type_info *info, const struct spa_pod *format)
Definition: format.h:122
static int spa_debug_format_value(const struct spa_type_info *info, uint32_t type, void *body, uint32_t size)
Definition: format.h:49
static const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:73
static int spa_format_parse(const struct spa_pod *format, uint32_t *media_type, uint32_t *media_subtype)
Definition: format-utils.h:47
#define SPA_POD_TYPE(pod)
Definition: pod.h:48
uint32_t type
Definition: pod.h:65
static const struct spa_type_info spa_type_media_type[]
Definition: type-info.h:220
static const struct spa_type_info spa_types[]
Definition: type-info.h:88
#define SPA_POD_ARRAY_BODY_FOREACH(body, _size, iter)
Definition: iter.h:99
media subtype (Id enum spa_media_subtype)
Definition: format.h:110
struct spa_pod child
Definition: pod.h:142
static const struct spa_type_info spa_type_format[]
Definition: type-info.h:294
not part of ABI
Definition: type.h:71
#define SPA_POD_BODY(pod)
Definition: pod.h:59
uint32_t width
Definition: defs.h:101
#define spa_debug(fmt,...)
Definition: log.h:44
no choice, first value is current
Definition: pod.h:167
static const char * spa_debug_type_find_short_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:80
list: default, alternative,...
Definition: pod.h:170
static const struct spa_type_info * spa_debug_type_find(const struct spa_type_info *info, uint32_t type)
Definition: types.h:46
range: default, min, max
Definition: pod.h:168
#define spa_debugn(fmt,...)
Definition: log.h:47
range with step: default, min, max, step
Definition: pod.h:169
static const struct spa_type_info spa_type_media_subtype[]
Definition: type-info.h:236
static const char * spa_debug_type_short_name(const char *name)
Definition: types.h:65
#define SPA_PTROFF(ptr_, offset_, type_)
Return the address (buffer + offset) as pointer of type.
Definition: defs.h:183
const struct spa_type_info * values
Definition: type.h:166
uint32_t key
key of property, list of valid keys depends on the object type
Definition: pod.h:229
uint32_t size
Definition: pod.h:64
struct spa_pod value
Definition: pod.h:250
static struct spa_pod * spa_pod_get_values(const struct spa_pod *pod, uint32_t *n_vals, uint32_t *choice)
Definition: iter.h:367