-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
picamera2: Add support for ScalerCrops controls
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]>
- Loading branch information
1 parent
6cbfdc3
commit 6de23fa
Showing
2 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters