NvBufSurfaceCreateParams

class pyds.NvBufSurfaceCreateParams

Holds parameters required to allocate an NvBufSurface.

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

  • widthint, Holds the width of the buffer.

  • heightint, Holds the height of the buffer.

  • sizeint, Holds the amount of memory to be allocated.

  • isContiguousbool, Holds a “contiguous memory” flag. If set, contiguous memory is allocated for the batch. Valid only for CUDA memory types.

  • colorFormatNvBufSurfaceColorFormat, Holds the color format of the buffer.

  • layoutNvBufSurfaceLayout, Holds the surface layout. May be Block Linear (BL) or Pitch Linear (PL).

  • memTypeNvBufSurfaceMemType, Holds the type of memory to be allocated.

cast(*args, **kwargs)

Overloaded function.

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

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

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

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