Class (GI Struct)

GstGL-1.0GstGLGLBaseMemory

GstGLBaseMemory is a Gst.Memory subclass providing the basis of support for the mapping of GL buffers.

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

Index
context: GstGL.GLContext
data: null
gl_map_count: number
map_count: number
map_flags: Gst.MapFlags
  • 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 boolean

    whether the system memory could be allocated

  • Parameters

    • dest: GLBaseMemory

      the destination GstGL.GLBaseMemory

    • offset: number | bigint

      the offset to start at

    • size: number | bigint

      the number of bytes to copy

    Returns boolean

    whether the copy succeeded.

    1.8

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

    Returns void

    1.8