Top Description Fields Constructors Methods
org.lwjgl.egl

public Class NVStreamConsumerGLTextureYUV

extends Object
Class Inheritance
Imports
javax.annotation.*, org.lwjgl.*, org.lwjgl.system.*

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

Field Summary

Modifier and TypeField and Description
public static final int
EGL_YUV_BUFFER_EXT

Accepted as value for COLOR_BUFFER_TYPE attribute in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

public static final int
EGL_YUV_NUMBER_OF_PLANES_EXT

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

public static final int
EGL_YUV_PLANE0_TEXTURE_UNIT_NV

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

public static final int
EGL_YUV_PLANE1_TEXTURE_UNIT_NV

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

public static final int
EGL_YUV_PLANE2_TEXTURE_UNIT_NV

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean
eglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, PointerBuffer attrib_list)

public static int
neglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, long attrib_list)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_YUV_BUFFER_EXTback to summary
public static final int EGL_YUV_BUFFER_EXT

Accepted as value for COLOR_BUFFER_TYPE attribute in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

EGL_YUV_NUMBER_OF_PLANES_EXTback to summary
public static final int EGL_YUV_NUMBER_OF_PLANES_EXT

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

EGL_YUV_PLANE0_TEXTURE_UNIT_NVback to summary
public static final int EGL_YUV_PLANE0_TEXTURE_UNIT_NV

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

EGL_YUV_PLANE1_TEXTURE_UNIT_NVback to summary
public static final int EGL_YUV_PLANE1_TEXTURE_UNIT_NV

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

EGL_YUV_PLANE2_TEXTURE_UNIT_NVback to summary
public static final int EGL_YUV_PLANE2_TEXTURE_UNIT_NV

Accepted as attribute name in attrib_list by StreamConsumerGLTextureExternalAttribsNV.

Constructor Detail

NVStreamConsumerGLTextureYUVback to summary
protected NVStreamConsumerGLTextureYUV()

Method Detail

eglStreamConsumerGLTextureExternalAttribsNVback to summary
public static boolean eglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, PointerBuffer attrib_list)
Annotations
@NativeType:EGLBoolean
neglStreamConsumerGLTextureExternalAttribsNVback to summary
public static int neglStreamConsumerGLTextureExternalAttribsNV(long dpy, long stream, long attrib_list)