|
|
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)
274 #endif // NV_VPI_IMAGE_H
VPIStatus vpiImageInvalidate(VPIImage img)
This method is useful for unmanaged images only (created with vpiImageWrap*).
VPIImageType type
Image type.
VPIImageType
Image formats.
Stores information about an image plane.
#define VPI_MAX_PLANE_COUNT
Maximum number of data planes an image can have.
VPIStatus vpiImageUnlock(VPIImage img)
Releases the lock on image object.
int32_t numPlanes
Number of planes.
uint32_t height
Height of this plane in pixels.
struct VPIImageDataRec VPIImageData
Stores information about image characteristics and content.
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.
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.
VPIStatus vpiImageGetType(VPIImage img, VPIImageType *type)
Get the image type.
uint32_t width
Width of this plane in pixels.
VPIStatus vpiImageLock(VPIImage img, VPILockMode mode, VPIImageData *hostData)
Acquires the lock on image object and returns a pointer to the image planes Depending on the internal...
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.
uint32_t rowStride
Difference in bytes of beginning of one row and the beginning of the previous.
void * data
Pointer to the first row of this plane.
VPIStatus vpiImageWrapHostMem(const VPIImageData *hostData, uint32_t flags, VPIImage *img)
Create an image object by wrapping around an existing host-memory block.
VPIPixelType pixelType
Type of each pixel within this plane.
VPIImagePlane planes[VPI_MAX_PLANE_COUNT]
Data of all image planes.
struct VPIImagePlaneRec VPIImagePlane
Stores information about an image plane.