EGLImage.fromDmabuf

gstglegl.eglimage.EGLImage fromDmabuf(gstgl.glcontext.GLContext context, int dmabuf, gstvideo.video_info.VideoInfo inInfo, int plane, size_t offset)

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

contexta #GstGLContext (must be an EGL context)
dmabufthe DMA-Buf file descriptor
inInfothe #GstVideoInfo in dmabuf
planethe plane in in_info to create and #GstEGLImage for
offsetthe byte-offset in the data

Returns

a #GstEGLImage wrapping dmabuf or null on failure