Class NVStreamMetadata
- java.lang.Object
-
- org.lwjgl.egl.NVStreamMetadata
-
public class NVStreamMetadata extends java.lang.ObjectNative 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
Fields Modifier and Type Field Description static intEGL_CONSUMER_METADATA_NVAccepted asnamebyQueryStreamMetadataNV.static intEGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV
EGL_MAX_STREAM_METADATA_BLOCKS_NV
EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NVAccepted asattributebyQueryDisplayAttribNV.static intEGL_METADATA0_SIZE_NV
EGL_METADATA0_TYPE_NV
EGL_METADATA1_SIZE_NV
EGL_METADATA1_TYPE_NV
EGL_METADATA2_SIZE_NV
EGL_METADATA2_TYPE_NV
EGL_METADATA3_SIZE_NV
EGL_METADATA3_TYPE_NVstatic intEGL_PENDING_METADATA_NV
EGL_PRODUCER_METADATA_NVAccepted asnamebyQueryStreamMetadataNV.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleaneglQueryDisplayAttribNV(long dpy, int attribute, org.lwjgl.PointerBuffer value)static booleaneglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, java.nio.ByteBuffer data)static booleaneglSetStreamMetadataNV(long dpy, long stream, int n, int offset, java.nio.ByteBuffer data)static intneglQueryDisplayAttribNV(long dpy, int attribute, long value)static intneglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, int size, long data)static intneglSetStreamMetadataNV(long dpy, long stream, int n, int offset, int size, long data)
-
-
-
Field Detail
-
EGL_MAX_STREAM_METADATA_BLOCKS_NV, EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV, EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV
Accepted asattributebyQueryDisplayAttribNV.
-
EGL_PRODUCER_METADATA_NV, EGL_CONSUMER_METADATA_NV, EGL_PENDING_METADATA_NV
Accepted asnamebyQueryStreamMetadataNV.
-
-
Method Detail
-
neglQueryDisplayAttribNV
public static int neglQueryDisplayAttribNV(long dpy, int attribute, long value)
-
eglQueryDisplayAttribNV
public static boolean eglQueryDisplayAttribNV(long dpy, int attribute, org.lwjgl.PointerBuffer value)
-
neglSetStreamMetadataNV
public static int neglSetStreamMetadataNV(long dpy, long stream, int n, int offset, int size, long data)
-
eglSetStreamMetadataNV
public static boolean eglSetStreamMetadataNV(long dpy, long stream, int n, int offset, java.nio.ByteBuffer data)
-
neglQueryStreamMetadataNV
public static int neglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, int size, long data)
-
eglQueryStreamMetadataNV
public static boolean eglQueryStreamMetadataNV(long dpy, long stream, int name, int n, int offset, java.nio.ByteBuffer data)
-
-