|
VPI - Vision Programming Interface
0.3.7 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_IMAGE_H
57 #define NV_VPI_IMAGE_H
110 #define VPI_IMAGE_DISABLE_PVA VPI_BACKEND_DISABLE_PVA
111 #define VPI_IMAGE_DISABLE_CPU VPI_BACKEND_DISABLE_CPU
112 #define VPI_IMAGE_DISABLE_CUDA VPI_BACKEND_DISABLE_CUDA
114 #define VPI_IMAGE_ONLY_PVA VPI_BACKEND_ONLY_PVA
115 #define VPI_IMAGE_ONLY_CPU VPI_BACKEND_ONLY_CPU
116 #define VPI_IMAGE_ONLY_CUDA VPI_BACKEND_ONLY_CUDA
121 #define VPI_IMAGE_NO_PVA VPI_IMAGE_DISABLE_PVA
122 #define VPI_IMAGE_NO_CPU VPI_IMAGE_DISABLE_CPU
123 #define VPI_IMAGE_NO_CUDA VPI_IMAGE_DISABLE_CUDA
127 #define VPI_MAX_PLANE_COUNT (6)
133 typedef struct VPIImagePlaneRec
154 typedef struct VPIImageDataRec
307 #endif // NV_VPI_IMAGE_H
uint32_t height
Height of this plane in pixels.
VPIStatus vpiImageWrapCudaDeviceMem(const VPIImageData *cudaData, uint32_t flags, VPIImage *img)
Create an image object by wrapping around an existing device-memory (CUDA) block.
VPIStatus vpiImageInvalidate(VPIImage img)
This method is useful for unmanaged images only (created with vpiImageWrap*).
uint32_t width
Width of this plane in pixels.
VPIImageType
Image formats.
VPIStatus vpiImageWrapNvBuffer(int dmabuf_fd, uint32_t flags, VPIImage *pimg)
Create an image object by wrapping an existing NvBuffer given its dmabuf_fd handle.
uint32_t rowStride
Difference in bytes of beginning of one row and the beginning of the previous.
#define VPI_MAX_PLANE_COUNT
Maximum number of data planes an image can have.
VPIStatus vpiImageUnlock(VPIImage img)
Releases the lock on an image object.
Stores information about image characteristics and content.
VPIStatus vpiImageGetFlags(VPIImage img, uint32_t *flags)
Get the image flags.
void vpiImageDestroy(VPIImage img)
Destroy an image instance as well as all resources it owns.
VPIPixelType pixelType
Type of each pixel within this plane.
VPIStatus vpiImageWrapHostMem(const VPIImageData *hostData, uint32_t flags, VPIImage *img)
Create an image object by wrapping around an existing host-memory block.
struct VPIImageImpl * VPIImage
A handle to an image.
VPIStatus vpiImageGetSize(VPIImage img, uint32_t *width, uint32_t *height)
Get the image size in pixels.
int32_t numPlanes
Number of planes.
VPIStatus vpiImageGetType(VPIImage img, VPIImageType *type)
Get the image type.
VPIStatus vpiImageLock(VPIImage img, VPILockMode mode, VPIImageData *hostData)
Acquires the lock on an image object and returns a pointer to the image planes Depending on the inter...
VPIImageType type
Image type.
VPIStatus vpiImageCreate(uint32_t width, uint32_t height, VPIImageType type, uint32_t flags, VPIImage *img)
Create an empty image instance with the specified flags.
Stores information about an image plane.
VPILockMode
Defines the lock modes used by memory lock functions.
void * data
Pointer to the first row of this plane.
VPIPixelType
Pixel formats.