25 #ifndef SPA_DEBUG_BUFFER_H
26 #define SPA_DEBUG_BUFFER_H
50 spa_debug(
"%*s" "struct spa_buffer %p:", indent,
"", buffer);
52 for (i = 0; i < buffer->
n_metas; i++) {
54 const char *type_name;
57 spa_debug(
"%*s" " meta %d: type %d (%s), data %p, size %d:", indent,
"", i, m->
type,
64 spa_debug(
"%*s" " struct spa_meta_header:", indent,
"");
75 spa_debug(
"%*s" " struct spa_meta_region:", indent,
"");
86 spa_debug(
"%*s" " struct spa_meta_region:", indent,
"");
104 for (i = 0; i < buffer->
n_datas; i++) {
110 spa_debug(
"%*s" " fd: %" PRIi64, indent,
"", d->
fd);
static const struct spa_type_info spa_type_data_type[]
Definition: type-info.h:63
#define spa_meta_for_each(pos, meta)
iterate all the items in a metadata
Definition: meta.h:109
static const struct spa_type_info spa_type_meta_type[]
Definition: type-info.h:92
@ SPA_META_VideoDamage
array of struct spa_meta_region with damage, where an invalid entry or end-of-array marks the end.
Definition: meta.h:49
@ SPA_META_Bitmap
struct spa_meta_bitmap
Definition: meta.h:50
@ SPA_META_Cursor
struct spa_meta_cursor
Definition: meta.h:51
@ SPA_META_VideoCrop
struct spa_meta_region with cropping data
Definition: meta.h:48
@ SPA_META_Header
struct spa_meta_header
Definition: meta.h:47
static int spa_debug_buffer(int indent, const struct spa_buffer *buffer)
Definition: buffer.h:51
#define spa_debug(fmt,...)
Definition: log.h:44
static const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:73
static int spa_debug_mem(int indent, const void *data, size_t size)
Definition: mem.h:46
A Buffer.
Definition: buffer.h:105
uint32_t n_metas
number of metadata
Definition: buffer.h:106
struct spa_meta * metas
array of metadata
Definition: buffer.h:108
struct spa_data * datas
array of data members
Definition: buffer.h:109
uint32_t n_datas
number of data members
Definition: buffer.h:107
int32_t stride
stride of valid data
Definition: buffer.h:68
uint32_t size
size of valid data.
Definition: buffer.h:66
uint32_t offset
offset of valid data.
Definition: buffer.h:63
Data for a buffer this stays constant for a buffer.
Definition: buffer.h:77
struct spa_chunk * chunk
valid chunk of memory
Definition: buffer.h:101
int64_t fd
optional fd for data
Definition: buffer.h:97
uint32_t mapoffset
offset to map fd at
Definition: buffer.h:98
uint32_t flags
data flags
Definition: buffer.h:96
void * data
optional data pointer
Definition: buffer.h:100
uint32_t maxsize
max size of data
Definition: buffer.h:99
uint32_t type
memory type, one of enum spa_data_type, when allocating memory, the type contains a bitmask of allowe...
Definition: buffer.h:78
int32_t y
Definition: defs.h:109
int32_t x
Definition: defs.h:108
uint32_t width
Definition: defs.h:101
uint32_t height
Definition: defs.h:102
struct spa_point position
Definition: defs.h:115
struct spa_rectangle size
Definition: defs.h:116