Struct DmaBufFrame
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
The dmabuf of an acquired frame.
public readonly record struct DmaBufFrame : IEquatable<DmaBufFrame>
- Implements
- Inherited Members
Remarks
See mln_dma_buf_frame in the C API reference.
Constructors
DmaBufFrame(uint, uint, double, uint, uint, ulong, ImmutableArray<DmaBufPlane>)
public DmaBufFrame(uint Width, uint Height, double ScaleFactor, uint Slot, uint Fourcc, ulong Modifier, ImmutableArray<DmaBufPlane> Planes)
Parameters
WidthuintHeightuintScaleFactordoubleSlotuintFourccuintModifierulongPlanesImmutableArray<DmaBufPlane>
Properties
Fourcc
public uint Fourcc { get; init; }
Property Value
Height
public uint Height { get; init; }
Property Value
Modifier
public ulong Modifier { get; init; }
Property Value
Planes
The buffer's planes, in the order that its fourcc and modifier define.
Import all of them, as EGL_EXT_image_dma_buf_import_modifiers planes 0
and up, or with one zwp_linux_buffer_params_v1.add call each.
public ImmutableArray<DmaBufPlane> Planes { get; init; }
Property Value
ScaleFactor
public double ScaleFactor { get; init; }
Property Value
Slot
The buffer's index in the ring.
public uint Slot { get; init; }
Property Value
Width
public uint Width { get; init; }