Package org.lwjgl.egl
Class NVStreamConsumerGLTextureYUV
- java.lang.Object
-
- org.lwjgl.egl.NVStreamConsumerGLTextureYUV
-
public class NVStreamConsumerGLTextureYUV extends java.lang.Object
Native bindings to the NV_stream_consumer_gltexture_yuv extension.The EGL_KHR_stream_consumer_gltexture extension allows EGLStream frames to be latched to a GL texture for use in rendering. These frames are assumed to be stored in RGB format and accessed as such by shader programs. If the producer uses a different color space, the stream implementation must perform an implicit conversion.
In cases where the producer operates in a native YUV color space, it may be desirable for shaders to directly access the YUV components, without conversion. This extension adds a new variant of the function to bind GL textures as stream consumers which allows attributes to specify the color space.
Requires
EGL S.t
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
EGL_YUV_BUFFER_EXT
Accepted as value forCOLOR_BUFFER_TYPE
attribute inattrib_list
byStreamConsumerGLTextureExternalAttribsNV
.static int
EGL_YUV_NUMBER_OF_PLANES_EXT
EGL_YUV_PLANE0_TEXTURE_UNIT_NV
EGL_YUV_PLANE1_TEXTURE_UNIT_NV
EGL_YUV_PLANE2_TEXTURE_UNIT_NVAccepted as attribute name inattrib_list
byStreamConsumerGLTextureExternalAttribsNV
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
eglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, org.lwjgl.PointerBuffer attrib_list)
static int
neglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, long attrib_list)
-
-
-
Field Detail
-
EGL_YUV_PLANE0_TEXTURE_UNIT_NV, EGL_YUV_PLANE1_TEXTURE_UNIT_NV, EGL_YUV_PLANE2_TEXTURE_UNIT_NV, EGL_YUV_NUMBER_OF_PLANES_EXT
Accepted as attribute name inattrib_list
byStreamConsumerGLTextureExternalAttribsNV
.
-
EGL_YUV_BUFFER_EXT
Accepted as value forCOLOR_BUFFER_TYPE
attribute inattrib_list
byStreamConsumerGLTextureExternalAttribsNV
.
-
-
Method Detail
-
neglStreamConsumerGLTextureExternalAttribsNV
public static int neglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, long attrib_list)
-
eglStreamConsumerGLTextureExternalAttribsNV
public static boolean eglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, @Nullable org.lwjgl.PointerBuffer attrib_list)
-
-