fix: enable Z loupe/zoom across modes, 1-30 timelapse FPS, and CM0-safe MP4 compile

This commit is contained in:
2026-11-19 20:28:35 -05:00
parent d0c0ac1029
commit 9359779afa
11 changed files with 239 additions and 100 deletions

View File

@@ -614,8 +614,11 @@ class Picam2Worker:
self._camera_properties,
transform_cls=self._transform_cls,
)
crop_aspect = (16, 9) if _is_16_9_mode(self._mode, req_w, req_h) else (4, 3)
still_controls = {
"ScalerCrop": compute_scaler_crop(self._sensor_size, 4, 3, self._zoom),
"ScalerCrop": compute_scaler_crop(
self._sensor_size, crop_aspect[0], crop_aspect[1], self._zoom
),
"ExposureValue": float(self._ev),
}
still_cfg = self._picam2.create_still_configuration(