EGLImage

#GstEGLImage represents and holds an EGLImage handle.

A #GstEGLImage can be created from a dmabuf with gstglegl.eglimage.EGLImage.fromDmabuf, or gstglegl.eglimage.EGLImage.fromDmabufDirect, or #GstGLMemoryEGL provides a #GstAllocator to allocate EGLImage's bound to and OpenGL texture.

Constructors

this
this()

Create a eglimage.EGLImage boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
getImage
void* getImage()
self
EGLImage self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

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.

getGType
GType getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.