gstgl.glbase_memory
Module for [GLBaseMemory] class
class GLBaseMemory
Types 1
classGLBaseMemory : gobject.boxed.Boxed
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.
Methods
gstgl.glcontext.GLContext context() @property nothrowGet `context` field. Returns: the #GstGLContext to use for GL operationsvoid context(gstgl.glcontext.GLContext propval) @property nothrowSet `context` field. Params: propval = the #GstGLContext to use for GL operationsbool allocData() nothrowNote: 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. Returns: ...void init_(gst.allocator.Allocator allocator, gst.memory.Memory parent, gstgl.glcontext.GLContext context, gst.allocation_params.AllocationParams params, size_t size, void * userData = null, glib.types.DestroyNotify notify = null) nothrowInitializes mem with the required parametersbool memcpy(gstgl.glbase_memory.GLBaseMemory dest, ptrdiff_t offset, ptrdiff_t size) nothrowgstgl.glbase_memory.GLBaseMemory alloc(gstgl.glbase_memory_allocator.GLBaseMemoryAllocator allocator, gstgl.glallocation_params.GLAllocationParams params) static nothrowvoid initOnce() static nothrowInitializes the GL Base Memory allocator. It is safe to call this function multiple times. This must be called before any other GstGLBaseMemory operation.Constructors
this(gstgl.glcontext.GLContext context = gstgl.glcontext.GLContext.init, gst.types.MapFlags mapFlags = gst.types.MapFlags.init, int mapCount = int.init, int glMapCount = int.init)Create a `glbase_memory.GLBaseMemory` boxed type. Params: context = the #GstGLContext to use for GL operations mapFlags = mapCount = glMapCount =