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

_cPtr
void* _cPtr(Flag!"Dup" dup)
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.

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

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

Get context field.

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

Set context field.

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 mem field.

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

Static functions

_getGType
GType _getGType()
alloc
gstgl.glbase_memory.GLBaseMemory alloc(gstgl.glbase_memory_allocator.GLBaseMemoryAllocator allocator, gstgl.glallocation_params.GLAllocationParams params)
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

_getGType
GType _getGType()

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.