Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScalerCrops #1134

Merged
merged 4 commits into from
Oct 17, 2024
Merged

ScalerCrops #1134

merged 4 commits into from
Oct 17, 2024

Conversation

davidplowman
Copy link
Collaborator

Replaces #1087

Note that this change and new functionality is only applicable on Pi 5.

The stream configuration dictionary now has a "preserve_ar" key that
when set to True, will preserve the aspect ratio of the output by
cropping the sensor image appropriately. If set to False, the full
field of view of the sensor image is used to scale to the output
resolution. This happens separately for the main and lores streams.

The default behaviour of this flag is as follows:

- For the main stream, it is set to True. This preserves existing
  behaviour.

- For the lowres stream, it is set to False, which then makes the lowres
  stream crop follows the crop of the main stream. Again, this
  preservies existing behaviour, also matching VC4.

Signed-off-by: Naushir Patuck <[email protected]>
Add this control to the ignore list.

Signed-off-by: Naushir Patuck <[email protected]>
Stops us being at the mercy of the random darkness in the server room.

Signed-off-by: David Plowman <[email protected]>
@davidplowman davidplowman merged commit 4655177 into raspberrypi:next Oct 17, 2024
4 checks passed
@davidplowman davidplowman deleted the crops branch November 21, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants