|
VPI - Vision Programming Interface
0.1.0 Release
|
Go to the documentation of this file.
56 #ifndef NV_VPI_IMAGE_H
57 #define NV_VPI_IMAGE_H
104 #define VPI_IMAGE_NO_PVA 0x01
105 #define VPI_IMAGE_NO_CPU 0x02
106 #define VPI_IMAGE_NO_CUDA 0x04
109 #define VPI_IMAGE_ONLY_CUDA (VPI_IMAGE_NO_PVA | VPI_IMAGE_NO_CPU)
110 #define VPI_IMAGE_ONLY_CPU (VPI_IMAGE_NO_PVA | VPI_IMAGE_NO_CUDA)
111 #define VPI_IMAGE_ONLY_PVA (VPI_IMAGE_NO_CUDA | VPI_IMAGE_NO_CPU)
116 #define VPI_MAX_PLANE_COUNT (6)
122 typedef struct VPIImagePlaneRec
143 typedef struct VPIImageDataRec
274 #endif // NV_VPI_IMAGE_H
uint32_t height
Height of this plane in pixels.
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.
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.
VPIPixelType
Pixel formats.
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 vpiImageWrapCudaDeviceMem(const VPIImageData *cudaData, uint32_t flags, VPIImage *img)
Create an image object by wrapping around an existing device-memory (CUDA) block.
struct VPIImageImpl * VPIImage
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.
VPILockMode
Defines the lock modes used by memory lock functions.
VPIStatus vpiImageWrapHostMem(const VPIImageData *hostData, uint32_t flags, VPIImage *img)
Create an image object by wrapping around an existing host-memory block.
Stores information about an image plane.
void * data
Pointer to the first row of this plane.