[libcamera-devel] [PATCH 2/5] ipa: rpi: agc: Reorganise code for multi-channel AGC
Naushir Patuck
naush at raspberrypi.com
Tue Aug 22 15:20:11 CEST 2023
On Tue, 22 Aug 2023 at 13:32, Naushir Patuck <naush at raspberrypi.com> wrote:
>
> Hi David,
>
> Thank you for your patch.
>
> On Mon, 31 Jul 2023 at 10:47, David Plowman via libcamera-devel
> <libcamera-devel at lists.libcamera.org> wrote:
> >
> > 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 at raspberrypi.com>
>
> Don't see anything wrong with this change
>
> Reviewed-by: Naushir Patuck <naush at raspberrypi.com>
Sorry for the double tag on this patch. This was actually meant for patch 3/5!
Naush
More information about the libcamera-devel
mailing list