[PATCH v1] gstreamer: Restore `AeEnable` control
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Tue Apr 1 20:21:23 CEST 2025
On Tue, Apr 01, 2025 at 04:41:44PM +0100, Kieran Bingham wrote:
> Quoting Barnabás Pőcze (2025-04-01 15:05:27)
> > 2025. 04. 01. 16:03 keltezéssel, Kieran Bingham írta:
> > > Quoting Barnabás Pőcze (2025-04-01 14:52:57)
> > >> Commit "gstreamer: Generate the new AEGC controls" removed the
> > >> `AeEnable` control from gen-gst-controls.py. However, the patch
> > >> set it was part of did not end up removing the `AeEnable`
> > >> control after all. So restore it for gstreamer users.
> > >>
> > >> See 85cb179f289d29 ("controls: Redefine AeEnable").
> > >
> > > Does this also relate to Bugzilla 261 "IMX296 on PI 4 / CM4 have no wb
> > > automatics" ?
> >
> > No, I don't think so. The "removal" has not been in any libcamera release yet.
>
> Ok, no worries - so lets get this in to stop it being a mistake :-)
If I recall correctly, libcamerasrc mistakenly feeds back metadata into
controls at the moment. This has to be fixed and the issue is unrelated
to this patch, but I'm wondering if adding back AeEnable could cause
horrible feedback loops. If you've tested this carefully and
successfully,
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> > > If so, lets add:
> > >
> > > Bug: https://bugs.libcamera.org/show_bug.cgi?id=261
> > >
> > >> Fixes: 187f2d537be5a4 ("gstreamer: Generate the new AEGC controls")
> > >> Signed-off-by: Barnabás Pőcze <barnabas.pocze at ideasonboard.com>
> > >
> > > Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> > >
> > >> ---
> > >> utils/codegen/gen-gst-controls.py | 2 +-
> > >> 1 file changed, 1 insertion(+), 1 deletion(-)
> > >>
> > >> diff --git a/utils/codegen/gen-gst-controls.py b/utils/codegen/gen-gst-controls.py
> > >> index 07af7653b..4ca76049e 100755
> > >> --- a/utils/codegen/gen-gst-controls.py
> > >> +++ b/utils/codegen/gen-gst-controls.py
> > >> @@ -19,7 +19,7 @@ from controls import Control
> > >>
> > >>
> > >> exposed_controls = [
> > >> - 'AeMeteringMode', 'AeConstraintMode', 'AeExposureMode',
> > >> + 'AeEnable', 'AeMeteringMode', 'AeConstraintMode', 'AeExposureMode',
> > >> 'ExposureValue', 'ExposureTime', 'ExposureTimeMode',
> > >> 'AnalogueGain', 'AnalogueGainMode', 'AeFlickerPeriod',
> > >> 'Brightness', 'Contrast', 'AwbEnable', 'AwbMode', 'ColourGains',
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list