Package org.lwjgl.egl

Class NVStreamMetadata


  • public class NVStreamMetadata
    extends java.lang.Object
    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.