{"id":18391,"url":"https://patchwork.libcamera.org/api/1.1/covers/18391/?format=json","web_url":"https://patchwork.libcamera.org/cover/18391/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20230314144834.85193-1-dse@thaumatec.com>","date":"2023-03-14T14:48:24","name":"[libcamera-devel,v4,00/10] ipa: rkisp1: Add autofocus algorithm","submitter":{"id":126,"url":"https://patchwork.libcamera.org/api/1.1/people/126/?format=json","name":"Daniel Semkowicz","email":"dse@thaumatec.com"},"mbox":"https://patchwork.libcamera.org/cover/18391/mbox/","series":[{"id":3805,"url":"https://patchwork.libcamera.org/api/1.1/series/3805/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3805","date":"2023-03-14T14:48:24","name":"ipa: rkisp1: Add autofocus algorithm","version":4,"mbox":"https://patchwork.libcamera.org/series/3805/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/18391/comments/","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 DD6C9BD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 14 Mar 2023 14:49:14 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 10A0F62709;\n\tTue, 14 Mar 2023 15:49:14 +0100 (CET)","from mail-lj1-x231.google.com (mail-lj1-x231.google.com\n\t[IPv6:2a00:1450:4864:20::231])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 876FF626D6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Mar 2023 15:49:12 +0100 (CET)","by mail-lj1-x231.google.com with SMTP id z42so16242860ljq.13\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 14 Mar 2023 07:49:12 -0700 (PDT)","from localhost.localdomain ([91.90.166.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tq25-20020a2eb4b9000000b00295a35f30e1sm470961ljm.115.2023.03.14.07.49.10\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 14 Mar 2023 07:49:11 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1678805354;\n\tbh=uH0as5+ck4AhkXYhRQV2DalQ6o54ciPajksaMaWtZX8=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=JVshJjfzFlZvtSPWxq7ChdPNkI1rqY70SgHfQqeAAFrwq9gTmZa2JMJCNxghhTLPo\n\tghUU0PKnsVDgDcsSQ/91U1JXjzSN3WXoLpGpKC2SHNOd+gVSwB7XwPzaPyEm4kJLGD\n\tY777KscyN34mLSYhK8aQXZcLaPdkPohNYXquVFsQntvL3AMKHkpz5Pl/9IHARfL7Ez\n\t6e7KWOYWCI3VuKrwLeFz2KDJoVBRyO63/3K+q54HYCV9/K5zzUbbP3oHjZngq148l3\n\tQTyFZ3/JM5vYDO1bHSkB4CehwZ0XtaUjhRLnBwU2Vhze+/GRqxo1P/aR5p4IXhmt09\n\txkPBtSIES/cdg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=thaumatec-com.20210112.gappssmtp.com; s=20210112; t=1678805351;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=swq/umBaIyF10xERJmvJkjptJHvXh/F7enwe9/QL+L0=;\n\tb=mtAtenkknfq1kPqv8R9DjeaS7/58a9OsGZ9yMmv8hewXkeRjfWS52M+05BVCf+bPFx\n\tuwKVT/ey7cJ+YU6uILj6Xo1HrApoUJON41q7v2EsrDtHZJm6hzafpC1+r3oxhjDZSb6U\n\tRfPcLL4DyovYm43K3bspi5y2vCiDaH6kQiYfNjoSosFbfolHNbFP7BqsZ/NAOXNNgSdX\n\tjrCmTF8d9Vsp5a4kFS3vUy4dsF+VF4aS4AhLrinXMa3vauTI57QPXC9IUNY7ArPVRzYl\n\t9RulYVeyR2DplT5dZQdjv6RL5abSSPy3MRHC8d3fAnrf/sUAmqNICBpmG4C8ghfTkWwu\n\tAx5Q=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected)\n\theader.d=thaumatec-com.20210112.gappssmtp.com\n\theader.i=@thaumatec-com.20210112.gappssmtp.com header.b=\"mtAtenkk\"; \n\tdkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112; t=1678805351;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=swq/umBaIyF10xERJmvJkjptJHvXh/F7enwe9/QL+L0=;\n\tb=LPvMBhyvP4j02oThy1J1VyJj5b9r/p+Iwy20HyqjVQOBXxJn22IZS3FX17Lq6kAk8c\n\ttYJI9m0qK4X14xmQeEB+hAnerpWOrn9rOflKIGnGTX+LTiRoe+gkT8QXHWGxxjLQwGo/\n\tqsbZ/E9n56cZ2l9+oZawOeDDVbnlH8X8M/rlnXzOoR5JxHeWJsej0tplo+feTrOnBMA/\n\tQsp1uwB1xdd4FEn4E8vpBkdTxGeMlxLtK+1mq7s2WeiNm5iNNXl/buM4XfHwdPAFA+il\n\tThSMZwu2A4VQ5TusaDQzYjdw/SP0ZCNbagF2qrpkJdOkK8uNB1hhCsiT3ib5AJQFRAeO\n\tmcQA==","X-Gm-Message-State":"AO0yUKVlFsfY/kOfyX6SFX+F5yBE1ttjbYASItAk8eDqqpME8Lppg6bl\n\t5cAmUZSxoH8RkpZ2JvDvwZZlWJN/26vjafGBuRk=","X-Google-Smtp-Source":"AK7set82sfwMowWeoWYL21kdnWaOoTxWyQcnPcoMVzTKftZUzZRuxy32EEn60VVMJtVLlXIMib+Xtg==","X-Received":"by 2002:a05:651c:2108:b0:294:712a:5190 with SMTP id\n\ta8-20020a05651c210800b00294712a5190mr15740141ljq.28.1678805351626; \n\tTue, 14 Mar 2023 07:49:11 -0700 (PDT)","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 14 Mar 2023 15:48:24 +0100","Message-Id":"<20230314144834.85193-1-dse@thaumatec.com>","X-Mailer":"git-send-email 2.39.2","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 00/10] ipa: rkisp1: Add autofocus\n\talgorithm","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":"Daniel Semkowicz via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Daniel Semkowicz <dse@thaumatec.com>","Cc":"jacopo.mondi@ideasonboard.com","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi!\n\nThis is the updated version of the common contrast based Auto Focus algorithm\nimplementation and it's usage for RkISP1 AF implementation.\n\nMain changes:\n- class hierarchy changed to composition,\n- lens limits are now read from controls instead of being defined in the tuning\n  file,\n- improved documentation\n- controls parsing was moved to the queueRequest() in the interface class as it\n  should be reused by AF implementations.\n- `windows` metering mode control was moved from the rkisp1 platform-specific\n  class to the AfHillClimbing, because it can be reused.\n\nBest regards\nDaniel Semkowicz\n\nDaniel Semkowicz (10):\n  rkisp1: Add camera lens to PH and expose it to the IPA\n  ipa: rkisp1: Add lens limits to the session config\n  ipa: Add base class defining AF algorithm interface\n  ipa: Add common contrast based AF implementation\n  ipa: af_hill_climbing: Add \"Windows\" metering mode\n  ipa: rkisp1: Add AF algorithm basing on AfHillClimbing\n  ipa: rkisp1: af: Add \"Windows\" Metering mode\n  ipa: rkisp1: Add AF controls to the RkISP1 IPA\n  rkisp1: Control camera lens position from IPA\n  ipa: rkisp1: Add OV5675 tuning file\n\n include/libcamera/ipa/rkisp1.mojom            |   2 +\n src/ipa/libipa/algorithms/af.cpp              | 155 +++++++\n src/ipa/libipa/algorithms/af.h                |  41 ++\n .../libipa/algorithms/af_hill_climbing.cpp    | 400 ++++++++++++++++++\n src/ipa/libipa/algorithms/af_hill_climbing.h  | 103 +++++\n src/ipa/libipa/algorithms/meson.build         |  11 +\n src/ipa/libipa/meson.build                    |   6 +\n src/ipa/rkisp1/algorithms/af.cpp              | 168 ++++++++\n src/ipa/rkisp1/algorithms/af.h                |  50 +++\n src/ipa/rkisp1/algorithms/meson.build         |   1 +\n src/ipa/rkisp1/data/meson.build               |   1 +\n src/ipa/rkisp1/data/ov5675.yaml               |  18 +\n src/ipa/rkisp1/ipa_context.cpp                |  25 ++\n src/ipa/rkisp1/ipa_context.h                  |  10 +\n src/ipa/rkisp1/rkisp1.cpp                     |  30 ++\n src/libcamera/pipeline/rkisp1/rkisp1.cpp      |  22 +\n 16 files changed, 1043 insertions(+)\n create mode 100644 src/ipa/libipa/algorithms/af.cpp\n create mode 100644 src/ipa/libipa/algorithms/af.h\n create mode 100644 src/ipa/libipa/algorithms/af_hill_climbing.cpp\n create mode 100644 src/ipa/libipa/algorithms/af_hill_climbing.h\n create mode 100644 src/ipa/libipa/algorithms/meson.build\n create mode 100644 src/ipa/rkisp1/algorithms/af.cpp\n create mode 100644 src/ipa/rkisp1/algorithms/af.h\n create mode 100644 src/ipa/rkisp1/data/ov5675.yaml"}