VPI - Vision Programming Interface

0.3.7 Release

NvBuffer Interoperability

Functions

VPIStatus vpiImageWrapNvBuffer (int dmabuf_fd, uint32_t flags, VPIImage *pimg)
 

Detailed Description

Create an image object by wrapping an existing NvBuffer given its dmabuf_fd handle. Only pitch-linear format is supported. The underlying image object does not own/claim the memory block.

Parameters
dmabuf_fd[in] Handle to the NvBuffer.
flags[in] flags
pimg[out] pointer to an image handle
Returns
an error code on failure else VPI_SUCCESS