Gjsify LogoGjsify Logo

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.

record

Hierarchy

  • GLBaseMemory

Index

Constructors

Properties

context: GstGL.GLContext

the #GstGLContext to use for GL operations

field
data: object
gl_map_count: number
lock: GLib.Mutex
map_count: number
map_flags: Gst.MapFlags
mem: Memory

the parent object

field
query: GLQuery
name: string

Methods

  • alloc_data(): boolean
  • 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

  • Initializes mem with the required parameters

    Parameters

    • allocator: Gst.Allocator

      the #GstAllocator to initialize with

    • parent: Memory

      the parent #GstMemory to initialize with

    • context: GstGL.GLContext

      the #GstGLContext to initialize with

    • params: AllocationParams

      the GstAllocationParams to initialize with

    • size: number

      the number of bytes to be allocated

    • user_data: object

      user data to call notify with

    • notify: GLib.DestroyNotify

      a #GDestroyNotify

    Returns void

  • memcpy(dest: GLBaseMemory, offset: number, size: number): boolean
  • init_once(): void
  • 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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method