AndroidHardwareBufferRingDescriptor class final

A ring of Android hardware buffers that the library allocates, for MapHandle.attachAndroidHardwareBufferRing().

Each buffer has the map's size in pixels, logical_size times the map's scale factor, and the format AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM. Its usage is AHARDWAREBUFFER_USAGE_GPU_COLOR_OUTPUT, AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE, and the bits of usage.

See mln_android_hardware_buffer_ring_descriptor in the C API reference.

Constructors

AndroidHardwareBufferRingDescriptor({required LogicalSize logicalSize, required int bufferCount, int usage = 0})
const

Properties

bufferCount → int
How many buffers the ring has, from 1 to 8.
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
usage → int
More AHARDWAREBUFFER_USAGE_* bits that your reads need, such as AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN, or zero.
final

Methods

copyWith({LogicalSize? logicalSize, int? bufferCount, int? usage}) → AndroidHardwareBufferRingDescriptor
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