gst_iterator_result_get_type
</SECTION>
+<SECTION>
+<FILE>gstallocator</FILE>
+<TITLE>GstAllocator</TITLE>
+gst_memory_alignment
+
+GstAllocator
+GstAllocatorFlags
+GstAllocationParams
+
+GST_ALLOCATOR_SYSMEM
+gst_allocator_find
+gst_allocator_register
+gst_allocator_set_default
+
+gst_allocation_params_init
+gst_allocation_params_copy
+gst_allocation_params_free
+
+gst_allocator_alloc
+gst_allocator_free
+
+gst_memory_new_wrapped
+
+<SUBSECTION Standard>
+GST_ALLOCATOR
+GST_ALLOCATOR_CAST
+GST_ALLOCATOR_CLASS
+GST_ALLOCATOR_GET_CLASS
+GST_IS_ALLOCATOR
+GST_IS_ALLOCATOR_CLASS
+GstAllocatorClass
+<SUBSECTION Private>
+GST_TYPE_ALLOCATOR_FLAGS
+GstAllocatorPrivate
+GST_TYPE_ALLOCATION_PARAMS
+gst_allocation_params_get_type
+GST_TYPE_ALLOCATOR
+gst_allocator_get_type
+</SECTION>
<SECTION>
<FILE>gstmemory</FILE>
<TITLE>GstMemory</TITLE>
-gst_memory_alignment
-
GstMemoryFlags
GST_MEMORY_FLAGS
GST_MEMORY_FLAG_IS_SET
GST_MAP_INFO_INIT
GST_MAP_READWRITE
-GstAllocationParams
-
-GstAllocatorAllocFunction
GstMemoryMapFunction
GstMemoryUnmapFunction
-GstMemoryFreeFunction
GstMemoryCopyFunction
GstMemoryShareFunction
GstMemoryIsSpanFunction
-GstMemoryInfo
-
-GstAllocator
-
-gst_allocator_new
-gst_allocator_get_memory_type
-gst_allocator_ref
-gst_allocator_unref
-
-GST_ALLOCATOR_SYSMEM
-gst_allocator_find
-gst_allocator_register
-gst_allocator_set_default
-
-gst_allocation_params_init
-gst_allocation_params_copy
-gst_allocation_params_free
-
-gst_allocator_alloc
-
-gst_memory_new_wrapped
-
gst_memory_ref
gst_memory_unref
gst_map_flags_get_type
GST_TYPE_MEMORY_FLAGS
gst_memory_flags_get_type
-GST_TYPE_ALLOCATION_PARAMS
-gst_allocation_params_get_type
-GST_TYPE_ALLOCATOR
-gst_allocator_get_type
</SECTION>
<SECTION>
gpointer _gst_reserved[GST_PADDING];
};
-#if 0
-/**
- * GstAllocatorAllocFunction:
- * @allocator: a #GstAllocator
- * @size: the size
- * @params: allocator params
- * @user_data: user data
- *
- * Allocate a new #GstMemory from @allocator that can hold at least @size
- * bytes (+ padding) and is aligned to (@align + 1) bytes.
- *
- * The offset and size of the memory should be set and the prefix/padding must
- * be filled with 0 if @params flags contains #GST_MEMORY_FLAG_ZERO_PREFIXED and
- * #GST_MEMORY_FLAG_ZERO_PADDED respectively.
- *
- * @user_data is extra data passed to this function. The default
- * gst_allocator_alloc() passes the NULL but other implementations could pass
- * custom data.
- *
- * Returns: a newly allocated #GstMemory. Free with gst_memory_unref()
- */
-typedef GstMemory * (*GstAllocatorAllocFunction) (GstAllocator *allocator,
- gsize size, GstAllocationParams *params,
- gpointer user_data);
-#endif
-
/**
* GstAllocatorFlags:
- * @GST_ALLOCATOR_CUSTOM_ALLOC: The allocator has a custom alloc function.
+ * @GST_ALLOCATOR_FLAG_CUSTOM_ALLOC: The allocator has a custom alloc function.
* @GST_ALLOCATOR_FLAG_LAST: first flag that can be used for custom purposes
*
* Flags for allocators.
/**
* GstAllocator:
- * @mini_object: parent structure
+ * @object: parent structure
* @mem_type: the memory type this allocator provides
* @mem_map: the implementation of the GstMemoryMapFunction
* @mem_unmap: the implementation of the GstMemoryUnmapFunction
- * @mem_free: the implementation of the GstMemoryFreeFunction
* @mem_copy: the implementation of the GstMemoryCopyFunction
* @mem_share: the implementation of the GstMemoryShareFunction
* @mem_is_span: the implementation of the GstMemoryIsSpanFunction
GstMemoryShareFunction mem_share;
GstMemoryIsSpanFunction mem_is_span;
+ /*< private >*/
gpointer _gst_reserved[GST_PADDING];
- /*< private >*/
GstAllocatorPrivate *priv;
};
/* allocating memory blocks */
GstMemory * gst_allocator_alloc (GstAllocator * allocator, gsize size,
GstAllocationParams *params);
-void gst_allocator_free (GstAllocator * allocator, GstMemory *mem);
+void gst_allocator_free (GstAllocator * allocator, GstMemory *memory);
GstMemory * gst_memory_new_wrapped (GstMemoryFlags flags, gpointer data, gsize maxsize,
gsize offset, gsize size, gpointer user_data,