|
|
VPI - Vision Programming Interface
0.1.0 Release
|
This section is directed to programmers that are having their first contact with VPI.
It's divided in the following subsections:
- Installation - gives instructions on how to install VPI on the target device.
- Basic Concepts - Exposes basic concepts succintly, giving a big picture on how VPI works.
- Tutorial - Hands-on tutorial teaching how to write a simple, albeit full VPI application from scratch.
Used to signal that the pixel type must be inferred from image type.
uint32_t height
Height of this plane in pixels.
uint32_t width
Width of this plane in pixels.
VPIStatus vpiSubmitBoxImageFilter(VPIStream stream, VPIImage input, VPIImage output, uint32_t kernelSizeX, uint32_t kernelSizeY, VPIBoundaryCond boundary)
Runs a 2D box filter over an image.
uint32_t rowStride
Difference in bytes of beginning of one row and the beginning of the previous.
VPIStatus vpiImageUnlock(VPIImage img)
Releases the lock on an image object.
VPIStatus vpiStreamCreate(VPIDeviceType devType, VPIStream *stream)
Create a stream instance.
VPIStatus vpiStreamSync(VPIStream stream)
Blocks the calling thread until all submitted commands in this stream queue are done (queue is empty)...
Stores information about image characteristics and content.
void vpiStreamDestroy(VPIStream stream)
Destroy a stream instance and deallocate all HW resources.
Lock memory only for reading.
VPIImagePlane planes[VPI_MAX_PLANE_COUNT]
Data of all image planes.
void vpiImageDestroy(VPIImage img)
Destroy an image instance as well as all resources it owns.
VPIPixelType pixelType
Type of each pixel within this plane.
unsigned 8-bit grayscale/luma.
struct VPIImageImpl * VPIImage
int32_t numPlanes
Number of planes.
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.
All pixels outside the image are considered to be zero.
VPIStatus vpiImageWrapHostMem(const VPIImageData *hostData, uint32_t flags, VPIImage *img)
Create an image object by wrapping around an existing host-memory block.
void * data
Pointer to the first row of this plane.
struct VPIStreamImpl * VPIStream