Gjsify LogoGjsify Logo

Index

Variables

GL_DISPLAY_EGL_NAME: string
GL_MEMORY_EGL_ALLOCATOR_NAME: string

The name of the GL Memory EGL allocator

Functions

  • egl_get_error_string(err: number): string
  • Creates an EGL image that imports the dmabuf FD. The dmabuf data is passed as RGBA data. Shaders later take this "RGBA" data and convert it from its true format (described by in_info) to actual RGBA output. For example, with I420, three EGL images are created, one for each plane, each EGL image with a single-channel R format. With NV12, two EGL images are created, one with R format, one with RG format etc.

    Parameters

    • context: GstGL.GLContext

      a #GstGLContext (must be an EGL context)

    • dmabuf: number

      the DMA-Buf file descriptor

    • in_info: VideoInfo

      the #GstVideoInfo in dmabuf

    • plane: number

      the plane in in_info to create and #GstEGLImage for

    • offset: number

      the byte-offset in the data

    Returns EGLImage

  • Creates an EGL image that imports the dmabuf FD. The dmabuf data is passed directly as the format described in in_info. This is useful if the hardware is capable of performing color space conversions internally. The appropriate DRM format is picked, and the EGL image is created with this DRM format.

    Another notable difference to gst_egl_image_from_dmabuf() is that this function creates one EGL image for all planes, not one for a single plane.

    Parameters

    • context: GstGL.GLContext

      a #GstGLContext (must be an EGL context)

    • fd: number

      Array of DMABuf file descriptors

    • offset: number

      Array of offsets, relative to the DMABuf

    • in_info: VideoInfo

      the #GstVideoInfo

    Returns EGLImage

  • Creates an EGL image that imports the dmabuf FD. The dmabuf data is passed directly as the format described in in_info. This is useful if the hardware is capable of performing color space conversions internally. The appropriate DRM format is picked, and the EGL image is created with this DRM format.

    Another notable difference to gst_egl_image_from_dmabuf() is that this function creates one EGL image for all planes, not one for a single plane.

    Parameters

    • context: GstGL.GLContext

      a #GstGLContext (must be an EGL context)

    • fd: number

      Array of DMABuf file descriptors

    • offset: number

      Array of offsets, relative to the DMABuf

    • in_info: VideoInfo

      the #GstVideoInfo

    • target: GLTextureTarget

      GL texture target this GstEGLImage is intended for

    Returns EGLImage

  • gl_memory_egl_init_once(): void
  • Initializes the GL Memory allocator. It is safe to call this function multiple times. This must be called before any other GstGLMemoryEGL operation.

    Returns void

  • is_gl_memory_egl(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