GstGLBuffer
GstGLBuffer is a GstMemory subclass providing support for the mapping of GL buffers.
Data is uploaded or downloaded from the GPU as is necessary.
GstGLBuffer
Represents information about a GL buffer
Members
mem
(GstGLBaseMemory)
–
the parent object
id
(guint)
–
the buffer id for this memory
target
(guint)
–
the OpenGL target of this texture for binding purposes
usage_hints
(guint)
–
the OpenGL usage hints this buffer was created with
Functions
gst_gl_buffer_init_once
gst_gl_buffer_init_once ()
Initializes the GL Buffer allocator. It is safe to call this function multiple times. This must be called before any other GstGLBuffer operation.
Since : 1.8
GstGLBufferAllocationParams
Members
parent
(GstGLAllocationParams)
–
parent object
gl_target
(guint)
–
the OpenGL target to bind the buffer to
gl_usage
(guint)
–
the OpenGL usage hint to create the buffer with
Constructors
gst_gl_buffer_allocation_params_new
GstGLBufferAllocationParams * gst_gl_buffer_allocation_params_new (GstGLContext * context, gsize alloc_size, const GstAllocationParams * alloc_params, guint gl_target, guint gl_usage)
Parameters:
context
–
alloc_size
–
the size in bytes to allocate
alloc_params
(
[allow-none])
–
the GstAllocationParams for tex_id
gl_target
–
the OpenGL target to allocate
gl_usage
–
the OpenGL usage hint to allocate with
a new GstGLBufferAllocationParams for allocating OpenGL buffer objects
Since : 1.8
GstGLBufferAllocator
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstAllocator ╰──GstGLBaseMemoryAllocator ╰──GstGLBufferAllocator
Opaque GstGLBufferAllocator struct
Members
parent
(GstGLBaseMemoryAllocator)
–
Class structure
GstGLBufferAllocatorClass
The GstGLBufferAllocatorClass only contains private data
Fields
parent_class
(GstGLBaseMemoryAllocatorClass)
–
Functions
gst_is_gl_buffer
gboolean gst_is_gl_buffer (GstMemory * mem)
Parameters:
mem
–
whether the memory at mem is a GstGLBuffer
Since : 1.8
Function Macros
Constants
The results of the search are