From patchwork Wed May 26 03:47:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 12420 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 B3420C3203 for ; Wed, 26 May 2021 03:47:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7079C68921; Wed, 26 May 2021 05:47:44 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="nmb+a/74"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 95CE4602AB for ; Wed, 26 May 2021 05:47:42 +0200 (CEST) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1EC43332; Wed, 26 May 2021 05:47:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1622000862; bh=vG29wqoHeH3ewKzjFlPcZ0Do28b51qvNRQoADeCzxGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nmb+a/74ALltja9PgPqdjLuOlK8SD1Y184OeFaXNOG6S9bP9OCx9L9ckpE5HbBuwk 86HnwKH6Gd8qGScdIC2XWV493ukpWoBzy6lPSYzxOlPhB2YmqT4d3TpqN2zXTxyP1v BXfPAk5htb09okx8e1OIHSFFIOgcPHN+f5yOwBcc= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Wed, 26 May 2021 12:47:20 +0900 Message-Id: <20210526034720.1253094-3-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210526034720.1253094-1-paul.elder@ideasonboard.com> References: <20210526034720.1253094-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 3/3] ipa: ipu3: Set output frame duration metadata 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" The sensor frame duration should be set by the IPA. Hardcode it for now. Signed-off-by: Paul Elder Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Reviewed-by: Hirokazu Honda --- src/ipa/ipu3/ipu3.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp index 769c24d3..6b9aeab6 100644 --- a/src/ipa/ipu3/ipu3.cpp +++ b/src/ipa/ipu3/ipu3.cpp @@ -267,6 +267,10 @@ void IPAIPU3::parseStatistics(unsigned int frame, if (agcAlgo_->updateControls()) setControls(frame); + /* \todo Populate this with real values */ + ctrls.set(controls::FrameDuration, + static_cast(33334)); + IPU3Action op; op.op = ActionMetadataReady; op.controls = ctrls;