56 #ifndef NV_VPI_IMAGE_H
57 #define NV_VPI_IMAGE_H
126 #define VPI_DISABLE_BL_HOST_LOCK (1u << 31)
134 typedef struct VPIImagePlaneRec
155 #define VPI_MAX_PLANE_COUNT (6)
158 typedef struct VPIImageDataRec
201 #if NV_VPI_VERSION_API_IS(1, 0)
202 __asm__(
".symver vpiImageCreateHostMemWrapper,vpiImageCreateHostMemWrapper@VPI_1.0");
281 #if NV_VPI_VERSION_API_IS(1, 0)
282 __asm__(
".symver vpiImageGetFlags,vpiImageGetFlags@VPI_1.0");
Defines types and functions to handle pixel types.
Declaration of VPI status codes handling functions.
Defines all types needed for programming with VPI.
VPIStatus vpiImageSetWrappedHostMem(VPIImage img, const VPIImageData *hostData)
Redefines the wrapped host memory in an existing VPIImage wrapper.
VPIStatus vpiImageCreateHostMemWrapper(const VPIImageData *hostData, uint32_t flags, VPIImage *img)
Create an image object by wrapping around an existing host memory block.
int32_t height
Height of this plane in pixels.
VPIPixelType pixelType
Type of each pixel within this plane.
int32_t numPlanes
Number of planes.
int32_t width
Width of this plane in pixels.
void * data
Pointer to the first row of this plane.
int32_t pitchBytes
Difference in bytes of beginning of one row and the beginning of the previous.
VPIImageFormat format
Image format.
VPIStatus vpiImageLock(VPIImage img, VPILockMode mode, VPIImageData *hostData)
Acquires the lock on an image object and returns a pointer to the image planes.
#define VPI_MAX_PLANE_COUNT
Maximum number of data planes an image can have.
void vpiImageDestroy(VPIImage img)
Destroy an image instance.
struct VPIImageImpl * VPIImage
A handle to an image.
VPIStatus vpiImageInvalidate(VPIImage img)
Informs that the image's wrapped memory was updated outside VPI.
VPIStatus vpiImageCreate(int32_t width, int32_t height, VPIImageFormat fmt, uint32_t flags, VPIImage *img)
Create an empty image instance with the specified flags.
VPIStatus vpiImageGetFlags(VPIImage img, uint32_t *flags)
Get the image flags.
VPIStatus vpiImageGetFormat(VPIImage img, VPIImageFormat *format)
Get the image format.
VPIStatus vpiImageGetSize(VPIImage img, int32_t *width, int32_t *height)
Get the image size in pixels.
VPIStatus vpiImageUnlock(VPIImage img)
Releases the lock on an image object.
Stores information about image characteristics and content.
Stores information about an image plane.
VPILockMode
Defines the lock modes used by memory lock functions.