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
GLBaseMemory self()Returns `this`, for use in `with` statements.gstgl.glcontext.GLContext context() @propertyGet `context` field. Returns: the #GstGLContext to use for GL operationsvoid context(gstgl.glcontext.GLContext propval) @propertySet `context` field. Params: propval = the #GstGLContext to use for GL operationsgst.types.MapFlags mapFlags() @propertyvoid mapFlags(gst.types.MapFlags propval) @propertyint mapCount() @propertyvoid mapCount(int propval) @propertyint glMapCount() @propertyvoid glMapCount(int propval) @propertygstgl.glquery.GLQuery query() @propertybool 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 parametersbool memcpy(gstgl.glbase_memory.GLBaseMemory dest, ptrdiff_t offset, ptrdiff_t size)gstgl.glbase_memory.GLBaseMemory alloc(gstgl.glbase_memory_allocator.GLBaseMemoryAllocator allocator, gstgl.glallocation_params.GLAllocationParams params)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 =