From patchwork Thu Mar 31 15:17:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 15590 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 409B9C0F1B for ; Thu, 31 Mar 2022 15:17:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7D5F365631; Thu, 31 Mar 2022 17:17:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1648739876; bh=8LawcREkAz0RW3EJVArDibEWQ8/YslVa+KlNxTI83fI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=eKCd8PL4W1w/aZlVFF2OjK4ICfZo0SuN3hyliAaLZh+K4mCcNUnIUGkQczU9yjeM4 sA73LeE2Vt2kXqi8691UMXkKvyLvqnNENA+Zomh7HQoTb8Ds5E6G5k74xQ9WR8A2Yo GNET0yD9Pj0qW1LG+bsc4TThp4iZYUWe1MR+hngkTipDa94kd1eoVjmT0rHMXt4bvb /HLjJPnC6TYW8nmJPE6wyIi897uTRvrLwOfW2bMU0E/WPp++ZM2tE9aOOKY63MydLi Iv/oDZ1t2jWt2yQzNpq+6zFW9HVKBIJ2Zao5Ht9Dan9Rw1vOMRaHQjU9eRnwv8r2qb UUFeI+uM4aHuA== Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 62BB96559A for ; Thu, 31 Mar 2022 17:17:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="YzR/+9eV"; dkim-atps=neutral Received: by mail-wr1-x42c.google.com with SMTP id m30so280630wrb.1 for ; Thu, 31 Mar 2022 08:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ElbFjPr9j2PgGSynkhqAvBkCTC6SCSBK+cpzfLXDHJA=; b=YzR/+9eV+us3T0hf8YhdUkQ5XpUMXI9BhF5nnhCswe8bdrKqoCyOSHwCNwL8jgeNH7 P8bohx1BS9IXikvy1hgUr/VN9s+jmbjJjSNHfpV3Z3TXtcdc8+R5+NhlkZZLNdKzazeP zpOIz+nDJZD1qkriyq8zlIR+YL7ilcCcrcsf2GErhSts9tI/0uHwZeoREJ56pNsuzxx9 xFtjPtrihsyzRau1VhIchO09gvDQoaTQy4Jyp1nVFe25regBFbrCguh/0OGHQKu2opPU nXaikVo0U6CuVzXyDDStxLYJkfHluTlyKGCtpicZAbQO6K1+55wzN9CHShBod1o5mTfN wT5Q== 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=ElbFjPr9j2PgGSynkhqAvBkCTC6SCSBK+cpzfLXDHJA=; b=sGVUrvh/1oU4PXQHXmCi7TWt4xMWoSMyEK+c6HuJ6Q7CSs3VLOMBn4S8lGWMfJT0ta 8fGV73M57bsO9uu6zdb/l58CcKNyphdjE01dum6tEKHZN+wRzO0ne1c8eZLoO+Nk2+vI zQ+njvfyvakVUzG6E5RTm4R4WWXxE+VExdFDIpBuT0/TQpL5XaA6F2/dHyn55G/rdEas K79ZfW4ttqD9On0Yg9I0Z20pA/gHGnojaRsSu1XK0xeCOdad+4TVRpj/ZLLZAAiKIj7Y 9SpdB0RMQ/E9blka+eSVVIWQtTHkyaW41iSvfNIh0oZWejdFeekGqnFi2m6kfNOuzRj1 DKDw== X-Gm-Message-State: AOAM531iZRPSQlJf3Zkg9OLRILp5akHvGKjjhPSH8dDZ24EmC51raiJE d/1IGEO6sXXkTubwHHLhlr1ZMtMsmaIfqV7J X-Google-Smtp-Source: ABdhPJxbpB8oLr4fvjkrybFuPRzHxWDNHHdTS38dwJxmY6zgCVktsfb7qodpHxahkUkCVDAqtDv4Xw== X-Received: by 2002:a05:6000:18ac:b0:205:a73f:8288 with SMTP id b12-20020a05600018ac00b00205a73f8288mr4587731wri.172.1648739874653; Thu, 31 Mar 2022 08:17:54 -0700 (PDT) Received: from pi4-davidp.pitowers.org ([2a00:1098:3142:14:e4a2:3070:eea4:e434]) by smtp.gmail.com with ESMTPSA id i1-20020a05600c400100b0038cf3371208sm7537267wmm.22.2022.03.31.08.17.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 08:17:54 -0700 (PDT) To: libcamera-devel@lists.libcamera.org, hanlinchen@chromium.org, hpa@redhat.com, jeanmichel.hautbois@ideasonboard.com Date: Thu, 31 Mar 2022 16:17:46 +0100 Message-Id: <20220331151747.19458-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/1] AF controls 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: David Plowman via libcamera-devel From: David Plowman Reply-To: David Plowman Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi again Here's v2 of the AF controls. Besides some relatively minor formatting fixes and some re-wording, there are two principal changes: 1. I added an AfLensPosition control (distinct from LensPosition) that lets you easily set the lens to hyperfocal (for example). 2. I've expanded the AfState to include the mode and one or two other things so that it completely reflects that true state of the algorithm. And here's a link to my attempt at a state transition diagram: https://docs.google.com/drawings/d/1rU2nS82dEC8Y2eY0lKPkQQhd67gKLOl7PvSeUcL1j_E/edit?usp=sharing (it can always be Ascii-ified at a later date!) Thanks David David Plowman (1): libcamera: controls: Controls for driving AF (autofocus) algorithms src/libcamera/control_ids.yaml | 373 +++++++++++++++++++++++++++------ 1 file changed, 313 insertions(+), 60 deletions(-)