From 1355e29f318d517338a0f7c7ef1640549d7de72d Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Wed, 28 Jan 2026 17:00:31 +0100 Subject: [PATCH] libcamera: control_ids: Introduce LensShadingCorrectionEnable Introduce a LensShadingCorrectionEnable control to enable and disable LSC. This is useful to assess the working and quality of the lens shading correction at runtime. While at it drop the reference to the tuning file in the description of the LensDewarpEnable control, as that information doesn't belong to the controls. Signed-off-by: Jacopo Mondi Signed-off-by: Stefan Klug Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/libcamera/control_ids_core.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml index 8e99bd84..f26a1b1b 100644 --- a/src/libcamera/control_ids_core.yaml +++ b/src/libcamera/control_ids_core.yaml @@ -1353,7 +1353,12 @@ controls: type: bool direction: inout description: | - Enable or disable lens dewarping. This control is only available if lens - dewarp parameters are configured in the tuning file. + Enable or disable lens dewarping. + + - LensShadingCorrectionEnable: + type: bool + direction: inout + description: | + Enable or disable the lens shading correction. ...