PackedImageLayout class

A tightly packed source-buffer layout for image backend reconstruction.

For OpenCV, callers should allocate a Mat with rows, cols, and a type matching channels, then call copyTo into the Mat's byte buffer. This avoids slower list-element reconstruction paths.

Constructors

PackedImageLayout({required int rows, required int cols, required int channels, required PackedImageFormat format})
Creates a packed image layout.
const

Properties

byteLength → int
Expected byte length for a tightly packed source buffer.
no setter
channels → int
Bytes per pixel/sample column.
final
cols → int
Source columns in the packed buffer.
final
format → PackedImageFormat
Semantic format of the packed bytes.
final
hashCode → int
The hash code for this object.
no setterinherited
rows → int
Source rows in the packed buffer.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyTo(Uint8List dst, Uint8List src) → void
Copies src into dst after validating both match byteLength.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(Uint8List bytes, {String name = 'bytes'}) → void
Validates that bytes matches byteLength.

Operators

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