cropOutputCamera property

Matrix4 get cropOutputCamera

camera re-anchored for crop-OUTPUT-space content: the rendered image preview and the cropped-video pipeline lay out with the crop rect's top-left at their origin, so they paint through camera ยท translate(crop.topLeft) to land exactly where the camera fits the crop rect. Reduces to camera while uncropped.

Implementation

vmath.Matrix4 get cropOutputCamera {
  final origin = cropLayer?.crop.topLeft ?? Offset.zero;
  if (origin == Offset.zero) return camera.value;
  return camera.value.clone()
    ..translateByVector3(vmath.Vector3(origin.dx, origin.dy, 0));
}