From da967ed63d22c4a4dbda4e7c218d11440b5747fa Mon Sep 17 00:00:00 2001 From: "van Veen, Stephan" Date: Thu, 19 Feb 2026 15:05:09 +0000 Subject: [PATCH] libcamera: controls: Define a new core Hue control Define a new control to support configuration of Hue adjustments when supported by the available platform. Reviewed-by: Isaac Scott Signed-off-by: van Veen, Stephan [Kieran: Rework to define as a rotation in degrees] Reviewed-by: Paul Elder Reviewed-by: Laurent Pinchart Reviewed-by: Stefan Klug Signed-off-by: Kieran Bingham --- src/libcamera/control_ids_core.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml index f26a1b1b..89991d03 100644 --- a/src/libcamera/control_ids_core.yaml +++ b/src/libcamera/control_ids_core.yaml @@ -1361,4 +1361,19 @@ controls: description: | Enable or disable the lens shading correction. + - Hue: + type: float + direction: inout + description: | + Adjusts the image hue (colour rotation) in degrees, as defined in + the HSL/HSV colour model. + + The value represents a rotation around the hue circle in HSL/HSV space: + positive values rotate hues clockwise (for example a +60° turns + Red hues to Yellow hues), and negative values rotate counter-clockwise + (a -60° turns Red hues to Magenta hues). + + The nominal range is [-180, 180], where 0° leaves hues unchanged and the + range wraps around continuously, with 180° == -180°. + ...