Skip to main content

PlatformGraphicsExternalImageDmaBufProperties Struct

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Describes the DRM layout of a dma-buf image.

public struct PlatformGraphicsExternalImageDmaBufProperties

Inheritance: ValueType -> PlatformGraphicsExternalImageDmaBufProperties

Implements: IEquatable<PlatformGraphicsExternalImageDmaBufProperties>

Methods​

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Platform.PlatformGraphicsExternalImageDmaBufProperties other)
Parameters​

other Avalonia.Platform.PlatformGraphicsExternalImageDmaBufProperties

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
DrmFormatThe DRM_FORMAT_* fourcc of the buffer.
DrmModifierThe DRM_FORMAT_MOD_* layout modifier of the buffer, or Avalonia.Platform.PlatformGraphicsExternalImageDmaBufProperties.DrmModifierInvalid for the implicit layout.
PlaneCountThe number of memory planes. When zero, a single plane described by the handle itself and Avalonia.Platform.PlatformGraphicsExternalImageProperties.MemoryOffset is assumed.
PlaneFdsPer-plane dma-buf file descriptors. When null, the handle's file descriptor is used for every plane.
PlaneOffsetsPer-plane byte offsets into the corresponding file descriptor.
PlaneStridesPer-plane row pitches in bytes.

DrmFormat Property​

The DRM_FORMAT_* fourcc of the buffer.

public uint DrmFormat { get; set; }

DrmModifier Property​

The DRM_FORMAT_MOD_* layout modifier of the buffer, or Avalonia.Platform.PlatformGraphicsExternalImageDmaBufProperties.DrmModifierInvalid for the implicit layout.

public ulong DrmModifier { get; set; }

PlaneCount Property​

The number of memory planes. When zero, a single plane described by the handle itself and Avalonia.Platform.PlatformGraphicsExternalImageProperties.MemoryOffset is assumed.

public int PlaneCount { get; set; }

PlaneFds Property​

Per-plane dma-buf file descriptors. When null, the handle's file descriptor is used for every plane.

public int[] PlaneFds { get; set; }

PlaneOffsets Property​

Per-plane byte offsets into the corresponding file descriptor.

public uint[] PlaneOffsets { get; set; }

PlaneStrides Property​

Per-plane row pitches in bytes.

public uint[] PlaneStrides { get; set; }

Fields​

NameDescription
DrmModifierInvalidThe DRM_FORMAT_MOD_INVALID modifier.

DrmModifierInvalid Field​

The DRM_FORMAT_MOD_INVALID modifier.

public ulong DrmModifierInvalid