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

a GstGLContext

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

Returns

a new GstGLBufferAllocationParams for allocating OpenGL buffer objects

Since : 1.8


GstGLBufferAllocator

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstAllocator
                ╰──GstGLBaseMemoryAllocator
                    ╰──GstGLBufferAllocator

Opaque GstGLBufferAllocator struct

Members

No description available

Class structure

GstGLBufferAllocatorClass

The GstGLBufferAllocatorClass only contains private data

Fields
parent_class (GstGLBaseMemoryAllocatorClass) –
No description available

Functions

gst_is_gl_buffer

gboolean
gst_is_gl_buffer (GstMemory * mem)

Parameters:

mem

a GstMemory

Returns

whether the memory at mem is a GstGLBuffer

Since : 1.8


Function Macros

GST_GL_BUFFER_ALLOCATOR_CAST

#define GST_GL_BUFFER_ALLOCATOR_CAST(obj)            ((GstGLBufferAllocator *)(obj))

Constants

GST_CAPS_FEATURE_MEMORY_GL_BUFFER

#define GST_CAPS_FEATURE_MEMORY_GL_BUFFER "memory:GLBuffer"

Name of the caps feature indicating the use of GL buffers


GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_BUFFER

#define GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_BUFFER (1 << 4)

GL allocation flag indicating the allocation of a GL buffer.


GST_GL_BUFFER_ALLOCATOR_NAME

#define GST_GL_BUFFER_ALLOCATOR_NAME   "GLBuffer"

The name of the GL buffer allocator


The results of the search are