16 #ifndef _NVMEDIA_IMAGE_H
17 #define _NVMEDIA_IMAGE_H
36 #define NVMEDIA_IMAGE_VERSION_MAJOR 1
38 #define NVMEDIA_IMAGE_VERSION_MINOR 11
58 #define NVMEDIA_MAX_AGGREGATE_IMAGES 6
64 #define NVMEDIA_MAX_IMAGE_GROUP_SIZE 3
70 #define NVMEDIA_IMAGE_TIMEOUT_INFINITE 0xFFFFFFFF
265 uint32_t lockAccessType,
376 void *embeddedBufTop,
377 uint32_t *embeddedBufTopSize,
378 void *embeddedBufBottom,
379 uint32_t *embeddedBufBottomSize
432 uint32_t millisecondWait,
#define NvMediaSurfaceType
Defines the set of NvMedia surface types.
NvMediaStatus NvMediaImageLock(NvMediaImage *image, uint32_t lockAccessType, NvMediaImageSurfaceMap *surfaceMap)
Locks an image and returns the associated mapped pointers pointing to the image surface data...
NvMediaStatus NvMediaImageGetBits(NvMediaImage *image, NvMediaRect *srcRect, void **dstPntrs, uint32_t *dstPitches)
NvMediaImageGetBits reads an NvMedia image and writes the content into a client memory buffer...
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.
NvMediaStatus NvMediaImagePutBits(NvMediaImage *image, NvMediaRect *dstRect, void **srcPntrs, uint32_t *srcPitches)
Reads a client memory buffer and writes the content into an NvMedia image surface.
NvMediaStatus
The set of all possible error codes.
NvMediaStatus NvMediaImageGetVersion(NvMediaVersion *version)
Gets the version for 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, NvMediaSurfAllocAttr *attrs, uint32_t numAttrs, uint32_t flags)
Allocates an image object.
void NvMediaDevice
An opaque handle representing a NvMediaDevice object.
uint64_t NvMediaGlobalTime
Media global time, measured in microseconds.
void NvMediaImageUnlock(NvMediaImage *image)
Unlocks an image.
NvMediaBitsPerPixel
Bits per pixel.
NvMediaRawPixelOrder
Pixel order in a raw image.
NvMediaImageLockAccess
Image lock access types.
void NvMediaImageDestroy(NvMediaImage *image)
Destroys an image object that was created by NvMediaImageCreateNew.