From patchwork Mon Jul 4 15:23:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Sylvestre X-Patchwork-Id: 16532 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 66B7EBD808 for ; Mon, 4 Jul 2022 15:23:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BF65865651; Mon, 4 Jul 2022 17:23:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656948206; bh=+Nga6QCczRCHDYA8vGG8oeRrwRHQFtYoydvMcCmijh0=; 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=LiRYAT76hOs9KlzRfQw6t5Jk2y8wG3zNFuzYxhfaIHjb49ClKdUNOr0xo9e1toHpn aPSheQMh+GBnsfyKnBepSHY94QRxlNbtprSOO4KUnppHNET5rrPCe4bvDcwuJ/i4Yr 0my3PLMDmoeBMEeh8fsmOHNMCvRgshZwErVHV/4R2fIU5t2ajkJ9DISgl8GSraErNK BIco/+DsK8LSpBXlTW9aEf6jL32IUD62uiEA3zKhdJfp1QxPTfe6jpMMFsXqb+MFXm IpSOgf/c1c/VpUEcPoz9twMNe68jDaA/0Rtibtkaiw4qGxYIgSveMCzbsKPMFbvUK8 aJgrFPfzk8tuw== Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id AC5966564B for ; Mon, 4 Jul 2022 17:23:24 +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="6BHj40P8"; dkim-atps=neutral Received: by mail-wm1-x32c.google.com with SMTP id g39-20020a05600c4ca700b003a03ac7d540so8191241wmp.3 for ; Mon, 04 Jul 2022 08:23:24 -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=rftLrhBobROBzZJz5X3Yo8uPXhcnO3e+6JPwXZtQ2tU=; b=6BHj40P8vhL4JSbrocROzwsuMQrctwFzVLdWHtSNVeq3ovNlXIYkeO7SWZE/Elqs/F CkCtH1J17HV50fkPPzvK8fxAhtiQJFmwQFUYTCAzcqrrcM3hlsFPMHHo8mFPCsiYZ6QZ OBi+eoe1AOBIrLBij/D3gRBzr9WYlfGUYRH90lGJ3b+4KISRsbSvwds0D04JSg20SMV5 5ualXwH6jVCCOND4hLaVH15Zm6W/i6Yu/a03ClKUncEhM9+oSDnEBPAGtRZhJv7mGzCB OJNPf+S4M4oXT969RemS4WmnIWY62UxWpjB/slKwS5nVoamaUeTZKD/J3uS75WQkuwZr 5a1A== 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=rftLrhBobROBzZJz5X3Yo8uPXhcnO3e+6JPwXZtQ2tU=; b=cPNDmZ4V+6tMtTOz9/oTKvX0cr/5T2WQlAQiXIUrrX0Q64DqqAYopE3qBcisCDFJn6 tyWQWTZtwCbqLbP3rvKUUXgCdI08NKT4lOtS1MSjpdnlw3zAzrJmp+Cfis4jfP6O5Jlm 9YTPdYXFRYo3rpBIVDf32ImcnkWfqYHNd0hRxG3/2jQNQt0smjtf6Tk9dOAx4r7Uslg+ ezx7NA65kar/iBc9W75VAe7oKazDM2UF46N1Ojc6XakRoa99SMYxKn6ybf2TWOUMTYsh YYXp+kfLm1CpsRfukC7u2Qqf4zQRUtSdRG9NZR5FnhQ0CzQB8mzOYE08I/YNVtXlbO30 VhdQ== X-Gm-Message-State: AJIora/I1vrIPAnGXAzuMjHPL8IjYS2v+UvhrRfAOXy93vRNjchzB03R WMnfsl7svMbapkTI0lu6xVtuhPTB/AuzUA== X-Google-Smtp-Source: AGRyM1t3yL72LC+DKPzYKRHRSkFUckRbh1t8KwvQwICtUXTZrqdQkMNjRTYkhVoIHNrhpUWgwOhXBw== X-Received: by 2002:a7b:ca54:0:b0:3a0:522c:d0ec with SMTP id m20-20020a7bca54000000b003a0522cd0ecmr31512734wml.63.1656948204099; Mon, 04 Jul 2022 08:23:24 -0700 (PDT) Received: from BL087.. ([2a01:e34:eea9:e630:ca4a:68b5:560f:5682]) by smtp.gmail.com with ESMTPSA id p15-20020a05600c204f00b0039c5cecf206sm19603199wmg.4.2022.07.04.08.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 08:23:23 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Mon, 4 Jul 2022 17:23:16 +0200 Message-Id: <20220704152318.221213-3-fsylvestre@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220704152318.221213-1-fsylvestre@baylibre.com> References: <20220704152318.221213-1-fsylvestre@baylibre.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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: Kieran Bingham --- src/ipa/rkisp1/rkisp1.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index a32bb9d1..9b0d675c 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -270,9 +270,10 @@ void IPARkISP1::unmapBuffers(const std::vector &ids) } void IPARkISP1::queueRequest([[maybe_unused]] const uint32_t frame, - [[maybe_unused]] const ControlList &controls) + 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)