16 #ifndef NVMEDIA_IMAGE_H
17 #define NVMEDIA_IMAGE_H
36 #define NVMEDIA_IMAGE_VERSION_MAJOR (1u)
38 #define NVMEDIA_IMAGE_VERSION_MINOR (21u)
58 #define NVMEDIA_MAX_IMAGE_GROUP_SIZE (3u)
64 #define NVMEDIA_IMAGE_TIMEOUT_INFINITE (0xFFFFFFFFu)
324 const uint32_t *srcPitches
392 const uint32_t *dstPitches
453 void *embeddedBufTop,
454 uint32_t *embeddedBufTopSize,
455 void *embeddedBufBottom,
456 uint32_t *embeddedBufBottomSize
549 uint32_t millisecondWait,
#define NvMediaSurfaceType
Defines the set of NvMedia surface types.
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.
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.
Specifies read/write access.
NvMediaStatus NvMediaImageLock(const NvMediaImage *image, NvMediaImageLockAccess lockAccessType, NvMediaImageSurfaceMap *surfaceMap)
Locks an image and returns the associated mapped pointers to the image surface data.
struct timespec NvMediaTime
Holds the media time (timespec as defined by the POSIX specification).
#define NVMEDIA_MAX_IMAGE_GROUP_SIZE
Maximum number of images in an image group.
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
NvMediaStatus
Defines all possible error codes.
NvMediaStatus NvMediaImageGetVersion(NvMediaVersion *version)
Gets the version of the NvMedia Image library.
int uint32_t uint32_t uint32_t const uint32_t const uint32_t const uint32_t const uint64_t uint32_t uint32_t flags
NvMediaImage * NvMediaImageCreateNew(NvMediaDevice *device, NvMediaSurfaceType type, const NvMediaSurfAllocAttr *attrs, uint32_t numAttrs, uint32_t flags)
Allocates an image object.
uint64_t NvMediaGlobalTime
Media global time, measured in microseconds.
void NvMediaImageUnlock(const NvMediaImage *image)
Unlocks an image.
NvMediaImageLockAccess
Specifies image lock access types.
void NvMediaImageDestroy(NvMediaImage *image)
Destroys an image object created by NvMediaImageCreateNew().