Skip to content

Commit

Permalink
core: Re-enable rpi::ScalerCrops control
Browse files Browse the repository at this point in the history
Handling this control was disabled in a previous patch, re-enable it.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir committed Nov 12, 2024
1 parent f31b6c0 commit 755546d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picamera2/picamera2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def configure_(self, camera_config="preview") -> None:
self.controls = Controls(self, controls=self.camera_config['controls'])
self.configure_count += 1

if False and "ScalerCrops" in self.camera_controls:
if "ScalerCrops" in self.camera_controls:
par_crop = self.camera_controls["ScalerCrops"]
full_fov = self.camera_controls["ScalerCrop"][1]
scaler_crops = [par_crop[0] if camera_config["main"]["preserve_ar"] else full_fov]
Expand Down

0 comments on commit 755546d

Please sign in to comment.