NvBufSurfaceCreateParams

class pyds.NvBufSurfaceCreateParams

Holds parameters required to allocate an NvBufSurface.

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

  • width – int, Holds the width of the buffer.

  • height – int, Holds the height of the buffer.

  • size – int, Holds the amount of memory to be allocated.

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

  • colorFormat – NvBufSurfaceColorFormat, Holds the color format of the buffer.

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

  • memType – NvBufSurfaceMemType, 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)