{"id":16219,"url":"https://patchwork.libcamera.org/api/patches/16219/?format=json","web_url":"https://patchwork.libcamera.org/patch/16219/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220613142853.98484-11-jeanmichel.hautbois@ideasonboard.com>","date":"2022-06-13T14:28:53","name":"[libcamera-devel,10/10] test: af: Introduce a capture script test file","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"08f2017169fdd797a977daa5ec4d96a459b3dce2","submitter":{"id":75,"url":"https://patchwork.libcamera.org/api/people/75/?format=json","name":"Jean-Michel Hautbois","email":"jeanmichel.hautbois@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/16219/mbox/","series":[{"id":3174,"url":"https://patchwork.libcamera.org/api/series/3174/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3174","date":"2022-06-13T14:28:43","name":"ipa: raspberrypi: Introduce an autofocus algorithm","version":1,"mbox":"https://patchwork.libcamera.org/series/3174/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/16219/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/16219/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id F3F5DC327B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 13 Jun 2022 14:29:12 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 563BC65658;\n\tMon, 13 Jun 2022 16:29:12 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2DA6165645\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 13 Jun 2022 16:29:02 +0200 (CEST)","from tatooine.ideasonboard.com (unknown\n\t[IPv6:2a01:e0a:169:7140:a1c7:c28c:7720:9b30])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id CE226835;\n\tMon, 13 Jun 2022 16:29:01 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1655130552;\n\tbh=tBokIjL+Kgf/D3u4E77nHBWGNk/M5DqFYsM05lkiDyE=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=B3JA3zpCJKQMGTs+4WOTBtJ3nH0bZzXnACCt2RM42bOCJdO0JttOXs6hY8OoPTxmo\n\tmqGK8inYlHDwcgNHhDhjz1ZooVCqDM7M1oq2Vtlv85JLg6QdCYU7oTifBFzx0JPtaV\n\t/JrXXlN7pXamAPsrOvSyr4p4ywhg6w9Ry6PqPPI3Yyx8JNqZoDZq8RIDXrIYEV5CsE\n\ttpNmC1itAcUAUBECygirTwMFnFEH0QphaAxsLD040Fqij3Tc5VQ4J6GTjfwO352bBQ\n\twH7CTq+lokYcqZUDXEMpEzALWa7pVMn7NV7aEW1wgVnFum5FF8pWmRkYvXyIXMquQ+\n\tpc3kQu3bGzGag==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1655130541;\n\tbh=tBokIjL+Kgf/D3u4E77nHBWGNk/M5DqFYsM05lkiDyE=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=RJVNTYW0bZsbVXVdMFwy7WQVZ9Z/bZRJqEwbXt6PuA1EyQM/+OMDJUuavPhLb6vIy\n\tCrsSyveihH/HjADBL2hHwIeRb6qh2yvHtbDuNKC0EyhN0xK14uyIfFvI7GaRNSNqzJ\n\tm4NEP8piyy3BDKswyQFI8ljU4v063KVAkqwAe9wM="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"RJVNTYW0\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 13 Jun 2022 16:28:53 +0200","Message-Id":"<20220613142853.98484-11-jeanmichel.hautbois@ideasonboard.com>","X-Mailer":"git-send-email 2.34.1","In-Reply-To":"<20220613142853.98484-1-jeanmichel.hautbois@ideasonboard.com>","References":"<20220613142853.98484-1-jeanmichel.hautbois@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 10/10] test: af: Introduce a capture\n\tscript test file","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Jean-Michel Hautbois via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"When testing the autofocus state machine, it is useful to know which\nstate is expected for a given frame. Introduce a yaml file to set the AF\ncontrols at given points in time to ease debugging the state machine\n\nSigned-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>\n---\n test/af/af-state-machine.yaml | 46 +++++++++++++++++++++++++++++++++++\n 1 file changed, 46 insertions(+)\n create mode 100644 test/af/af-state-machine.yaml","diff":"diff --git a/test/af/af-state-machine.yaml b/test/af/af-state-machine.yaml\nnew file mode 100644\nindex 00000000..54da3fe2\n--- /dev/null\n+++ b/test/af/af-state-machine.yaml\n@@ -0,0 +1,46 @@\n+# SPDX-License-Identifier: CC0-1.0\n+\n+# AF controls test script\n+#\n+# A capture script allows to associate a list of AF controls and their values\n+# to frame numbers.\n+\n+# Manual mode\n+# State should be AfStateIdle\n+# We can still change LensPosition\n+frames:\n+  - 1:\n+      AfMode: 0\n+      LensPosition: 0.0\n+\n+  - 5:\n+      LensPosition: 100.0\n+\n+  - 10:\n+      LensPosition: 500.0\n+\n+  - 15:\n+      LensPosition: 0.0\n+\n+  - 50:\n+# Change to continuous mode\n+# State should immediately be AfStateScanning\n+# The algorithm should start a scan\n+# It will settle on AfStateFocused or AfStateFailed\n+      AfMode: 2\n+\n+  - 80:\n+# Change to auto mode\n+# The Lens or state should not change until AfTrigger is received\n+# Entering this mode will report AfStateIdle\n+      AfMode: 1\n+  - 90:\n+# Start the scan\n+      AfTrigger: 0\n+        #  - 110:\n+#Cancel the scan\n+      AfTrigger: 1\n+\n+  - 100:\n+# Switch back to continuous\n+      AfMode: 2\n","prefixes":["libcamera-devel","10/10"]}