UCameraFrame class
A single analysis frame handed to Dart. planes holds one entry for packed formats and three for planar YUV.
Constructors
-
UCameraFrame({required List<
Uint8List> planes, required UFrameFormat format, required int width, required int height, List<int> rowStrides = const <int>[], List<int> pixelStrides = const <int>[], int rotation = 0, bool mirrored = false, int timestampUs = 0}) -
const
-
UCameraFrame.fromMap(Map<
Object?, Object?> map) -
factory
Properties
- bytes → Uint8List
-
no setter
- format → UFrameFormat
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
final
- mirrored → bool
-
final
-
pixelStrides
→ List<
int> -
final
-
planes
→ List<
Uint8List> -
final
- rotation → int
-
Clockwise rotation needed to make the frame upright, in degrees.
final
-
rowStrides
→ List<
int> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestampUs → int
-
final
- width → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toGray(
) → UGrayImage - Wraps the luminance data as a grayscale image without copying when the frame already carries a Y plane.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited