Top Description Fields Constructors Methods
org.lwjgl.egl

public Class NVStreamMetadata

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Native bindings to the NV_stream_metadata extension.

Application suites which make use of streams to transmit images may need to communicate additional data between the producer and consumer, synchronized with the frame updates. This data may change infrequently, such as a movie title and track number to be displayed to the user, or every frame, such as a focal length and exposure time used to process the image. Transmitting this data outside the scope of the stream may be inconvenient, particularly in the case of cross-process streams. But the nature of the data is highly application-dependent, so it is not feasible for an EGL implementation to define specific extensions for a broad range of application data.

This extension provides a means for an application (or application suite in the cross-process case) to associate arbitrary metadata with a stream. Multiple metadata fields are available, allowing them to be updated and used independently by separate subcomponents of producers and consumers, respectively. The format of the data is determined by the application, which is responsible for writing and reading it correctly.

Requires KHR_stream.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
EGL_METADATA0_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
EGL_METADATA0_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
EGL_METADATA1_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
EGL_METADATA1_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
EGL_METADATA2_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
EGL_METADATA2_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
EGL_METADATA3_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
EGL_METADATA3_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean
eglQueryDisplayAttribNV(long dpy, int attribute, PointerBuffer value)

public static boolean
eglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, ByteBuffer data)

public static boolean
eglSetStreamMetadataNV(long dpy, long stream, int n, int offset, ByteBuffer data)

public static int
neglQueryDisplayAttribNV(long dpy, int attribute, long value)

public static int
neglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, int size, long data)

public static int
neglSetStreamMetadataNV(long dpy, long stream, int n, int offset, int size, long data)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EGL_CONSUMER_METADATA_NVback to summary
public static final int EGL_CONSUMER_METADATA_NV

Accepted as name by QueryStreamMetadataNV.

EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NVback to summary
public static final int EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV

Accepted as attribute by QueryDisplayAttribNV.

EGL_MAX_STREAM_METADATA_BLOCKS_NVback to summary
public static final int EGL_MAX_STREAM_METADATA_BLOCKS_NV

Accepted as attribute by QueryDisplayAttribNV.

EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NVback to summary
public static final int EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV

Accepted as attribute by QueryDisplayAttribNV.

EGL_METADATA0_SIZE_NVback to summary
public static final int EGL_METADATA0_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_METADATA0_TYPE_NVback to summary
public static final int EGL_METADATA0_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_METADATA1_SIZE_NVback to summary
public static final int EGL_METADATA1_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_METADATA1_TYPE_NVback to summary
public static final int EGL_METADATA1_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_METADATA2_SIZE_NVback to summary
public static final int EGL_METADATA2_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_METADATA2_TYPE_NVback to summary
public static final int EGL_METADATA2_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_METADATA3_SIZE_NVback to summary
public static final int EGL_METADATA3_SIZE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_METADATA3_TYPE_NVback to summary
public static final int EGL_METADATA3_TYPE_NV

Accepted in attrib_list by CreateStreamKHR and as attribute by QueryStreamKHR.

EGL_PENDING_METADATA_NVback to summary
public static final int EGL_PENDING_METADATA_NV

Accepted as name by QueryStreamMetadataNV.

EGL_PRODUCER_METADATA_NVback to summary
public static final int EGL_PRODUCER_METADATA_NV

Accepted as name by QueryStreamMetadataNV.

Constructor Detail

NVStreamMetadataback to summary
protected NVStreamMetadata()

Method Detail

eglQueryDisplayAttribNVback to summary
public static boolean eglQueryDisplayAttribNV(long dpy, int attribute, PointerBuffer value)
Annotations
@NativeType:EGLBoolean
eglQueryStreamMetadataNVback to summary
public static boolean eglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, ByteBuffer data)
Annotations
@NativeType:EGLBoolean
eglSetStreamMetadataNVback to summary
public static boolean eglSetStreamMetadataNV(long dpy, long stream, int n, int offset, ByteBuffer data)
Annotations
@NativeType:EGLBoolean
neglQueryDisplayAttribNVback to summary
public static int neglQueryDisplayAttribNV(long dpy, int attribute, long value)
neglQueryStreamMetadataNVback to summary
public static int neglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, int size, long data)
neglSetStreamMetadataNVback to summary
public static int neglSetStreamMetadataNV(long dpy, long stream, int n, int offset, int size, long data)