From patchwork Wed Jul 20 15:42:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Sylvestre X-Patchwork-Id: 16707 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 5743ABD1F1 for ; Wed, 20 Jul 2022 15:42:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9ABE66331B; Wed, 20 Jul 2022 17:42:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1658331754; bh=B4CInFeCJuK8l1NH3IN6ut1ImmTBaZzVpmuGaDPXV+A=; 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=oo2HfmhLvr2LQrXjE6ZSRDx36koIEhza4mGn9XsBJKifte7nnTXpyMYWzL8UrfdkK GOcPwKIKlheGaumeuDKsz76c7NAxVl1NRJ5ugkW/Y0ManmNAH4ehjN13E07f3e+UE0 3srJ97fN743p1Ea9jl/O2f3Rfpna+MGJIVFsP1ZVArxN6STK66DeRJwfDEPS7ogey2 RrHYVNhjmECOThEqSzaIm0P4tPA8RTtyh5MYnM6oygzDzPkPZEtqdNvvQvOoaSFMDA Cu5IYr1hjY9k1Ogec6yNIEJIRifZbBncH0znqJMYiM8Or/4tocfuhXm/vFnls3sDbG KTdg8el5/5Rkw== Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 45A566330D for ; Wed, 20 Jul 2022 17:42:33 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="equXuNgl"; dkim-atps=neutral Received: by mail-wr1-x429.google.com with SMTP id d8so6726037wrp.6 for ; Wed, 20 Jul 2022 08:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gA0iT8RDrNPKRg5o5iqBwPGdGx6XlOTQhR6ridrzt+c=; b=equXuNgllxqRRxQZxEAQPa9bvm0XUpoIxxm/6zJjkxQcIH9ZERcGhXZ/n5hQzBDZfG GkLnmLaLtP85pXN8d2r25uAQcs4/ho2oUscPd3WWqJ9pSC6hXVwwIUXrUsrHuu38s6b5 NR0plh/+0+zrp6ZAfCJAuOAEe6GF3g1R7BmUXsjmu3PNsFi9sy6Q7ZlOWFXiRg6FGhLx g3JUiiSg1SKX9Al8mlYaY7K2eAG28NLpCtG4alsD6nzt2lVM44QhD2nWOOacpQT/vHsU kHQuUDFXus7Eewqa/jXfhrFpy0skWoZ3G1YJoUO6xQ6sWhsJpd0EE1cFrQ34asLbgVwB Un5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gA0iT8RDrNPKRg5o5iqBwPGdGx6XlOTQhR6ridrzt+c=; b=ZwjUsTo8hqKT1JnRh62EJHl++IyUaSFiMJn3KUZkp6F0Br2LD2GrbSmHxouydILtmj A2CsusgMdz7t2pk1lLi6a8/iqTmrj9D6NS+49SsQM7mPrUJk4kUJy2le3GRGCXXY/ZEL lkymqK0Xj94VqJ31AD5m7Mm7JWsCYp5RAhRBi01gVH8I3R+tO05nyE4e+IzkqF/N7lJm uONgGImAJpmUGyQkLRKYEXj916TgZptXWt4++FI5bqlw2cmnpqv8RhlJRyzaxACWZrA4 u6c2vZdQQtkhufznu7DJ2ihf7bUfKOIlzHLK6OOu4kuVnVMB3ljacth/0bPlI+Gbj0wb AZUA== X-Gm-Message-State: AJIora9hdy0cKiv/dTtU9BnPwmXgXEAvWUdf/aGVOYga6HmvM/y4fviA j4vuaU2mur/N0fCTILYRZfUa8iK/n/oZz/eb X-Google-Smtp-Source: AGRyM1svr4oRkUZ+8LqKgrFPnL6rchrw9jCYGjjGotuB2Po3NWnt3p9N82hQRCrd3rO1ONiG1rZJdw== X-Received: by 2002:a05:6000:15c3:b0:21d:9f5a:df83 with SMTP id y3-20020a05600015c300b0021d9f5adf83mr31782430wry.360.1658331752680; Wed, 20 Jul 2022 08:42:32 -0700 (PDT) Received: from BL087.. ([2a01:e34:eea9:e630:516d:f303:6345:b768]) by smtp.gmail.com with ESMTPSA id d2-20020adffbc2000000b0021e489ec78bsm2159294wrs.21.2022.07.20.08.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 08:42:32 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 20 Jul 2022 17:42:19 +0200 Message-Id: <20220720154221.50937-3-fsylvestre@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220720154221.50937-1-fsylvestre@baylibre.com> References: <20220720154221.50937-1-fsylvestre@baylibre.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 2/4] ipa: rkisp1: Transfer queueRequest() call to each algorithm 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: Florian Sylvestre via libcamera-devel From: Florian Sylvestre Reply-To: Florian Sylvestre Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Implement rkisp1 queueRequest() function to update each algorithm with user controls. Signed-off-by: Florian Sylvestre Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder Reviewed-by: Kieran Bingham --- src/ipa/rkisp1/rkisp1.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index a32bb9d1..34034526 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -269,10 +269,10 @@ void IPARkISP1::unmapBuffers(const std::vector &ids) } } -void IPARkISP1::queueRequest([[maybe_unused]] const uint32_t frame, - [[maybe_unused]] const ControlList &controls) +void IPARkISP1::queueRequest(const uint32_t frame, const ControlList &controls) { - /* \todo Start processing for 'frame' based on 'controls'. */ + for (auto const &algo : algorithms()) + algo->queueRequest(context_, frame, controls); } void IPARkISP1::fillParamsBuffer(const uint32_t frame, const uint32_t bufferId)