NVIDIA DeepStream SDK API Reference

4.0.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
NvBufSurfaceParams Struct Reference

Detailed Description

Holds information about a single buffer in a batch.

Definition at line 252 of file nvbufsurface.h.

Data Fields

uint32_t width
 Holds the width of the buffer. More...
 
uint32_t height
 Holds the height of the buffer. More...
 
uint32_t pitch
 Holds the pitch of the buffer. More...
 
NvBufSurfaceColorFormat colorFormat
 Holds the color format of the buffer. More...
 
NvBufSurfaceLayout layout
 Holds BL or PL. More...
 
uint64_t bufferDesc
 Holds a DMABUF FD. More...
 
uint32_t dataSize
 Holds the amount of allocated memory. More...
 
void * dataPtr
 Holds a pointer to allocated memory. More...
 
NvBufSurfacePlaneParams planeParams
 Holds planewise information (width, height, pitch, offset, etc.). More...
 
NvBufSurfaceMappedAddr mappedAddr
 Holds pointers to mapped buffers. More...
 
void * _reserved [STRUCTURE_PADDING]
 

Field Documentation

void* NvBufSurfaceParams::_reserved[STRUCTURE_PADDING]

Definition at line 277 of file nvbufsurface.h.

uint64_t NvBufSurfaceParams::bufferDesc

Holds a DMABUF FD.

Valid only for NVBUF_MEM_SURFACE_ARRAY and NVBUF_MEM_HANDLE type memory.

Definition at line 265 of file nvbufsurface.h.

NvBufSurfaceColorFormat NvBufSurfaceParams::colorFormat

Holds the color format of the buffer.

Definition at line 260 of file nvbufsurface.h.

void* NvBufSurfaceParams::dataPtr

Holds a pointer to allocated memory.

Not valid for NVBUF_MEM_SURFACE_ARRAY or NVBUF_MEM_HANDLE.

Definition at line 270 of file nvbufsurface.h.

uint32_t NvBufSurfaceParams::dataSize

Holds the amount of allocated memory.

Definition at line 267 of file nvbufsurface.h.

uint32_t NvBufSurfaceParams::height

Holds the height of the buffer.

Definition at line 256 of file nvbufsurface.h.

NvBufSurfaceLayout NvBufSurfaceParams::layout

Holds BL or PL.

For dGPU, only PL is valid.

Definition at line 262 of file nvbufsurface.h.

NvBufSurfaceMappedAddr NvBufSurfaceParams::mappedAddr

Holds pointers to mapped buffers.

Initialized to NULL when the structure is created.

Definition at line 275 of file nvbufsurface.h.

uint32_t NvBufSurfaceParams::pitch

Holds the pitch of the buffer.

Definition at line 258 of file nvbufsurface.h.

NvBufSurfacePlaneParams NvBufSurfaceParams::planeParams

Holds planewise information (width, height, pitch, offset, etc.).

Definition at line 272 of file nvbufsurface.h.

uint32_t NvBufSurfaceParams::width

Holds the width of the buffer.

Definition at line 254 of file nvbufsurface.h.


The documentation for this struct was generated from the following file: