From patchwork Thu Feb 19 15:05:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 26205 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 64909C32EA for ; Thu, 19 Feb 2026 15:05:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5C58C62294; Thu, 19 Feb 2026 16:05:19 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="N0hd7bdN"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CB8FE62266 for ; Thu, 19 Feb 2026 16:05:10 +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 946B519DB; Thu, 19 Feb 2026 16:04:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1771513457; bh=IQN5mfMyGVYat62QadSljdKhCwzL3IKFYLwXG9YzV8o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=N0hd7bdNd3EDuwxx30S4roWEyIYKQeFSMhtdtupk7WYLA9/S80M9/HCUwzUsDL5eO WNur3kxXlg9wfpBa5ZvPhRikvA4TDhHWzlQ/R+LJRQdEGu2FESeAvlekkzBlL98DPx h595ug28VI0pR58f18I/yGMSgyYmwltEDMMZTInE= From: Kieran Bingham Date: Thu, 19 Feb 2026 15:05:09 +0000 Subject: [PATCH v8 08/15] libcamera: controls: Define a new core Hue control MIME-Version: 1.0 Message-Id: <20260219-kbingham-quantizers-v8-8-2b6ff68ead26@ideasonboard.com> References: <20260219-kbingham-quantizers-v8-0-2b6ff68ead26@ideasonboard.com> In-Reply-To: <20260219-kbingham-quantizers-v8-0-2b6ff68ead26@ideasonboard.com> To: libcamera-devel@lists.libcamera.org Cc: Kieran Bingham , "van Veen, Stephan" , Isaac Scott , Paul Elder , Laurent Pinchart , Stefan Klug X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1771513507; l=1747; i=kieran.bingham@ideasonboard.com; s=20260207; h=from:subject:message-id; bh=KKbPES795OS8Z0E+MjbsA9rZOX36xmjEzpI1sO/XrwI=; b=xgyZhu4o2LniG15nhm6b9jK3q0LwErvwG5kpB4lgZeCrnMZVMfwPgON6uHJzvNeJgzrqoxNcz OebcqLuIAcbBcrsygs//3mCErcl1k0SKKMhTODYfMqT+6CAdzbc2kxl 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] Reviewed-by: Paul Elder Reviewed-by: Laurent Pinchart Reviewed-by: Stefan Klug Signed-off-by: Kieran Bingham --- v8: - Use [-180, 180] to allow metadata expectations to be met (without changing sign on an input control) --- 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..89991d03d79a 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°. + ...