From patchwork Fri Jun 26 10:25:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8438 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 CE784C0109 for ; Fri, 26 Jun 2020 10:25:54 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9E83D60A16; Fri, 26 Jun 2020 12:25:54 +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="Hq/HsPmO"; dkim-atps=neutral Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 82976609A3 for ; Fri, 26 Jun 2020 12:25:51 +0200 (CEST) Received: by mail-wm1-x344.google.com with SMTP id f18so8875719wml.3 for ; Fri, 26 Jun 2020 03:25:51 -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=eZEWDXHM+h7IQM//ELYz7IfKEtPACsZQnbKSWEjmbjo=; b=Hq/HsPmOpn15458T1PsPdfAAXZPEQGUDILIoAwqnkUtKsZPBFkfeYfXhrqipCbgWR6 0ggdUd2HKFofxEdpEcfi3SiWl73nTszxH4LVhDu6lNOYmceiIBlNl0UxHFP8GfRn7vx1 GHtdmLR0LMUgvbJDoCgrsaMBoPn6ZbeZ9stqHVrZp+T0k3p/0YMG8xFZiQHfneDmwcye v3ieAu0aBlFk6le2ow0bNgc9EV8ukLqsaSSGP8/yN1eDqps6GQmjxNi+UBHD8mDmQ9E/ FqB7Z5yMY2smWE3tFF0NfZ0VdVq3oLfF5xY9tyJEzvu2PNx30o2PIOFnWOa5TMMqgCpQ 3mlA== 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=eZEWDXHM+h7IQM//ELYz7IfKEtPACsZQnbKSWEjmbjo=; b=Yyihp5n8+hn4y6kiLinM/uyMKQVxOHEJct4eoLxpTCR1y8asPInASsd2vp12eVmCt4 8SCVh+p9qjtpMWjKcJitGvLeMSVEDRGiKqyTsKoSmrUckAYuBzB2PIHsK/nmyIHUgtes iJf4GWvd1MhEq0+WHmkyuEsnrDnJwj9Tqj8TXX0yCnW+e0e4VyMwlYaOl2IlM6KMb7AS niTb7x6GY/I2YN/Z76u5UTadYcI3+wSBgsFDRXPrSX3twY/Z9dEREjKxE34HzDNFH6/l HbvAUlpKlcvlYxmTP/OM+KjMJBi0aCHK8MQsI7SzAVgJ/jrrldvnxDU9+nBfAB3Oxc5z V9pA== X-Gm-Message-State: AOAM531Y0GTGJPR7QIvcU1ynrD6TGmVERUFZeiapG6rhpe7zQJvmabz8 seIdw27WRbLHKclcvXUXSht9d0DSjlo= X-Google-Smtp-Source: ABdhPJzqZPIou70cnT5u2Nk7eD3GQWBV0RR/QRtEOEKQsUtnBxoCjqUFMKjkKZQ/sEh8FJJALFRKCg== X-Received: by 2002:a1c:2e58:: with SMTP id u85mr2585749wmu.123.1593167151016; Fri, 26 Jun 2020 03:25:51 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id r8sm21959679wrp.40.2020.06.26.03.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 03:25:50 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 26 Jun 2020 11:25:30 +0100 Message-Id: <20200626102531.1187650-4-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200626102531.1187650-1-naush@raspberrypi.com> References: <20200626102531.1187650-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/4] 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;