Table of Contents

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

Width uint
Height uint
ScaleFactor double
Slot uint
Fourcc uint
Modifier ulong
Planes ImmutableArray<DmaBufPlane>

Properties

Fourcc

public uint Fourcc { get; init; }

Property Value

uint

Height

public uint Height { get; init; }

Property Value

uint

Modifier

public ulong Modifier { get; init; }

Property Value

ulong

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

ImmutableArray<DmaBufPlane>

ScaleFactor

public double ScaleFactor { get; init; }

Property Value

double

Slot

The buffer's index in the ring.

public uint Slot { get; init; }

Property Value

uint

Width

public uint Width { get; init; }

Property Value

uint