|
|
NVIDIA DeepStream SDK API Reference5.0 Release |
NvBufSurface Interface
This file specifies the NvBufSurface management API.
The NvBufSurface API provides methods to allocate / deallocate, map / unmap and copy batched buffers.
Definition in file nvbufsurface.h.
Go to the source code of this file.
Data Structures | |
| struct | NvBufSurfacePlaneParams |
| Holds the planewise parameters of a buffer. More... | |
| struct | NvBufSurfaceCreateParams |
| Holds parameters required to allocate an NvBufSurface. More... | |
| struct | NvBufSurfaceMappedAddr |
| Holds pointers for a mapped buffer. More... | |
| struct | NvBufSurfaceParams |
| Holds information about a single buffer in a batch. More... | |
| struct | NvBufSurface |
| Holds information about batched buffers. More... | |
Macros | |
| #define | STRUCTURE_PADDING 4 |
| Defines the default padding length for reserved fields of structures. More... | |
| #define | NVBUF_MAX_PLANES 4 |
| Defines the maximum number of planes. More... | |
Typedefs | |
| typedef struct NvBufSurfacePlaneParams | NvBufSurfacePlaneParams |
| Holds the planewise parameters of a buffer. More... | |
| typedef struct NvBufSurfaceCreateParams | NvBufSurfaceCreateParams |
| Holds parameters required to allocate an NvBufSurface. More... | |
| typedef struct NvBufSurfaceMappedAddr | NvBufSurfaceMappedAddr |
| Holds pointers for a mapped buffer. More... | |
| typedef struct NvBufSurfaceParams | NvBufSurfaceParams |
| Holds information about a single buffer in a batch. More... | |
| typedef struct NvBufSurface | NvBufSurface |
| Holds information about batched buffers. More... | |
Functions | |
| int | NvBufSurfaceCreate (NvBufSurface **surf, uint32_t batchSize, NvBufSurfaceCreateParams *params) |
| Allocates a batch of buffers. More... | |
| int | NvBufSurfaceDestroy (NvBufSurface *surf) |
| Frees batched buffers previously allocated by NvBufSurfaceCreate(). More... | |
| int | NvBufSurfaceMap (NvBufSurface *surf, int index, int plane, NvBufSurfaceMemMapFlags type) |
| Maps hardware batched buffers to the HOST or CPU address space. More... | |
| int | NvBufSurfaceUnMap (NvBufSurface *surf, int index, int plane) |
| Unmaps previously mapped buffer(s). More... | |
| int | NvBufSurfaceCopy (NvBufSurface *srcSurf, NvBufSurface *dstSurf) |
| Copies the content of source batched buffer(s) to destination batched buffer(s). More... | |
| int | NvBufSurfaceSyncForCpu (NvBufSurface *surf, int index, int plane) |
| Syncs the hardware memory cache for the CPU. More... | |
| int | NvBufSurfaceSyncForDevice (NvBufSurface *surf, int index, int plane) |
| Syncs the hardware memory cache for the device. More... | |
| int | NvBufSurfaceFromFd (int dmabuf_fd, void **buffer) |
| Gets the NvBufSurface from the DMABUF FD. More... | |
| int | NvBufSurfaceMemSet (NvBufSurface *surf, int index, int plane, uint8_t value) |
| Fills each byte of the buffer(s) in an NvBufSurface with a provided value. More... | |
| int | NvBufSurfaceMapEglImage (NvBufSurface *surf, int index) |
| Creates an EGLImage from the memory of one or more NvBufSurface buffers. More... | |
| int | NvBufSurfaceUnMapEglImage (NvBufSurface *surf, int index) |
| Destroys the previously created EGLImage object(s). More... | |