PlatformGraphicsExternalImageDmaBufProperties Struct
Definition
Describes the DRM layout of a dma-buf image.
public struct PlatformGraphicsExternalImageDmaBufProperties
Methods
| Name | Description |
|---|---|
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| ToString | No 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
| Name | Description |
|---|---|
| DrmFormat | The DRM_FORMAT_* fourcc of the buffer. |
| DrmModifier | The DRM_FORMAT_MOD_* layout modifier of the buffer, or Avalonia.Platform.PlatformGraphicsExternalImageDmaBufProperties.DrmModifierInvalid for the implicit layout. |
| PlaneCount | The number of memory planes. When zero, a single plane described by the handle itself and Avalonia.Platform.PlatformGraphicsExternalImageProperties.MemoryOffset is assumed. |
| PlaneFds | Per-plane dma-buf file descriptors. When null, the handle's file descriptor is used for every plane. |
| PlaneOffsets | Per-plane byte offsets into the corresponding file descriptor. |
| PlaneStrides | Per-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
| Name | Description |
|---|---|
| DrmModifierInvalid | The DRM_FORMAT_MOD_INVALID modifier. |
DrmModifierInvalid Field
The DRM_FORMAT_MOD_INVALID modifier.
public ulong DrmModifierInvalid