From patchwork Tue Aug 9 14:47:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 17047 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 0E07BC3272 for ; Tue, 9 Aug 2022 14:47:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B6CF46332D; Tue, 9 Aug 2022 16:47:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1660056430; bh=gxL0uKOkEuEJXJO1i0wIMckastYlfCQyuQ/vfhADdfw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=lnVA5GMI9qZsb+IqDrw077R0zevK8n6D9HWQ3EpWGd68s0UxUcXbtkXiD3UGmj5Tl /kchQHzjig+wupIpg6Y5/ZzOBm6Ll/StC7iMaAWCFOixaNKsX33aOOdSTr0TV9gfFs k5tIFBTqVQIi8NNXZCcDKSaLgjIYkYZ+AlO8F/ftE+MIiF1jp5h91mQQKsSFixZ7qC cvKhp9hR0Z+8QUcTIBy1aOEgLr1XN1q+MreGc0z4iWKbUPX43rhA5IFT17oNGst/fQ O59B6V9txMJDPSYf74No5iQXXa0GnFxgm7G2r1pXCDy4bdZenD94iYLMtAlr8xn5hh i1VkLZ7Uj/JPw== Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id ED88661FAA for ; Tue, 9 Aug 2022 16:47:08 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=thaumatec-com.20210112.gappssmtp.com header.i=@thaumatec-com.20210112.gappssmtp.com header.b="eVdbEyF5"; dkim-atps=neutral Received: by mail-ed1-x52e.google.com with SMTP id z20so13498076edb.9 for ; Tue, 09 Aug 2022 07:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=89To/Pps+BqMrNPrdfoVD30Z8/PQcNWSJqE1ueVPvMo=; b=eVdbEyF56lfkF+zzA8v70hlUI9tzHbjR0rWfA65UrZIZ34aAbIia1Bqi5bQ30LVyoR ytvHJa7s2asqAdgWZozCLjLzg59J+aGzYFXa3sIOb2hSqCucP6W5aQjzbh+gANNRzsLJ GjsZzsPNtXr+ojtp2BFE3u5qH7+nm/UXpa153RNBYGivbHgPDUxbli3nvrfzlM1Y90n1 MBGqAC/WFDlywt0e1evFkL57dh68ddikG3bVimNiTcJn3DlDwODNOSL4/8AUPAoqZCy+ JcoD+eT+y7HvIQC38nFxFXNQfV6t5kf0SKyWEP2G6s1irLwGDzUkyBv9momfOFsh84Wc 5Xwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=89To/Pps+BqMrNPrdfoVD30Z8/PQcNWSJqE1ueVPvMo=; b=2CDxYsThjOU0xeM1jEUt2yv7utrAp1NlLUlhU1+39FXFFriU0L9hIxuoSO1Mm29mRC 3Pe9aoK5VCN08WTox+1ILdZPpm+y8MiNwejpNQFj+FuqV3RTEiQKFAhyWj3XYG851AWK N3ZjnH6AR4FNeXUYZUDcqho9lMQ5uxUoGLFAUTFFqxZzdAgHQSYZc7EzsbO/LiDvZGkb dIJ50gmKMTmuBy+yMAMvpODClnSIPAjlepM7MBT0TqF74vABEOUrvK0ocrY6Fng8vfaL cxfx6bBgMiO6miS330R7gccgRwa6JcJxzKNPeFl9Fle1uVFEGYnUFJ4l3OLnxmbsk1Py bPdg== X-Gm-Message-State: ACgBeo2i3hooI9sNoOsX7qhT5LCnqX9lE5UCny3RQ608cjd4Etxdbr4c FmZrY7IqG8Kh5Ygf8ppdmVi/Pi1I0MrIxg== X-Google-Smtp-Source: AA6agR5rhX679FpHS32oreHu5oKR+3mWLvi8ix9nb1hg3tGn3ObFRU4xcUHe153N1QOl84ZR84u5Aw== X-Received: by 2002:a05:6402:27cf:b0:43f:f6a:3286 with SMTP id c15-20020a05640227cf00b0043f0f6a3286mr19769658ede.1.1660056428676; Tue, 09 Aug 2022 07:47:08 -0700 (PDT) Received: from localhost.localdomain (ip092042140082.rev.nessus.at. [92.42.140.82]) by smtp.gmail.com with ESMTPSA id cn15-20020a0564020caf00b0043ba0cf5dbasm6058486edb.2.2022.08.09.07.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 07:47:08 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Tue, 9 Aug 2022 16:47:01 +0200 Message-Id: <20220809144704.61682-1-dse@thaumatec.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] libcamera: rkisp1: Add lens control 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: , X-Patchwork-Original-From: Daniel Semkowicz via libcamera-devel From: Daniel Semkowicz Reply-To: Daniel Semkowicz Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, This patch set adds lens control that is needed by auto focus algorithms. AF algorithms can control the absolute focus by setting "context.frameContext.af.lensPosition" value during process() method. These changes base on the similar code for IPU3 and Raspberry Pi. Changes in v2: - Remove unnecessary lens validation - Rearrange commits Best regards Daniel Semkowicz Daniel Semkowicz (3): libcamera: rkisp1: ipa: Rename ctrls_ to sensorCtrls_ rkisp1: Add camera lens to PH and expose it to the IPA rkisp1: Add camera lens position control from IPA include/libcamera/ipa/rkisp1.mojom | 1 + src/ipa/rkisp1/ipa_context.h | 5 ++++ src/ipa/rkisp1/rkisp1.cpp | 33 +++++++++++++++++++----- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 21 +++++++++++++++ 4 files changed, 53 insertions(+), 7 deletions(-)