NvBufSurface

class pyds.NvBufSurface

Holds information about a single buffer in a batch.

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

  • batchSize – int, Holds the batch size.

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

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

  • memType – NvBufSurfaceMemType, Holds type of memory for buffers in the batch.

  • surfaceList – list 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)