VideoCropGeometry class
Baked crop/rotate/flip geometry for a video export, snapshotted from the
entry's CropImageLayer at send time (CropImageLayer.exportMatrix +
exportSize, already clamped to the chosen quality tier). transform
is a row-major 3×3 affine mapping source pixel → output pixel
coordinates ([a,b,tx, d,e,ty, 0,0,1]); the output canvas is
outWidth×outHeight. Handed verbatim to XVideoExporter so the
exported frames match the on-screen crop.
- Annotations
Constructors
-
VideoCropGeometry({required List<
double> transform, required int outWidth, required int outHeight}) -
Binds the affine to its output canvas.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- outHeight → int
-
Height of the output canvas in pixels.
final
- outWidth → int
-
Width of the output canvas in pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transform
→ List<
double> -
Row-major 3×3 source-px → output-px affine (
[a,b,tx, d,e,ty, 0,0,1]).final - transformColumnMajor4x4 → Float64List
-
transform as the column-major 4×4 storage Flutter's
Transformwidget andCanvas.transformconsume — the live cropped preview and the baked poster thumb apply the identical mapping through it.no setter
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.
override