VPI - Vision Programming Interface

1.2 Release

NvBufferInterop.h File Reference

Functions and structures for handling NvBuffer interoperability with VPI. More...

#include "Export.h"
#include "ImageFormat.h"
#include "Status.h"
#include "Types.h"
#include <stdint.h>
+ Include dependency graph for NvBufferInterop.h:

Go to the source code of this file.

Data Structures

struct  VPIWrapNvBufferParams
 Parameters for customizing NvBuffer wrapping. More...
 

Functions

VPIStatus vpiInitWrapNvBufferParams (VPIWrapNvBufferParams *params)
 Initialize VPIWrapNvBufferParams with default values. More...
 
VPIStatus vpiImageCreateNvBufferWrapper (int32_t dmabuf_fd, const VPIWrapNvBufferParams *params, uint32_t flags, VPIImage *img)
 Create an image object by wrapping an existing NvBuffer given its dmabuf_fd handle. More...
 
VPIStatus vpiImageSetWrappedNvBuffer (VPIImage img, int dmabuf_fd)
 Redefines the wrapped NvBuffer memory in an existing VPIImage wrapper. More...
 

Detailed Description

Functions and structures for handling NvBuffer interoperability with VPI.

Definition in file NvBufferInterop.h.

Function Documentation

◆ vpiInitWrapNvBufferParams()

VPIStatus vpiInitWrapNvBufferParams ( VPIWrapNvBufferParams params)

Initialize VPIWrapNvBufferParams with default values.

Default values are:

Parameters
[in]paramsStructure to be initialized with default values.
Returns
VPI_SUCCESS if function succeeded, or VPI_ERROR_INVALID_ARGUMENT is params is NULL.