Defines and manages image objects.
NvMediaImage objects are video RAM surfaces storing YUV, RGBA or RAW data. They can store one or more images depending on the class. NvMediaImage objects are created with NvMediaImageCreateNew() or NvMediaImageCreateFromNvSciBuf() and destroyed with NvMediaImageDestroy().
◆ NVMEDIA_IMAGE_TIMEOUT_INFINITE
#define NVMEDIA_IMAGE_TIMEOUT_INFINITE |
◆ NVMEDIA_MAX_IMAGE_GROUP_SIZE
#define NVMEDIA_MAX_IMAGE_GROUP_SIZE |
Maximum number of images in an image group.
Definition at line 60 of file nvmedia_image.h.
◆ NvMediaImage
◆ NvMediaImageCreateNew()
Allocates an image object.
Upon creation, the contents are undefined.
- Parameters
-
[in] | device | The NvMediaDevice. |
[in] | type | Surface format type obtained by NvMediaSurfaceFormatGetType(). |
[in] | attrs | An array of surface alloc attributes for surface creation. |
[in] | numAttrs | Number of attributes in attrs. |
[in] | flags | Flags for module hints (reserved for future use). |
- Returns
- The new image's handle if the call is successful, or NULL otherwise.
◆ NvMediaImageDestroy()
◆ NvMediaImageGetVersion()
Gets the version of the NvMedia Image library.
- Parameters
-
[in] | version | A pointer to an NvMediaVersion structure belonging to the client. It should be a valid non-null pointer. |
- Returns
- A status code; NVMEDIA_STATUS_OK if the call was successful, or NVMEDIA_STATUS_BAD_PARAMETER if version is an invalid pointer.