Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Variables

Functions

Variables

BUFFER_POOL_OPTION_GL_SYNC_META: string

An option that can be activated on bufferpools to request OpenGL synchronization metadata on buffers from the pool.

BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D: string

String used for %GST_GL_TEXTURE_TARGET_2D as a #GstBufferPool pool option

BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES: string

String used for %GST_GL_TEXTURE_TARGET_EXTERNAL_OES as a #GstBufferPool pool option

BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE: string

String used for %GST_GL_TEXTURE_TARGET_RECTANGLE as a #GstBufferPool pool option

CAPS_FEATURE_MEMORY_GL_BUFFER: string

Name of the caps feature indicating the use of GL buffers

CAPS_FEATURE_MEMORY_GL_MEMORY: string

Name of the caps feature for indicating the use of #GstGLMemory

GL_ALLOCATION_PARAMS_ALLOC_FLAG_ALLOC: number

GL Allocation flag indicating that the implementation should allocate the necessary resources.

GL_ALLOCATION_PARAMS_ALLOC_FLAG_BUFFER: number

GL allocation flag indicating the allocation of a GL buffer.

GL_ALLOCATION_PARAMS_ALLOC_FLAG_USER: number

Values >= than #GST_GL_ALLOCATION_PARAMS_ALLOC_FLAG_USER can be used for user-defined purposes.

GL_ALLOCATION_PARAMS_ALLOC_FLAG_VIDEO: number

GL allocation flag indicating the allocation of 2D video frames

GL_ALLOCATION_PARAMS_ALLOC_FLAG_WRAP_GPU_HANDLE: number

GL Allocation flag for using the provided GPU handle as storage.

GL_ALLOCATION_PARAMS_ALLOC_FLAG_WRAP_SYSMEM: number

GL Allocation flag for using the provided system memory data as storage.

GL_API_GLES1_NAME: string

The name for %GST_GL_API_GLES1 used in various places

GL_API_GLES2_NAME: string

The name for %GST_GL_API_GLES2 used in various places

GL_API_OPENGL3_NAME: string

The name for %GST_GL_API_OPENGL3 used in various places

GL_API_OPENGL_NAME: string

The name for %GST_GL_API_OPENGL used in various places

GL_BASE_MEMORY_ALLOCATOR_NAME: string

The name of the GL buffer allocator

GL_BUFFER_ALLOCATOR_NAME: string

The name of the GL buffer allocator

GL_COLOR_CONVERT_FORMATS: string

The currently supported formats that can be converted

GL_COLOR_CONVERT_VIDEO_CAPS: string

The currently supported #GstCaps that can be converted

GL_CONFIG_STRUCTURE_NAME: string

The canonical name of a #GstStructure that contains a configuration for a #GstGLContext.

GL_CONTEXT_TYPE_CGL: string
GL_CONTEXT_TYPE_EAGL: string
GL_CONTEXT_TYPE_EGL: string
GL_CONTEXT_TYPE_GLX: string
GL_CONTEXT_TYPE_WGL: string
GL_DISPLAY_CONTEXT_TYPE: string

The name used in #GstContext queries for requesting a #GstGLDisplay

GL_MEMORY_ALLOCATOR_NAME: string

The name of the GL memory allocator

GL_MEMORY_PBO_ALLOCATOR_NAME: string

The name of the GL Memory PBO allocator

GL_MEMORY_VIDEO_FORMATS_STR: string

List of video formats that are supported by #GstGLMemory

GL_RENDERBUFFER_ALLOCATOR_NAME: string

The name of the GL renderbuffer allocator

GL_TEXTURE_TARGET_2D_STR: string

String used for %GST_GL_TEXTURE_TARGET_2D in things like caps values

GL_TEXTURE_TARGET_EXTERNAL_OES_STR: string

String used for %GST_GL_TEXTURE_TARGET_EXTERNAL_OES in things like caps values

GL_TEXTURE_TARGET_RECTANGLE_STR: string

String used for %GST_GL_TEXTURE_TARGET_RECTANGLE in things like caps values

MAP_GL: number

Flag indicating that we should map the GL object instead of to system memory.

Combining #GST_MAP_GL with #GST_MAP_WRITE has the same semantics as though you are writing to OpenGL. Conversely, combining #GST_MAP_GL with #GST_MAP_READ has the same semantics as though you are reading from OpenGL.

Functions

  • gl_base_memory_error_quark(): Quark
  • gl_base_memory_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

  • gl_buffer_init_once(): void
  • Initializes the GL Buffer allocator. It is safe to call this function multiple times. This must be called before any other #GstGLBuffer operation.

    Returns void

  • gl_check_extension(name: string, ext: string): boolean
  • gl_context_error_quark(): Quark
  • Perform the steps necessary for retrieving a #GstGLDisplay and (optionally) an application provided #GstGLContext from the surrounding elements or from the application using the #GstContext mechanism.

    If the contents of display_ptr or other_context_ptr are not %NULL, then no #GstContext query is necessary for #GstGLDisplay or #GstGLContext retrieval or is performed.

    This performs #GstContext queries (if necessary) for a winsys display connection with %GST_GL_DISPLAY_CONTEXT_TYPE, "gst.x11.display.handle", and "GstWaylandDisplayHandleContextType" stopping after the first successful retrieval.

    This also performs a #GstContext query (if necessary) for an optional application provided #GstGLContext using the name "gst.gl.app_context". The returned #GstGLContext will be shared with a GStreamer created OpenGL context.

    Parameters

    • element: Gst.Element

      the #GstElement running the query

    • display_ptr: GLDisplay

      the resulting #GstGLDisplay

    • other_context_ptr: GstGL.GLContext

      the resulting #GstGLContext

    Returns [boolean, GLDisplay, GstGL.GLContext]

  • Get the unsized format and type from format for usage in glReadPixels, glTex{Sub}Image*, glTexImage* and similar functions.

    Parameters

    • format: GLFormat

      the sized internal #GstGLFormat

    Returns [GLFormat, number]

  • gl_format_type_n_bytes(format: number, type: number): number
  • Retrieves the stored 4x4 affine transformation matrix stored in meta in NDC coordinates. if meta is NULL, an identity matrix is returned.

    NDC is a left-handed coordinate system

    • x - [-1, 1] - +ve X moves right
    • y - [-1, 1] - +ve Y moves up
    • z - [-1, 1] - +ve Z moves into

    Parameters

    Returns number[]

  • Retrieve the size in bytes of a video plane of data with a certain alignment

    Parameters

    • info: VideoInfo

      a #GstVideoInfo

    • align: VideoAlignment

      a #GstVideoAlignment or %NULL

    • plane: number

      plane number in info to retrieve the data size of

    Returns number

  • Helper function for implementing #GstElementClass.set_context() in OpenGL capable elements.

    Retrieve's the #GstGLDisplay or #GstGLContext in context and places the result in display or other_context respectively.

    Parameters

    Returns [boolean, GLDisplay, GstGL.GLContext]

  • gl_memory_init_once(): void
  • Initializes the GL Base Texture allocator. It is safe to call this function multiple times. This must be called before any other GstGLMemory operation.

    Returns void

  • gl_memory_pbo_init_once(): void
  • gl_multiply_matrix4(a: number[], b: number[]): number[]
  • Multiplies two 4x4 matrices, a and b, and stores the result, a 2-dimensional array of #gfloat, in result.

    Parameters

    • a: number[]

      a 2-dimensional 4x4 array of #gfloat

    • b: number[]

      another 2-dimensional 4x4 array of #gfloat

    Returns number[]

  • gl_platform_from_string(platform_s: string): GLPlatform
  • gl_platform_to_string(platform: GLPlatform): string
  • Performs a GST_QUERY_CONTEXT query of type "gst.gl.local_context" on all #GstPads in element of direction for the local OpenGL context used by GStreamer elements.

    Parameters

    • element: Gst.Element

      a #GstElement to query from

    • direction: Gst.PadDirection

      the #GstPadDirection to query

    • context_ptr: GstGL.GLContext

      location containing the current and/or resulting #GstGLContext

    Returns [boolean, GstGL.GLContext]

  • gl_renderbuffer_init_once(): void
  • Initializes the GL Base Texture allocator. It is safe to call this function multiple times. This must be called before any other GstGLRenderbuffer operation.

    Returns void

  • gl_sized_gl_format_from_gl_format_type(context: GstGL.GLContext, format: number, type: number): number
  • gl_stereo_downmix_mode_get_type(): GType
  • gl_sync_meta_api_get_type(): GType
  • gl_value_set_texture_target_from_mask(value: any, target_mask: GLTextureTarget): boolean
  • A mask is a bitwise OR of (1 << target) where target is a valid #GstGLTextureTarget

    Parameters

    • value: any

      an uninitialized #GValue

    • target_mask: GLTextureTarget

      a bitwise mask of #GstGLTextureTarget's

    Returns boolean

  • gl_window_error_quark(): Quark
  • glsl_error_quark(): Quark
  • glsl_profile_to_string(profile: GLSLProfile): string | null
  • Note: this function first searches the first 1 kilobytes for a #version preprocessor directive and then executes gst_glsl_version_profile_from_string().

    Parameters

    • s: string

      string to search for a valid #version string

    Returns [boolean, GLSLVersion, GLSLProfile]

  • glsl_version_to_string(version: GLSLVersion): string | null
  • is_gl_base_memory(mem: Memory): boolean
  • is_gl_buffer(mem: Memory): boolean
  • is_gl_memory(mem: Memory): boolean
  • is_gl_memory_pbo(mem: Memory): boolean
  • is_gl_renderbuffer(mem: Memory): boolean

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