NvBufSurfaceParams¶
- class pyds.NvBufSurfaceParams¶
Holds information about a single buffer in a batch.
- Variables:
width – int, Holds the width of the buffer.
height – int, Holds the height of the buffer.
pitch – int, Holds the pitch of the buffer.
colorFormat –
NvBufSurfaceColorFormat
, Holds the color format of the buffer.layout –
NvBufSurfaceLayout
, Holds the surface layout (PL or GL). For dGPU,, only PL is valid.bufferDesc – int, Holds a DMABUF FD. Valid only for NVBUF_MEM_SURFACE_ARRAY and NVBUF_MEM_HANDLE type memory.
dataSize – int, Holds the amount of allocated memory.
dataPtr – Allocated memory. Not valid for NVBUF_MEM_SURFACE_ARRAY or NVBUF_MEM_HANDLE.
planeParams –
NvBufSurfacePlaneParams
, Holds planewise information (width, height, pitch, offset, etc.).mappedAddr –
NvBufSurfaceMappedAddr
, Holds mapped buffers. Initialized to None when the structure is created.
- cast(*args, **kwargs)¶
Overloaded function.
cast(self: capsule) -> pyds.NvBufSurfaceParams
cast given object/data to
NvBufSurfaceParams
, call pyds.NvBufSurfaceParams.cast(data)cast(self: int) -> pyds.NvBufSurfaceParams
cast given object/data to
NvBufSurfaceParams
, call pyds.NvBufSurfaceParams.cast(data)