PackedYuv class

A contiguous YUV buffer produced by packYuv420, ready to hand to a native colour-conversion routine.

The bytes buffer has length width * height * 3 ~/ 2 and is laid out as described by layout. width and height refer to the luma (Y) plane.

Constructors

PackedYuv({required Uint8List bytes, required YuvLayout layout, required int width, required int height})
const

Properties

bytes → Uint8List
Packed YUV bytes (Y plane first, chroma layout per layout).
final
hashCode → int
The hash code for this object.
no setterinherited
height → int
Luma plane height, in pixels.
final
layout → YuvLayout
Memory layout of bytes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceLayout → PackedImageLayout
Source layout for reconstructing this packed YUV buffer in an image backend.
no setter
width → int
Luma plane width, in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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