Declaration of functions for NvBuffer interoperability. More...
Functions | |
| VPIStatus | vpiImageWrapNvBuffer (int dmabuf_fd, uint32_t flags, VPIImage *pimg) |
| Create an image object by wrapping an existing NvBuffer given its dmabuf_fd handle. More... | |
Declaration of functions for NvBuffer interoperability.
The provided methods allows wrapping user-created NvBuffer objects (also known as dmabuf_fd) to be used in VPI compute pipelines. NvBuffers are sometimes used to interface with Jetson Linux Multimedia API.
#include <vpi/Image.h>
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.
| dmabuf_fd | [in] Handle to the NvBuffer. |
| flags | [in] flags |
| pimg | [out] pointer to an image handle |