NvBufSurfaceParams

class pyds.NvBufSurfaceParams

Holds information about a single buffer in a batch.

Variables:
  • widthint, Holds the width of the buffer.

  • heightint, Holds the height of the buffer.

  • pitchint, Holds the pitch of the buffer.

  • colorFormatNvBufSurfaceColorFormat, Holds the color format of the buffer.

  • layoutNvBufSurfaceLayout, Holds the surface layout (PL or GL). For dGPU,, only PL is valid.

  • bufferDescint, Holds a DMABUF FD. Valid only for NVBUF_MEM_SURFACE_ARRAY and NVBUF_MEM_HANDLE type memory.

  • dataSizeint, Holds the amount of allocated memory.

  • dataPtr – Allocated memory. Not valid for NVBUF_MEM_SURFACE_ARRAY or NVBUF_MEM_HANDLE.

  • planeParamsNvBufSurfacePlaneParams, Holds planewise information (width, height, pitch, offset, etc.).

  • mappedAddrNvBufSurfaceMappedAddr, Holds mapped buffers. Initialized to None when the structure is created.

cast(*args, **kwargs)

Overloaded function.

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

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

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

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