From patchwork Fri Sep 16 10:37:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kate Hsuan X-Patchwork-Id: 17376 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 C3DB8C3272 for ; Fri, 16 Sep 2022 10:37:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7E77E61FAB; Fri, 16 Sep 2022 12:37:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1663324665; bh=u7jSniZ9dEKWuTdrcKnvInmONMg4NSiKRe60jkchxZQ=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=VYgv7HNB/+dtO4CU7fbwyI2bVIww9Nz2OXh2F1B3qBR+lCg4po8bOEFle14NUHpuC PpgMyxKvGsLMAllf+LjZ7e8VhQbhVmYHD111HIRFwpprOyFjwNoIo24c034f/VynxI 4GBwzmMjw3B5sjJNwWPZeiWAnwrccc4ByR+OVXfmGASz3f+BLD5vsJRBPDnpA75hDQ lTb3i+QI2BJcUoQCIXYzfy7gecXmJlc187OEv0ccyNM0IWhgWkdUvKCPy2/MRt98B5 znY08fAU3MHBr32OlKRQugKUr2Kr12l74hbyvcCLvMX/mX8uD5SG78lX9b913iuiwQ OKrhSFto3HrAQ== Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 48B1661FAB for ; Fri, 16 Sep 2022 12:37:43 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="LSPlB4g7"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663324662; 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: in-reply-to:in-reply-to:references:references; bh=xgmP2jvNq4Aci3qEkXLz9LFniveEsEPiTEvFREL+XSQ=; b=LSPlB4g7Q0WYh5h/aC9wK8+GZcCcXJ9txmRMMhWgHAS72Zrn4E7+azbw8alsU4r6pLtkwQ 4RD02Wh+p36y8nL36bmVmzT4BqERrZupl0TWRt0M8aFkRZOWeYklK56PbvouVasQTXksX+ MvQpYXWL8xM1p1Z7hTAGi7O3ukcjZw4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-619-LW7X2-2eNQKYh4huN1Qe7g-1; Fri, 16 Sep 2022 06:37:40 -0400 X-MC-Unique: LW7X2-2eNQKYh4huN1Qe7g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 76F7F185A792 for ; Fri, 16 Sep 2022 10:37:40 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.193.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 678FC40C83EB; Fri, 16 Sep 2022 10:37:38 +0000 (UTC) To: libcamera devel , Hans De Goede Date: Fri, 16 Sep 2022 18:37:12 +0800 Message-Id: <20220916103713.21132-3-hpa@redhat.com> In-Reply-To: <20220916103713.21132-1-hpa@redhat.com> References: <20220916103713.21132-1-hpa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [libcamera-devel] [PATCH 2/3] ipa: ipu3: Drive requestQueue when controls are accepted 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" Drive and dispatch the controls to the algorithms when the controls are received. Signed-off-by: Kate Hsuan --- src/ipa/ipu3/ipu3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp index ac0c42a7..4f64a546 100644 --- a/src/ipa/ipu3/ipu3.cpp +++ b/src/ipa/ipu3/ipu3.cpp @@ -657,6 +657,9 @@ void IPAIPU3::queueRequest(const uint32_t frame, const ControlList &controls) { /* \todo Start processing for 'frame' based on 'controls'. */ context_.frameContexts[frame % kMaxFrameContexts] = { frame, controls }; + + for (auto const &algo : algorithms()) + algo->queueRequest(context_, frame, controls); } /**