|
NVIDIA DRIVE OS Linux SDK API Reference
|
5.1.15.0 Release For Test and Development only
|
Go to the documentation of this file.
16 #ifndef NVMEDIA_IMAGE_H
17 #define NVMEDIA_IMAGE_H
38 #define NVMEDIA_IMAGE_VERSION_MAJOR (1u)
40 #define NVMEDIA_IMAGE_VERSION_MINOR (24u)
60 #define NVMEDIA_MAX_IMAGE_GROUP_SIZE (3u)
66 #define NVMEDIA_IMAGE_TIMEOUT_INFINITE (0xFFFFFFFFu)
97 #if (NV_IS_SAFETY == 0)
140 #if (NV_IS_SAFETY == 0)
239 uint8_t *embeddedBufTop,
240 uint32_t *embeddedBufTopSize,
241 uint8_t *embeddedBufBottom,
242 uint32_t *embeddedBufBottomSize
264 uint32_t millisecondWait,
307 #if (NV_IS_SAFETY == 0)
512 const uint32_t *srcPitches
580 const uint32_t *dstPitches
struct timespec NvMediaTime
Holds the media time in timespec format as defined by the POSIX specification.
@ NVMEDIA_IMAGE_ACCESS_READ
Specifies read access.
uint64_t NvMediaGlobalTime
Media global time, measured in microseconds.
NvMediaStatus NvMediaImageGetBits(const NvMediaImage *image, const NvMediaRect *srcRect, void **dstPntrs, const uint32_t *dstPitches)
Reads an NvMedia image and writes the content into a client memory buffer.
void NvMediaImageDestroy(const NvMediaImage *image)
Destroys an image object created by NvMediaImageCreateNew() or NvMediaImageCreateFromNvSciBuf().
void NvMediaImageUnlock(const NvMediaImage *image)
Unlocks an image.
NvMediaStatus NvMediaImagePutBits(NvMediaImage *image, const NvMediaRect *dstRect, void **srcPntrs, const uint32_t *srcPitches)
Reads a client memory buffer and writes the content into an NvMedia image surface.
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
NvMediaImageLockAccess
Specifies image lock access types.
#define NVMEDIA_MAX_IMAGE_GROUP_SIZE
Maximum number of images in an image group.
@ NVMEDIA_IMAGE_ACCESS_READ_WRITE
Specifies read/write access.
@ NVMEDIA_IMAGE_ACCESS_WRITE
Specifies write access.
NvMediaStatus NvMediaImageGetVersion(NvMediaVersion *version)
Gets the version of the NvMedia Image library.
#define NvMediaSurfaceType
Defines the set of NvMedia surface types.
NvMediaImage * NvMediaImageCreateNew(NvMediaDevice *device, NvMediaSurfaceType type, const NvMediaSurfAllocAttr *attrs, uint32_t numAttrs, uint32_t flags)
Allocates an image object.
NvMediaStatus
Defines all possible error codes.
NvMediaStatus NvMediaImageLock(const NvMediaImage *image, NvMediaImageLockAccess lockAccessType, NvMediaImageSurfaceMap *surfaceMap)
Locks an image and returns the associated mapped pointers to the image surface data.