{"id":15492,"url":"https://patchwork.libcamera.org/api/1.1/covers/15492/?format=json","web_url":"https://patchwork.libcamera.org/cover/15492/","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":"<20220322024155.6528-1-hpa@redhat.com>","date":"2022-03-22T02:41:51","name":"[libcamera-devel,0/4] ipa: ipu3: af: Temporarily suspend AWB and AE during AF scanning","submitter":{"id":105,"url":"https://patchwork.libcamera.org/api/1.1/people/105/?format=json","name":"Kate Hsuan","email":"hpa@redhat.com"},"mbox":"https://patchwork.libcamera.org/cover/15492/mbox/","series":[{"id":2981,"url":"https://patchwork.libcamera.org/api/1.1/series/2981/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2981","date":"2022-03-22T02:41:51","name":"ipa: ipu3: af: Temporarily suspend AWB and AE during AF scanning","version":1,"mbox":"https://patchwork.libcamera.org/series/2981/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/15492/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 8A89EC0F1B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 22 Mar 2022 02:42:12 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9ED83604DC;\n\tTue, 22 Mar 2022 03:42:11 +0100 (CET)","from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.129.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B966D604C7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Mar 2022 03:42:09 +0100 (CET)","from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n\t[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS\n\t(version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\tus-mta-255-KX-IAZ0eMbCddjn3fRo1IA-1; Mon, 21 Mar 2022 22:42:07 -0400","from smtp.corp.redhat.com\n\t(int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0880A811E75\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Mar 2022 02:42:07 +0000 (UTC)","from fedora.redhat.com (unknown [10.39.192.3])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 5E62AC26E9D;\n\tTue, 22 Mar 2022 02:42:04 +0000 (UTC)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1647916931;\n\tbh=VcUwIH3twZm+pHH4DkZAQvhTBozAzb1xUSgjMgSPazg=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=cZ2dTsMzD1vJe5T6KVQu75Sp+FOa/5iJ1Sa5EG4crW5rLiI4XJ3bACC5YfeFhxb/x\n\tt2baPe0P0f78ez6sfwuNlvj7MYyexue4WjuWqJAb9xx3SVez84KpkwaXr5LioVt582\n\t3rjvZbrrjXuRNMwNZpiwa25koSugE1EGFVutn+M9bQ8mvpRKPANE38crIfOCdLyttW\n\tXHCOsFBLXe0fPC4+VcqqYoDGPvfpqypKdVRvHFnl1pUYVZpMMTJ35yhLVFcpLyxzj8\n\ttYsq6Uqu6hVtcc8f8wzy9JEQiY8lW9oCg8YwP/T/d/QBGzXST4LsVOkJr5VY85VqNG\n\t0yQE9v6xrUKdw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1647916928;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding;\n\tbh=+QEJy8NrSSOUbazK2PFVFe9Ir6iPnXNMaYQ+Axa5AbM=;\n\tb=aTVG2zITKfTVDLnslMIy44+WPZ/CDdsYZj8Ps0BLd8S1ZCeU9SkDiohP7oPumO0AM5PXDG\n\tJeKDqWuDsVnnwQVGa38f+n/cxtyllHHY1r8yatsbQviRpBdQgN6rmSXqo/cmjbawLFk9hK\n\tNO39Mf+lix1vfjVB3NwsFSdLklaqKl4="],"Authentication-Results":["lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=redhat.com\n\theader.i=@redhat.com header.b=\"aTVG2zIT\"; \n\tdkim-atps=neutral","relay.mimecast.com;\n\tauth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hpa@redhat.com"],"X-MC-Unique":"KX-IAZ0eMbCddjn3fRo1IA-1","To":"libcamera devel <libcamera-devel@lists.libcamera.org>","Date":"Tue, 22 Mar 2022 10:41:51 +0800","Message-Id":"<20220322024155.6528-1-hpa@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 2.85 on 10.11.54.8","X-Mimecast-Spam-Score":"0","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","Content-Type":"text/plain; charset=\"US-ASCII\"","Subject":"[libcamera-devel] [PATCH 0/4] ipa: ipu3: af: Temporarily suspend\n\tAWB and AE during AF scanning","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":"Kate Hsuan via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Kate Hsuan <hpa@redhat.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"The floating results of AWB and AE significantly impact the AF\nperformance and the AF scene variance estimation. If the exposure value\nand color settings are changed by the algorithm, the AF scene variance will\nbe affected and the algorithm may find an incorrect local maximum value.\nConsequently, a wrong lens position is determined and we could only get\na blurred image.\n\nThis patch proposed an AWB and AE suspension mechanism while AF is\nsearching for the focus. A lock flag is used to identify that AWB and\nAE should be suspended or not. AGC and AE algorithm test the flag and\ndetermine that they have to perform the algorithm or suspend itself.\n\nKate Hsuan (4):\n  ipa: ipu3: af: Introduce AWB and AE lock when AF scanning\n  ipa: ipu3: af: AE and AWE lock request flow when performing AF\n  ipa: ipu3: awb: AWB lock for AF scan\n  ipa: ipu3: agc: AE lock for AF scanning\n\n src/ipa/ipu3/algorithms/af.cpp  | 25 +++++++++++++++++++++++++\n src/ipa/ipu3/algorithms/af.h    |  2 ++\n src/ipa/ipu3/algorithms/agc.cpp | 14 ++++++++++++++\n src/ipa/ipu3/algorithms/agc.h   |  1 +\n src/ipa/ipu3/algorithms/awb.cpp | 13 +++++++++++++\n src/ipa/ipu3/algorithms/awb.h   |  1 +\n src/ipa/ipu3/ipa_context.h      |  1 +\n 7 files changed, 57 insertions(+)"}