gstgl.glbase_memory

Module for [GLBaseMemory] class

Types 1

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
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
GLBaseMemory self()Returns `this`, for use in `with` statements.
gst.memory.Memory mem() @propertyGet `mem` field. Returns: the parent object
gstgl.glcontext.GLContext context() @propertyGet `context` field. Returns: the #GstGLContext to use for GL operations
void context(gstgl.glcontext.GLContext propval) @propertySet `context` field. Params: propval = the #GstGLContext to use for GL operations
void mapFlags(gst.types.MapFlags propval) @property
int mapCount() @property
void mapCount(int propval) @property
int glMapCount() @property
void glMapCount(int propval) @property
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. 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)Initializes mem with the required parameters
bool memcpy(gstgl.glbase_memory.GLBaseMemory dest, ptrdiff_t offset, ptrdiff_t size)
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.
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 =
this(void * ptr, Flag!"Take" take)