From patchwork Thu May 16 12:41:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 20047 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 A1F54BDE6B for ; Thu, 16 May 2024 12:42:52 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C135D6347E; Thu, 16 May 2024 14:42:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Wu0uU6mw"; 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 DA65963460 for ; Thu, 16 May 2024 14:42:49 +0200 (CEST) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:3fef:fa64:e35:24d4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5767E327; Thu, 16 May 2024 14:42:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715863361; bh=49ffeBuvOQXT4rJ/hTruZBMJK5NqXmBSIb6WvPOWEAY=; h=From:To:Cc:Subject:Date:From; b=Wu0uU6mwOelzWG/s2zXT82fIxputIcAy6O2ymWoFUWEec35La08nCFx46jKCUnlOH CjEknZb0wPnQGNWPD2CRqu4/kHJVJ+P2ZWXZ+t1dBsIgAuHTwhjAuCqM6zSGZoLHQe O6yZ2mji7XJTvLR+UqCwGuc7eVV+1xkgnVTuMg20= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH 0/3] libcamera: Add gamma control for rkisp1 Date: Thu, 16 May 2024 14:41:47 +0200 Message-Id: <20240516124150.219054-1-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.40.1 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" This patchset adds a gamma algorithm and the corresponding control for rkisp1. A camera gamma of roughly 2.2 is necessary to produce correct output images on a standard monitor and to comply with sRGB. Further information is available here: https://en.wikipedia.org/wiki/SRGB https://www.cambridgeincolour.com/tutorials/gamma-correction.htm Stefan Klug (3): ipa: rkisp1: Add gamma algorithm libcamera: Add gamma control id pipeline: rkisp1: Implement gamma control src/ipa/rkisp1/algorithms/goc.cpp | 143 ++++++++++++++++++++++++++ src/ipa/rkisp1/algorithms/goc.h | 41 ++++++++ src/ipa/rkisp1/algorithms/meson.build | 1 + src/ipa/rkisp1/ipa_context.h | 4 + src/ipa/rkisp1/rkisp1.cpp | 3 +- src/libcamera/control_ids_core.yaml | 6 ++ 6 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 src/ipa/rkisp1/algorithms/goc.cpp create mode 100644 src/ipa/rkisp1/algorithms/goc.h