NvBufSurface

class pyds.NvBufSurface

Holds information about a single buffer in a batch.

Variables:
  • gpuIdint, Holds the GPU ID. Valid only for a multi-GPU system.

  • batchSizeint, Holds the batch size.

  • numFilledint, Holds the number valid and filled buffers. Initialized to zero when an instance of the structure is created.

  • isContiguousbool, Holds an “is contiguous” flag. If set, memory allocated for the batch is contiguous.

  • memTypeNvBufSurfaceMemType, Holds type of memory for buffers in the batch.

  • surfaceListlist of :class:`NvBufSurfaceParams`, Array of batched buffers.

cast(*args, **kwargs)

Overloaded function.

  1. cast(self: capsule) -> pyds.NvBufSurface

cast given object/data to NvBufSurface, call pyds.NvBufSurface.cast(data)

  1. cast(self: int) -> pyds.NvBufSurface

cast given object/data to NvBufSurface, call pyds.NvBufSurface.cast(data)