GstAllocator
GstAllocator
|
|
Includes
#include <gst/gst.h>
Functions
gst_allocator_register ()
void
gst_allocator_register (const gchar *name
,
GstAllocator *allocator
);
gst_allocator_set_default ()
void
gst_allocator_set_default (GstAllocator *allocator
);
Types and Values
gst_memory_alignment
GST_EXPORT gsize gst_memory_alignment;
GstAllocator
typedef struct {
GstMemoryMapFunction mem_map;
GstMemoryUnmapFunction mem_unmap;
GstMemoryCopyFunction mem_copy;
GstMemoryShareFunction mem_share;
GstMemoryIsSpanFunction mem_is_span;
GstMemoryMapFullFunction mem_map_full;
GstMemoryUnmapFullFunction mem_unmap_full;
} GstAllocator;
struct GstAllocatorClass
struct GstAllocatorClass {
GstObjectClass object_class;
GstMemory * (*alloc) (GstAllocator *allocator, gsize size,
GstAllocationParams *params);
void (*free) (GstAllocator *allocator, GstMemory *memory);
};
struct GstAllocationParams
struct GstAllocationParams {
GstMemoryFlags flags;
gsize align;
gsize prefix;
gsize padding;
};
GST_ALLOCATOR_SYSMEM
#define GST_ALLOCATOR_SYSMEM "SystemMemory"