From patchwork Tue Jun 28 09:06:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 16400 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 02165BE173 for ; Tue, 28 Jun 2022 09:07:10 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4516E65635; Tue, 28 Jun 2022 11:07:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656407229; bh=mMmXeEcWlUohy3dUXgtNYXVHsT/TvXIx98ShNmz5jsc=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=NCepWrITrO+88mpm9cUUPh/hUZjL88j/kQyGxD6fjGuErA8w+wSYdp23FD5OCEauA ieRBOMWdoavX7vDLKgsUQA5q/lATB6D/5AItx5oEP+g6uE8c8JhnS32W/9paNjhAiA 0Hzf98lUwPIBEGER7FfO1epkmKZxtteuimXZCHkyNgrO2PZYl8cliEdX8a351f41D0 QSLCi/PydObMqyhwdq3fDxCfxNsFBPBimzZPxZI2vZsQxAVm1SCYPevNHmvW5c6FSF WxcgXWoHvRKDk/aE6P89aUhFOBolMc+gUu9tjlsBcYPNm0MdR2yiIkxQZq6DGU8h4q vM14uorPQLpCg== Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1CD446559A for ; Tue, 28 Jun 2022 11:07: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="Ymd+uJwX"; dkim-atps=neutral Received: by mail-wr1-x42d.google.com with SMTP id r20so16705295wra.1 for ; Tue, 28 Jun 2022 02:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S80XDgO8TzT8xakpNKNck6yFt3av7NXcdG3ysJUWH2I=; b=Ymd+uJwXyC1nV7XixkBUHgxFKESIpaLEMAVGwocRhSaWlAK09ZWWFPvsJlV0I0hcv8 Mp9/I+GAG181gN2fPgKazGmRIcapkILUvQ+pVCs7bUUUD2uUUC0rQ5jkaB8fA0qxJfQh m1JWygkuI/u42oJfBueDGBqUdarEZIDoInx4zx6ikrK6lodgalQbAgztquhX9M9iRICG ldI5HW8xRiLvBykUWi9Gl9mJKlKS5pHLz47it3vjpIx5ojCp7r7ePeF4e8AmuvcWlBIy esJqzEX7ZL5n9aTRnWmjYoCdEfc1K2z34h8yckgKI29yyuGu6ExWSi0VY08IUCWKIQl1 FGBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S80XDgO8TzT8xakpNKNck6yFt3av7NXcdG3ysJUWH2I=; b=nAIKhJaZdYDUz28vxmFd5n6rSiIsfvYob4XvhIpQIAbYfMEEsIvbEQZ33VSRBcnb+V 9M4bpOaMuWB96pOsxU5VEL21b1816Pk28GGxbZqQxnjhrJk7pOfod/oV9kmgms14S1sT uHKDSTJqtMSSo4qDX479WyDA0Gd7yr5to7zVu9j7xpFJldvkHf9l+nizoEF9anDwhR8/ l1dA8CLBSnUPExj2Z/XSBPkkiDE0LQQEwMEwCc50mXMvp9rW9a/0coco9FqZMegS2DqS wr3zAJ7w0U9l8PfRZQIhC525ldzE8gwZMpjKR7aXqT54kQRo1xNN7s7en4NjpHj2PUWX H/hQ== X-Gm-Message-State: AJIora+csamXpksEdZxt7eHmfWtAGCk03XU01lbBVMHmm/zkiWQk24W/ vNRXOmHONmP8QwC5JcfSP5hHfgjiqrUtrg== X-Google-Smtp-Source: AGRyM1tnyfdBfApx23yvjYL9eLMfbf2Ys41cKu4tgW4luJ7Qc7BH75vo4WsimZLyypnU/iTeHIJg+g== X-Received: by 2002:a05:6000:18aa:b0:21b:9477:a84b with SMTP id b10-20020a05600018aa00b0021b9477a84bmr16883794wri.179.1656407227666; Tue, 28 Jun 2022 02:07:07 -0700 (PDT) Received: from localhost.localdomain (ip092042140082.rev.nessus.at. [92.42.140.82]) by smtp.gmail.com with ESMTPSA id r68-20020a1c2b47000000b0039c4b518df4sm20126972wmr.5.2022.06.28.02.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 02:07:06 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Tue, 28 Jun 2022 11:06:53 +0200 Message-Id: <20220628090656.19572-1-dse@thaumatec.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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.focus" value during process() method. These changes base on the similar code for IPU3 and Raspberry Pi. Best regards Daniel Semkowicz Daniel Semkowicz (3): libcamera: rkisp1: Control the lens from pipeline libcamera: rkisp1: ipa: Rename ctrls_ to sensorCtrls_ libcamera: rkisp1: Control the lens from IPA include/libcamera/ipa/rkisp1.mojom | 1 + src/ipa/rkisp1/ipa_context.h | 4 ++ src/ipa/rkisp1/rkisp1.cpp | 50 ++++++++++++++++++++---- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 21 ++++++++++ 4 files changed, 69 insertions(+), 7 deletions(-)