From patchwork Fri Feb 13 16:57:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 26150 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 85C94C32F3 for ; Fri, 13 Feb 2026 16:58:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6261662215; Fri, 13 Feb 2026 17:58:16 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="t4LNIgBw"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D3A4A621E9 for ; Fri, 13 Feb 2026 17:58:05 +0100 (CET) Received: from ping.linuxembedded.co.uk (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 129C426AB; Fri, 13 Feb 2026 17:57:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1771001837; bh=MxRVq/X2FaDyZz+HFVTWDJ7sNFgvAXV2arBOc4dc1uQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=t4LNIgBwuvPaHJ7ck4KmgfOFpSlLjardm2AIQQhA6cSrVx/Vb08UZSluXxjs7XL7K 1zS6ujuaZnsKIJ47IY+8iInCcl7koufhhUvluk3MnSGcHIQwaBwDACKErUhbof2JBG NGTqaPQMNhPmjx927OdH5Vg+YVneboH0mq9sL6Zw= From: Kieran Bingham Date: Fri, 13 Feb 2026 16:57:47 +0000 Subject: [PATCH v7 08/15] libcamera: controls: Define a new core Hue control MIME-Version: 1.0 Message-Id: <20260213-kbingham-quantizers-v7-8-1626b9aaabf1@ideasonboard.com> References: <20260213-kbingham-quantizers-v7-0-1626b9aaabf1@ideasonboard.com> In-Reply-To: <20260213-kbingham-quantizers-v7-0-1626b9aaabf1@ideasonboard.com> To: libcamera-devel@lists.libcamera.org Cc: Kieran Bingham , "van Veen, Stephan" , Isaac Scott X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1771001883; l=1503; i=kieran.bingham@ideasonboard.com; s=20260207; h=from:subject:message-id; bh=9pwQy0Z5RUIYUVSoZgs41Z/gwt/Vk7IBrEhDAN6qLSs=; b=Pp2QL/yLSrXf7GHemmgm3ww8nVUSejCT4xq5y48zKf2kPClceWZXFDF9dowcAcqix5I5TaDSx l4F66QyQ6mvAIWypXwOCq1Bz/yN034jLM40wxwn4A+JOsKiHeQOTgFm X-Developer-Key: i=kieran.bingham@ideasonboard.com; a=ed25519; pk=FVXKN7YuwHc6UtbRUeTMAmranfsQomA+vnilfglWdaY= X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" From: "van Veen, Stephan" 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] Signed-off-by: Kieran Bingham --- v5: - Reworked control definition and direction --- 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 f26a1b1b08bd..6df4bc9a0372 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°. + ...