NVIDIA DeepStream SDK API Reference

5.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NvBufSurfaceCreateParams Struct Reference

Detailed Description

Holds parameters required to allocate an NvBufSurface.

Definition at line 210 of file nvbufsurface.h.

Data Fields

uint32_t gpuId
 Holds the GPU ID. More...
 
uint32_t width
 Holds the width of the buffer. More...
 
uint32_t height
 Holds the height of the buffer. More...
 
uint32_t size
 Holds the amount of memory to be allocated. More...
 
bool isContiguous
 Holds a "contiguous memory" flag. More...
 
NvBufSurfaceColorFormat colorFormat
 Holds the color format of the buffer. More...
 
NvBufSurfaceLayout layout
 Holds the surface layout. More...
 
NvBufSurfaceMemType memType
 Holds the type of memory to be allocated. More...
 

Field Documentation

NvBufSurfaceColorFormat NvBufSurfaceCreateParams::colorFormat

Holds the color format of the buffer.

Definition at line 224 of file nvbufsurface.h.

uint32_t NvBufSurfaceCreateParams::gpuId

Holds the GPU ID.

Valid only for a multi-GPU system.

Definition at line 212 of file nvbufsurface.h.

uint32_t NvBufSurfaceCreateParams::height

Holds the height of the buffer.

Definition at line 216 of file nvbufsurface.h.

bool NvBufSurfaceCreateParams::isContiguous

Holds a "contiguous memory" flag.

If set, contiguous memory is allocated for the batch. Valid only for CUDA memory types.

Definition at line 222 of file nvbufsurface.h.

NvBufSurfaceLayout NvBufSurfaceCreateParams::layout

Holds the surface layout.

May be Block Linear (BL) or Pitch Linear (PL). For a dGPU, only PL is valid.

Definition at line 227 of file nvbufsurface.h.

NvBufSurfaceMemType NvBufSurfaceCreateParams::memType

Holds the type of memory to be allocated.

Definition at line 229 of file nvbufsurface.h.

uint32_t NvBufSurfaceCreateParams::size

Holds the amount of memory to be allocated.

Optional; if set, all other parameters (width, height, etc.) are ignored.

Definition at line 219 of file nvbufsurface.h.

uint32_t NvBufSurfaceCreateParams::width

Holds the width of the buffer.

Definition at line 214 of file nvbufsurface.h.


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