From patchwork Fri Sep 16 10:37:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kate Hsuan X-Patchwork-Id: 17374 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 0F5EEC3272 for ; Fri, 16 Sep 2022 10:37:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7E83561FB4; Fri, 16 Sep 2022 12:37:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1663324653; bh=7LftBiZyMrbXpquaMzmwAD/x4Qh4LQmuHERqYXQ8iJk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=jvpDsMLqRqJU6Q2eXqhs7LhFhb+VRCJI6mz8+d/P/qGjZ6Gzx3Pi4bdIp/1QTnBN0 h+U4OwHtQvKVBY19BGz6UwQ3Yu2qu3HB3DUBXrmlTPe4AHYd74mbaIq30QSyUJswUd 8iDOYtqyKzEOUesFhLtA+5ccbw7Y+BydRnhc9zjNY9kpVgyaU2mXcoxbDt0BOjBR9Q vLGxuoTrN+UNqQ7Fhry3i/XY9B1Z/Kj85p0zrDu6Wur+L7hjM4p3j3nqK6rVvA246J EeWCvJIHcvuy1YWABQFE56RhYuiGvEuENw4912yyEGEigw5Hi25V1gh6IOrn6cYRzQ cVvOIXyqP5KqQ== 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 A950661FAB for ; Fri, 16 Sep 2022 12: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="FsQ9y2LQ"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663324650; 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=hVRbtkomYvNkRnL33lYrlx5pGOurtUlVa4u3RI3bOxQ=; b=FsQ9y2LQObBQoA0nEMlMZsoRFweYdqX0UHDBBDBw2clHpQ4Jak8oVYXEy0Mz1khIi7t5HU /lOvqyY3vpWEDi7Wmzv6M8eualrmWcAawtx5XKhxNXPK6Yk7ZSPWeIjXI6N4I0CeuhLMdL oe0NO58+206zYeFk6x6TL75snxdZBwg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-657-3jz4I1tlN8C9JEMrj_Gn4g-1; Fri, 16 Sep 2022 06:37:27 -0400 X-MC-Unique: 3jz4I1tlN8C9JEMrj_Gn4g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5CB3F29AB3EF for ; Fri, 16 Sep 2022 10:37:27 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.193.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D76D40F2D20; Fri, 16 Sep 2022 10:37:24 +0000 (UTC) To: libcamera devel , Hans De Goede Date: Fri, 16 Sep 2022 18:37:10 +0800 Message-Id: <20220916103713.21132-1-hpa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [libcamera-devel] [PATCH 0/3] Basic AF control for IPU3 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: Kate Hsuan via libcamera-devel From: Kate Hsuan Reply-To: Kate Hsuan Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The basic AF control includes AF mode selection and lens position settings. The AF mode behaviors are described as follows. 1. Auto mode The AF result is not sensitive to the change in the image variance so if the algorithm finds the focus, and the focus will be persisted until the variance is significantly changed. 2. Continuous mode The AF result is highly affected by the change in image variance. The focus result will be changed according to the environment immediately. 3. Manual mode The user is allowed to set the lens position. Kate Hsuan (3): ipu3: Registering AF controls ipa: ipu3: Drive requestQueue when controls are accepted ipa: ipu3: af: AfMode and LensPosition control implementation src/ipa/ipu3/algorithms/af.cpp | 106 +++++++++++++++++++++++---- src/ipa/ipu3/algorithms/af.h | 15 ++++ src/ipa/ipu3/ipu3.cpp | 7 ++ src/libcamera/pipeline/ipu3/ipu3.cpp | 2 + 4 files changed, 114 insertions(+), 16 deletions(-)