Files
external_libcamera/src/ipa/rpi
David Plowman b2cb498a1a ipa: rpi: agc: Reorganise code for multi-channel AGC
This commit does the basic reorganisation of the code in order to
implement multi-channel AGC. The main changes are:

* The previous Agc class (in agc.cpp) has become the AgcChannel class
  in (agc_channel.cpp).

* A new Agc class is introduced which is a wrapper round a number of
  AgcChannels.

* The basic plumbing from ipa_base.cpp to Agc is updated to include a
  channel number. All the existing controls are hardwired to talk
  directly to channel 0.

There are a couple of limitations which we expect to apply to
multi-channel AGC. We're not allowing different frame durations to be
applied to the channels, nor are we allowing separate metering
modes. To be fair, supporting these things is not impossible, but
there are reasons why it may be tricky so they remain "TBD" for now.

This patch only includes the basic reorganisation and plumbing. It
does not yet update the important methods (switchMode, prepare and
process) to implement multi-channel AGC properly. This will appear in
a subsequent commit. For now, these functions are hard-coded just to
use channel 0, thereby preserving the existing behaviour.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
2023-09-16 17:33:44 +02:00
..

.. 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:

  1. Use their existing Raspberry Pi cameras.
  2. Change the tuning of the image processing for their Raspberry Pi cameras.
  3. Alter or amend the control algorithms (such as AGC/AEC, AWB or any others) that control the sensor and ISP.
  4. Implement their own custom control algorithms.
  5. 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.