From patchwork Thu Nov 13 12:24:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 25026 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 26E8EC3334 for ; Thu, 13 Nov 2025 12:25:13 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AFDC960AAC; Thu, 13 Nov 2025 13:25:12 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="nMEnAXjm"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3C29860A81 for ; Thu, 13 Nov 2025 13:24:57 +0100 (CET) Received: from Monstersaurus.infra.iob (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1BEF019DC; Thu, 13 Nov 2025 13:22:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1763036577; bh=wfsf72qv2NCaX6PuHQmPl5h9CQMIf+I4Pg95L5F4S3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nMEnAXjmMPifIazRXKF7RJlaGq9lBQnIYH1a566pReNXbvEelmDiZ3akzwY1LwyQ9 oKbj+9VrpByJskpb6Icbe8z3I1NzKHPYRKKWdRfulwlidX9U5EDn5r5meFAoJcxxH9 A5t2Oe5mtVPz4WipKvvkJ5ZD86oU87gLU394Vojk= From: Kieran Bingham To: libcamera devel Cc: "van Veen, Stephan" , Kieran Bingham Subject: [PATCH v3 12/14] libcamera: controls: Define a new core Hue control Date: Thu, 13 Nov 2025 12:24:47 +0000 Message-ID: <20251113122450.287633-13-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251113122450.287633-1-kieran.bingham@ideasonboard.com> References: <20251113122450.287633-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 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. Signed-off-by: van Veen, Stephan [Kieran: Rework to define as a rotation in degrees] Signed-off-by: Kieran Bingham --- src/libcamera/control_ids_core.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/libcamera/control_ids_core.yaml b/src/libcamera/control_ids_core.yaml index f781865859ac..4993da14b3f6 100644 --- a/src/libcamera/control_ids_core.yaml +++ b/src/libcamera/control_ids_core.yaml @@ -1346,4 +1346,17 @@ controls: reduces the WdrExposureValue until the amount of pixels that are close to saturation is lower than this value. + - Hue: + type: float + direction: inout + description: | + Adjusts the image hue (colour rotation) in degrees. + + The value specifies a rotation around the colour wheel: + positive values rotate hues counter-clockwise (for example a +60 degree + rotation turns Red hues to Magenta hues), and negative values rotate + clockwise (a -60 degree rotation turns Red hues to Yellow hues). + + A value of 0 leaves the hue unchanged. + ...