From patchwork Mon Jul 6 08:56:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8646 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 5B1E8BD794 for ; Mon, 6 Jul 2020 08:56:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CC18260E14; Mon, 6 Jul 2020 10:56:39 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="EHRyymkp"; dkim-atps=neutral Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E076860E01 for ; Mon, 6 Jul 2020 10:56:38 +0200 (CEST) Received: by mail-wm1-x342.google.com with SMTP id g10so15202787wmc.1 for ; Mon, 06 Jul 2020 01:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2SGLNdyFdsUGjI3R6sQATmjr6zk1FJpyPnlDLESP9oY=; b=EHRyymkpY8P7vQPkO4qUNwUsop6F9Myo9Qx5lmuPzwezOLqw+3v9F8FnvE9Gj70qh2 XUSNOh5FCXB70oZDMShMzwLd5P5KUTf5WhMOsRoFBTVbR/+7gPuexhhwLYukJ2ux3dSJ /ujWwhSppTbdZU0XW5DzpmSisxXgneMKuUX8Xxw+IipfYFH6iMwUHGcEcSlVgFZ79PuK a0HeUKaAZ/npL2HUDPqkK26F0xDeSwXmLrvtwGlYazVRCJBQoma9T4Anq33lvR4MTcgT GCKMi/LkRzhivXJ1sGqWpGLM8Wz+xPeiL27aU4iToa+6EavPfkWH0NrlC7aXVBmJcW3u OufA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2SGLNdyFdsUGjI3R6sQATmjr6zk1FJpyPnlDLESP9oY=; b=iMiCOVI1+ZK7et6uWpKmVNabtduMDnhybjJqXeiFF4YB/j0iN5FhnRzYEsnvFQRJ1F I0ZsENdhxCgXy0lJL6Fv5mgGfguEs/9q7/8e9+LYoiDyjY5eBsxrlvtmFzNX6xvfeLpB kE5uQD/MfltUJmByiq/Rbv8eJEnFXC06bl6yg5dmm2eirEOytxear8SetNDQAXbXMsej heQKNgA+D7XHwDVg3AUagG9figUQsFnbJHSXLjJFbZr5VkXGHzK/qfB/IXR2r/7SH5s2 8Gs8noWUD/H6BGJ0KSaK1SqxEEfxNUyY+ohWlFYeZqudGLiF8cNfmT3hwRNgqm6q6AOR f8Tg== X-Gm-Message-State: AOAM532p/eGjToK3ViCrR2m3kMvHMv+gxDMFNjORUkDLA6CAaiwNYq3O YttHUEZnbH1vtxCDq5Dc+KALG1s6/5k= X-Google-Smtp-Source: ABdhPJy8aI0Jyv49cstyUm5W35HzLVmXQGxWY4uGd9w9S+7l19kbEwOlLmCyhyDMPUd0hk3o4YO+KA== X-Received: by 2002:a1c:a4c6:: with SMTP id n189mr47012939wme.173.1594025798350; Mon, 06 Jul 2020 01:56:38 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id k185sm22600282wmk.47.2020.07.06.01.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 01:56:37 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 6 Jul 2020 09:56:24 +0100 Message-Id: <20200706085625.1625432-3-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200706085625.1625432-1-naush@raspberrypi.com> References: <20200706085625.1625432-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 2/3] libcamera: ipa: raspberrypi: Populate libcamera metadata after controller process 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" For control algorithms like focus, this is needed to return out the the current frame focus statistics. For other algorithms, there is no functional change. Signed-off-By: Naushir Patuck Reviewed-by: David Plowman Reviewed-by: Laurent Pinchart --- src/ipa/raspberrypi/raspberrypi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp index bc89ab58..62730198 100644 --- a/src/ipa/raspberrypi/raspberrypi.cpp +++ b/src/ipa/raspberrypi/raspberrypi.cpp @@ -318,6 +318,8 @@ void IPARPi::processEvent(const IPAOperationData &event) if (frame_count_ > mistrust_count_) processStats(bufferId); + reportMetadata(); + IPAOperationData op; op.operation = RPI_IPA_ACTION_STATS_METADATA_COMPLETE; op.data = { bufferId & RPiIpaMask::ID }; @@ -336,7 +338,6 @@ void IPARPi::processEvent(const IPAOperationData &event) * they are "unreliable". */ prepareISP(embeddedbufferId); - reportMetadata(); /* Ready to push the input buffer into the ISP. */ IPAOperationData op;