CameraFrameDecodePlan class
Backend-neutral instructions for decoding a CameraFrame.
Detector packages map conversion and rotation to their image backend
constants (for example OpenCV COLOR_* and ROTATE_* values), while this
plan centralizes source-buffer layout, stride padding, and operation order.
Constructors
- CameraFrameDecodePlan({required PackedImageLayout sourceLayout, required int visibleWidth, required int visibleHeight, required bool hasStridePadding, required CameraFrameConversion conversion, required CameraFrameRotation? rotation, required CameraFrameDecodeOrder order})
-
Creates a camera-frame decode plan.
const
Properties
- conversion → CameraFrameConversion
-
Colour conversion required by the source bytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasStridePadding → bool
-
Whether
sourceLayout.colscontains padded columns beyond visibleWidth.final - order → CameraFrameDecodeOrder
-
Safe operation order for the source layout.
final
- rotation → CameraFrameRotation?
-
Optional rotation to apply.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceLayout → PackedImageLayout
-
The packed source layout to reconstruct before colour conversion.
final
- visibleHeight → int
-
Logical image height before rotation.
final
- visibleWidth → int
-
Logical image width before rotation, excluding stride padding.
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