DmaBufRingDescriptor class final

A ring of dmabufs that the library allocates, for MapHandle.attachDmaBufRing().

Each buffer has the map's size in pixels and a format and modifier from formats. The library renders only DRM_FORMAT_ABGR8888 and DRM_FORMAT_ARGB8888. A modifier can give a buffer more planes than its format has, such as a plane of compression metadata, and the library takes any such modifier that its GPU can render into and share.

See mln_dma_buf_ring_descriptor in the C API reference.

Constructors

DmaBufRingDescriptor({required LogicalSize logicalSize, required int bufferCount, required List<DmaBufFormat> formats})

Properties

bufferCount → int
How many buffers the ring has, from 1 to 8.
final
formats → List<DmaBufFormat>
The formats and modifiers that your reader imports, most preferred first, such as those that eglQueryDmaBufModifiersEXT() reports.
final
hashCode → int
The hash code for this object.
no setterinherited
logicalSize → LogicalSize
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LogicalSize? logicalSize, int? bufferCount, List<DmaBufFormat>? formats}) → DmaBufRingDescriptor
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited