EGLImage.fromDmabuf

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.GLContext

a #GstGLContext (must be an EGL context)

dmabuf int

the DMA-Buf file descriptor

inInfo gstvideo.video_info.VideoInfo

the #GstVideoInfo in dmabuf

plane int

the plane in in_info to create and #GstEGLImage for

offset size_t

the byte-offset in the data

Return Value

Type: gstglegl.eglimage.EGLImage

a #GstEGLImage wrapping dmabuf or null on failure