NvBufSurfacePlaneParams

class pyds.NvBufSurfacePlaneParams

保存缓冲区的平面参数。

变量:
  • num_planesint, 保存平面数量。

  • widthlist of int, 保存平面宽度列表。

  • heightlist of int, 保存平面高度列表。

  • pitchlist of int, 保存平面 pitch 列表。

  • offsetlist of int, 保存平面偏移量列表。

  • psizelist of int, 保存平面大小列表。

  • bytesPerPixlist of int, 保存每个平面中每个像素占用的字节数列表。

cast(*args, **kwargs)

重载函数。

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

将给定的对象/数据转换为 NvBufSurfacePlaneParams, 调用 pyds.NvBufSurfacePlaneParams.cast(data)

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

将给定的对象/数据转换为 NvBufSurfacePlaneParams, 调用 pyds.NvBufSurfacePlaneParams.cast(data)