VPI - Vision Programming Interface

0.3.7 Release

NvBuffer Interoperability

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...
 

Detailed Description

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.

Function Documentation

◆ vpiImageWrapNvBuffer()

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

#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.

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