NVIDIA DRIVE OS Linux SDK API Reference

5.1.9.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvmedia_eglstream.h File Reference

Detailed Description

NVIDIA Media Interface: EGL Stream

Description: This file contains the EGL Stream API.

Definition in file nvmedia_eglstream.h.

Go to the source code of this file.

Data Structures

struct  NvMediaEGLStreamProducer
 A handle representing an EGL stream producer object. More...
 
struct  NvMediaEglStreamProducerAttributes
 Holds the attributes for an EGL stream producer. More...
 
struct  NvMediaEGLStreamConsumer
 A handle representing an EGL stream consumer object. More...
 

Macros

#define NVMEDIA_EGLSTREAM_VERSION_MAJOR   1
 Major Version number. More...
 
#define NVMEDIA_EGLSTREAM_VERSION_MINOR   3
 Minor Version number. More...
 
#define NVMEDIA_EGL_STREAM_TIMEOUT_INFINITE
 Infinite time-out for NvMedia EGL functions. More...
 
#define NVMEDIA_EGL_STREAM_PRODUCER_ATTRIBUTE_MULTISEND
 Defines the multiSend attribute. More...
 
#define NvMediaVideoSurfaceStreamProducerCreate   NvMediaEglStreamProducerCreate
 Deprecated function for legacy applications. More...
 
#define NvMediaVideoSurfaceStreamProducerDestroy   NvMediaEglStreamProducerDestroy
 Deprecated function for legacy applications. More...
 
#define NvMediaPostSurface   NvMediaEglStreamProducerPostSurface
 Deprecated function for legacy applications. More...
 
#define NvMediaGetSurface   NvMediaEglStreamProducerGetSurface
 Deprecated function for legacy applications. More...
 
#define NvMediaEglConsumerCreate   NvMediaEglStreamConsumerCreate
 Deprecated function for legacy applications. More...
 
#define NvMediaEglConsumerDestroy   NvMediaEglStreamConsumerDestroy
 Deprecated function for legacy applications. More...
 
#define NvMediaEglConsumerSurfaceAcquire   NvMediaEglStreamConsumerAcquireSurface
 Deprecated function for legacy applications. More...
 
#define NvMediaEglConsumerSurfaceRelease   NvMediaEglStreamConsumerReleaseSurface
 Deprecated function for legacy applications. More...
 

Typedefs

typedef struct
NvMediaEGLStreamProducer 
NvMediaEGLStreamProducer
 A handle representing an EGL stream producer object. More...
 
typedef struct
NvMediaEGLStreamConsumer 
NvMediaEGLStreamConsumer
 A handle representing an EGL stream consumer object. More...
 

Functions

NvMediaStatus NvMediaEglStreamGetVersion (NvMediaVersion *version)
 Get the version compatibility for the NvMedia EGLStream library. More...
 
NvMediaEGLStreamProducerNvMediaEglStreamProducerCreate (NvMediaDevice *device, EGLDisplay eglDisplay, EGLStreamKHR eglStream, NvMediaSurfaceType type, EGLint width, EGLint height)
 Creates an EGL stream producer object. More...
 
void NvMediaEglStreamProducerSetAttributes (NvMediaEGLStreamProducer *producer, uint32_t attributeMask, NvMediaEglStreamProducerAttributes *attributes)
 Changes attributes of an NvMediaEGLStreamProducer. More...
 
void NvMediaEglStreamProducerDestroy (NvMediaEGLStreamProducer *producer)
 Destroys an EGL stream producer object. More...
 
NvMediaStatus NvMediaEglStreamProducerPostSurface (NvMediaEGLStreamProducer *producer, NvMediaVideoSurface *surface, NvMediaTime *timeStamp)
 Posts a surface to be sent to an EGL stream connection. More...
 
NvMediaStatus NvMediaEglStreamProducerGetSurface (NvMediaEGLStreamProducer *producer, NvMediaVideoSurface **surface, uint32_t millisecondTimeout)
 Retrieves a surface that was sent to an EGL stream using the NvMediaEglStreamProducerPostSurface function and the EGL stream has processed and released it. More...
 
NvMediaEGLStreamConsumerNvMediaEglStreamConsumerCreate (NvMediaDevice *device, EGLDisplay dpy, EGLStreamKHR stream, NvMediaSurfaceType type)
 Creates an EGL stream consumer object. More...
 
void NvMediaEglStreamConsumerDestroy (NvMediaEGLStreamConsumer *consumer)
 Destroys an EGL stream consumer object. More...
 
NvMediaStatus NvMediaEglStreamConsumerAcquireSurface (NvMediaEGLStreamConsumer *consumer, NvMediaVideoSurface **surface, uint32_t millisecondTimeout, NvMediaTime *timeStamp)
 Acquires a surface that was sent by an EGL stream producer. More...
 
NvMediaStatus NvMediaEglStreamConsumerReleaseSurface (NvMediaEGLStreamConsumer *consumer, NvMediaVideoSurface *surface)
 Releases a surface that was received by the NvMediaEglStreamConsumerAcquireSurface function. More...
 
NvMediaStatus NvMediaEglStreamProducerPostImage (NvMediaEGLStreamProducer *producer, NvMediaImage *image, NvMediaTime *timeStamp)
 Posts an image to be sent to an EGL stream connection. More...
 
NvMediaStatus NvMediaEglStreamProducerGetImage (NvMediaEGLStreamProducer *producer, NvMediaImage **image, uint32_t millisecondTimeout)
 Retrieves an image that was sent to an EGL stream using the NvMediaEglStreamProducerPostImage function and the EGL stream has processed and released it. More...
 
NvMediaStatus NvMediaEglStreamConsumerAcquireImage (NvMediaEGLStreamConsumer *consumer, NvMediaImage **image, uint32_t millisecondTimeout, NvMediaTime *timeStamp)
 Acquire an image that was sent by an EGL stream producer. More...
 
NvMediaStatus NvMediaEglStreamConsumerReleaseImage (NvMediaEGLStreamConsumer *consumer, NvMediaImage *image)
 Releases an image that was received by the NvMediaEglStreamConsumerAcquireImage function. More...
 
NvMediaStatus NvMediaEglStreamProducerPostMetaData (NvMediaEGLStreamProducer *producer, uint32_t blockIdx, const void *dataBuf, uint32_t offset, uint32_t size)
 Posts a block of metadata to be sent to an EGL stream connection. More...
 
NvMediaStatus NvMediaEglStreamConsumerAcquireMetaData (NvMediaEGLStreamConsumer *consumer, uint32_t blockIdx, void *dataBuf, uint32_t offset, uint32_t size)
 Acquires specified metadata block that was sent by an EGL stream producer. More...