10 #ifndef __VDO_BUFFER_H__ 11 #define __VDO_BUFFER_H__ 18 G_DEFINE_AUTOPTR_CLEANUP_FUNC(VdoBuffer, g_object_unref)
20 typedef void(*VdoBufferFinalizer)(VdoBuffer *
self);
35 VdoBuffer *
vdo_buffer_new(gint fd, gsize capacity, guint64 offset, gpointer opaque);
A class representing a dictionary mapping keys to values.
VdoBuffer * vdo_buffer_new_full(gint fd, gsize capacity, guint64 offset, gpointer opaque, VdoMap *settings)
Create a buffer with custom buffer properties.
guint32 vdo_buffer_get_id(VdoBuffer *self)
Returns an id representing the VdoBuffer.
gint vdo_buffer_get_fd(VdoBuffer *self)
Returns a file descriptor representing the VdoBuffer.
gsize vdo_buffer_get_capacity(VdoBuffer *self)
Returns the entire buffer capacity of the VdoBuffer.
gpointer vdo_buffer_get_opaque(VdoBuffer *self)
Opaque pointers contain user provided custom information.
gint64 vdo_buffer_get_offset(VdoBuffer *self)
Returns file offset to the VdoBuffer.
VdoBuffer * vdo_buffer_new(gint fd, gsize capacity, guint64 offset, gpointer opaque)
Create a buffer which is owned by an external framework.
VdoFrame * vdo_buffer_get_frame(VdoBuffer *self)
Returns a pointer to the underlying frame.
gboolean vdo_buffer_is_complete(VdoBuffer *self)
Indicates whether the buffer is complete or not.
gpointer vdo_buffer_get_data(VdoBuffer *self)
Returns a pointer to the underlying buffer.