Gjsify LogoGjsify Logo

#GstEGLImage represents and holds an EGLImage handle.

A #GstEGLImage can be created from a dmabuf with gst_egl_image_from_dmabuf(), or gst_egl_image_from_dmabuf_direct(), or #GstGLMemoryEGL provides a #GstAllocator to allocate EGLImage's bound to and OpenGL texture.

record

Hierarchy

  • EGLImage

Index

Constructors

Properties

name: string

Methods

  • exportDmabuf(fd: number, stride: number, offset: number): boolean
  • getImage(): object
  • 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

    • inInfo: 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

    • inInfo: 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

    • inInfo: VideoInfo

      the #GstVideoInfo

    • target: GLTextureTarget

      GL texture target this GstEGLImage is intended for

    Returns EGLImage

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