Go to the documentation of this file.
25 #ifndef SPA_DEBUG_BUFFER_H
26 #define SPA_DEBUG_BUFFER_H
46 #define spa_debug(...) ({ fprintf(stderr, __VA_ARGS__);fputc('\n', stderr); })
55 for (i = 0; i <
buffer->n_metas; i++) {
57 const char *type_name;
60 spa_debug(
"%*s" " meta %d: type %d (%s), data %p, size %d:", indent,
"", i, m->
type,
67 spa_debug(
"%*s" " struct spa_meta_header:", indent,
"");
78 spa_debug(
"%*s" " struct spa_meta_region:", indent,
"");
89 spa_debug(
"%*s" " struct spa_meta_region:", indent,
"");
102 spa_debug(
"%*s" " Unknown:", indent,
"");
107 for (i = 0; i <
buffer->n_datas; i++) {
113 spa_debug(
"%*s" " fd: %" PRIi64, indent,
"", d->
fd);
int spa_debug_buffer(int indent, const struct spa_buffer *buffer)
Definition: debug/buffer.h:49
uint32_t maxsize
max size of data
Definition: buffer/buffer.h:87
uint32_t width
Definition: defs.h:87
@ SPA_META_Cursor
struct spa_meta_cursor
Definition: meta.h:46
const struct spa_type_info spa_type_data_type[]
Definition: buffer/type-info.h:52
int32_t x
Definition: defs.h:93
@ SPA_META_VideoCrop
struct spa_meta_region with cropping data
Definition: meta.h:43
@ SPA_META_VideoDamage
array of struct spa_meta_region with damage
Definition: meta.h:44
struct spa_rectangle size
Definition: defs.h:100
int32_t stride
stride of valid data
Definition: buffer/buffer.h:63
uint32_t height
Definition: defs.h:88
#define spa_debug(...)
Definition: debug/buffer.h:46
uint32_t flags
data flags
Definition: buffer/buffer.h:84
uint32_t offset
offset of valid data.
Definition: buffer/buffer.h:58
const struct spa_type_info spa_type_meta_type[]
Definition: buffer/type-info.h:73
#define spa_meta_for_each(pos, meta)
iterate all the items in a metadata
Definition: meta.h:98
int spa_debug_mem(int indent, const void *data, size_t size)
Definition: build-12683127/doc/spa/debug/mem.h:43
A Buffer.
Definition: buffer/buffer.h:93
uint32_t type
memory type, one of enum spa_data_type, when allocating memory, the type contains a bitmask of allowe...
Definition: buffer/buffer.h:71
struct spa_chunk * chunk
valid chunk of memory
Definition: buffer/buffer.h:89
@ SPA_META_Bitmap
struct spa_meta_bitmap
Definition: meta.h:45
uint32_t mapoffset
offset to map fd at
Definition: buffer/buffer.h:86
uint32_t size
size of valid data.
Definition: buffer/buffer.h:61
Data for a buffer this stays constant for a buffer.
Definition: buffer/buffer.h:70
int64_t fd
optional fd for data
Definition: buffer/buffer.h:85
void * data
optional data pointer
Definition: buffer/buffer.h:88
@ SPA_META_Header
struct spa_meta_header
Definition: meta.h:42
int32_t y
Definition: defs.h:94
struct spa_point position
Definition: defs.h:99
const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:68