From patchwork Thu Aug 15 08:37:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 20940 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 899B0BDB13 for ; Thu, 15 Aug 2024 08:37:32 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 81696633BD; Thu, 15 Aug 2024 10:37:31 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="Grqs+XKI"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0E93763393 for ; Thu, 15 Aug 2024 10:37:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1723711049; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bvp6TUzT1fsGOGaYsuwvFWjtMBoeL/l344qnuGfL+b4=; b=Grqs+XKIgiIHx+iXDlwDg/S8n0jeLdfc4hQ2AuK/nzZ/aQ4qbLmfzTb2QxiMtXPXkSV5jT Ri4ysXgjWVZTtOHMgVp6psoMVUU9Gib/TH0nHlgG8HqVIBqv0XSs/cNzJMNMjHJRU+NIwn jmsioEY0a3wQPvfXbgspgkny6hN8BTo= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-235-S7EpJG7ENhq4BWdTJ0Juvg-1; Thu, 15 Aug 2024 04:37:27 -0400 X-MC-Unique: S7EpJG7ENhq4BWdTJ0Juvg-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 821DA19560BF; Thu, 15 Aug 2024 08:37:26 +0000 (UTC) Received: from nuthatch.redhat.com (unknown [10.45.225.128]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 113BE1955DC6; Thu, 15 Aug 2024 08:37:24 +0000 (UTC) From: Milan Zamazal To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Daniel Scally Subject: [PATCH 0/1] Get black level from the camera helper Date: Thu, 15 Aug 2024 10:37:15 +0200 Message-ID: <20240815083722.237229-1-mzamazal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 patch takes the black level value for the given sensor from its specification, if available. The initial intention was to get the value from the tuning file but in the meantime the value was added to CameraSensorHelper so it’s taken from there. Note the patch is on top of “Software ISP refactoring” series because it depends on it (and it is not exactly a part of it). Milan Zamazal (1): libcamera: software_isp: Get black level from the camera helper src/ipa/simple/algorithms/blc.cpp | 10 +++++++--- src/ipa/simple/algorithms/blc.h | 3 ++- src/ipa/simple/ipa_context.h | 3 ++- src/ipa/simple/soft_simple.cpp | 3 +++ 4 files changed, 14 insertions(+), 5 deletions(-)