From patchwork Fri May 6 05:18:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kate Hsuan X-Patchwork-Id: 15803 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 5C24BC3256 for ; Fri, 6 May 2022 05:19:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A87AD6564A; Fri, 6 May 2022 07:19:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1651814363; bh=BobRf0Hgs4Nw0Imd9z9nR2gju10e7A1AAdgpoNx7dDQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=X+/+J92MlyCGsWugSIPaTD/DxsXsYEPhYCFbGZF90jy8O4BmZ80aHUpZ7cp3lHego wYf/heCjqk8zQR474l7EOIl3VB4+NramTkfjlH2qraemJ68ojodFg6jQREPweIZzIc yYsiT+7vUW4LWIGBwh2q3Lcrzung/XOgqhlYj2JCbiaFHvKRQ8eW82LtPkrPWyu31W pCXhrzXcIUCCQ7qFmJMPWao1oA2NRDqAF4MnfkvAPb/y6XyZifwL+lSVECWwLtfJB9 vgB9pYXVUsLUnUOaH3vBsBa1fGDqdlDpKAo1PykW7LqUmhLFCMgDRvgC5EV9YHU4KL LhZXbL7lbYPmg== Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [170.10.129.74]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 26F8B60421 for ; Fri, 6 May 2022 07:19:20 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="iZCauC5g"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651814359; 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=DejzTVkkBE9ItB5ryXeDYYsjDMamhUE/ZsaJPVym2QA=; b=iZCauC5gqj1WFg9TDAhWs8xnfy0SS6UTXlUGlMy/psVVJt3RUdpKWquoZ3G5+bgF0OF98T dEQM/Gx1HXRkYK9RlvBCyX5/LSkRNqulYGuo5LjzDC504EtABv6R9pXmZ804vDnf8OQccH KuBQVWWPN4T/9yxrGd5IKCwogBv23Ms= 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-501-eyWNxqbeN46yXKlA9o_y0A-1; Fri, 06 May 2022 01:19:08 -0400 X-MC-Unique: eyWNxqbeN46yXKlA9o_y0A-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6D44D3803902; Fri, 6 May 2022 05:19:08 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id 902D22166B1A; Fri, 6 May 2022 05:19:00 +0000 (UTC) To: libcamera devel , Jean-Michel Hautbois , Hans De Goede Date: Fri, 6 May 2022 13:18:38 +0800 Message-Id: <20220506051841.70792-1-hpa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hpa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [libcamera-devel] [PATCH v2 0/3] ipa: ipu3: af: Temporarily suspend AWB during AF scanning 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 floating results of AWB significantly impact the AF performance and the AF scene variance estimation. In the v2 patch, the AF starts to work after AGC is stable. Moreover, AWB is properly suspended while AF is running to mitigate the performance impact. Changes in v2: 1. A moving average based stability estimation strategy is used to determine the stability of AGC results. 2. AF works after AGC is stable. 3. AWB is suspended when AF is running. Kate Hsuan (3): ipa: ipu3: agc: AGC exposure stability test ipa: ipu3: af: Trigger AF after AGC is stable ipa: ipu3: awb: Suspend AWB when AF is working src/ipa/ipu3/algorithms/af.cpp | 12 ++++++++++++ src/ipa/ipu3/algorithms/af.h | 2 ++ src/ipa/ipu3/algorithms/agc.cpp | 22 +++++++++++++++++++++- src/ipa/ipu3/algorithms/agc.h | 3 +++ src/ipa/ipu3/algorithms/awb.cpp | 8 +++++++- src/ipa/ipu3/algorithms/awb.h | 1 + src/ipa/ipu3/ipa_context.h | 1 + 7 files changed, 47 insertions(+), 2 deletions(-)