mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
glmemory: document gst_gl_memory_init
This commit is contained in:
parent
c870a9cdd5
commit
2c5ae0c784
1 changed files with 14 additions and 1 deletions
|
@ -260,6 +260,19 @@ _gl_tex_create (GstGLMemory * gl_mem, GError ** error)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gst_gl_memory_init:
|
||||||
|
* @mem: the #GstGLBaseMemory to initialize
|
||||||
|
* @allocator: the #GstAllocator to initialize with
|
||||||
|
* @parent: (allow-none): the parent #GstMemory to initialize with
|
||||||
|
* @context: the #GstGLContext to initialize with
|
||||||
|
* @params: (allow-none): the @GstAllocationParams to initialize with
|
||||||
|
* @size: the number of bytes to be allocated
|
||||||
|
* @notify: (allow-none): a #GDestroyNotify
|
||||||
|
* @user_data: (allow-none): user data to call @notify with
|
||||||
|
*
|
||||||
|
* Initializes @mem with the required parameters
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
gst_gl_memory_init (GstGLMemory * mem, GstAllocator * allocator,
|
gst_gl_memory_init (GstGLMemory * mem, GstAllocator * allocator,
|
||||||
GstMemory * parent, GstGLContext * context, GstGLTextureTarget target,
|
GstMemory * parent, GstGLContext * context, GstGLTextureTarget target,
|
||||||
|
@ -704,7 +717,7 @@ static GstMemory *
|
||||||
_gl_tex_alloc (GstAllocator * allocator, gsize size,
|
_gl_tex_alloc (GstAllocator * allocator, gsize size,
|
||||||
GstAllocationParams * params)
|
GstAllocationParams * params)
|
||||||
{
|
{
|
||||||
g_warning ("Subclass needs to override GstAllocatorClass::alloc");
|
g_warning ("Use gst_gl_base_memory_alloc to allocate from this allocator");
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue