GLBaseMemory

GstGLBaseMemory is a #GstMemory subclass providing the basis of support for the mapping of GL buffers.

Data is uploaded or downloaded from the GPU as is necessary.

Constructors

this
this(gstgl.glcontext.GLContext context, gst.types.MapFlags mapFlags, int mapCount, int glMapCount)

Create a glbase_memory.GLBaseMemory boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

allocData
bool allocData()

Note: only intended for subclass usage to allocate the system memory buffer on demand. If there is already a non-NULL data pointer in gl_mem->data, then this function imply returns TRUE.

cPtr
void* cPtr(Flag!"Dup" dup)
init_
void init_(gst.allocator.Allocator allocator, gst.memory.Memory parent, gstgl.glcontext.GLContext context, gst.allocation_params.AllocationParams params, size_t size, void* userData, glib.types.DestroyNotify notify)

Initializes mem with the required parameters

memcpy
bool memcpy(gstgl.glbase_memory.GLBaseMemory dest, ptrdiff_t offset, ptrdiff_t size)
self
GLBaseMemory self()

Returns this, for use in with statements.

Properties

context
gstgl.glcontext.GLContext context [@property getter]

Get field context.

context
gstgl.glcontext.GLContext context [@property setter]

Set field context.

gType
GType gType [@property getter]
glMapCount
int glMapCount [@property getter]
glMapCount
int glMapCount [@property setter]
lock
glib.mutex.Mutex lock [@property getter]
mapCount
int mapCount [@property getter]
mapCount
int mapCount [@property setter]
mapFlags
gst.types.MapFlags mapFlags [@property getter]
mapFlags
gst.types.MapFlags mapFlags [@property setter]
mem
gst.memory.Memory mem [@property getter]

Get field mem.

query
gstgl.glquery.GLQuery query [@property getter]

Static functions

alloc
gstgl.glbase_memory.GLBaseMemory alloc(gstgl.glbase_memory_allocator.GLBaseMemoryAllocator allocator, gstgl.glallocation_params.GLAllocationParams params)
getGType
GType getGType()
initOnce
void initOnce()

Initializes the GL Base Memory allocator. It is safe to call this function multiple times. This must be called before any other GstGLBaseMemory operation.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.