During configure() we update the ScalerCropMaximum to the correct value for this camera mode and work out the minimum crop size allowed by the ISP. Whenever a new ScalerCrop request is received we check it's valid and apply it to the ISP V4L2 device. When the IPA returns its metadata to us we add the ScalerCrop information, rescaled to sensor native pixels. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
.. SPDX-License-Identifier: BSD-2-Clause
libcamera for the Raspberry Pi
Raspberry Pi provides a fully featured pipeline handler and control algorithms (IPAs, or "Image Processing Algorithms") to work with libcamera. Support is included for all existing Raspberry Pi camera modules.
libcamera for the Raspberry Pi allows users to:
- Use their existing Raspberry Pi cameras.
- Change the tuning of the image processing for their Raspberry Pi cameras.
- Alter or amend the control algorithms (such as AGC/AEC, AWB or any others) that control the sensor and ISP.
- Implement their own custom control algorithms.
- Supply new tunings and/or algorithms for completely new sensors.
How to install and run libcamera on the Raspberry Pi
Please follow the instructions here.
Documentation
Full documentation for the Raspberry Pi Camera Algorithm and Tuning Guide can be found here.