From patchwork Fri Aug 13 14:44:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13347 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 4389FC3240 for ; Fri, 13 Aug 2021 14:44:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 96EEE6888F; Fri, 13 Aug 2021 16:44:50 +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="jbxmty8M"; 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 E4DC8687FA for ; Fri, 13 Aug 2021 16:44:48 +0200 (CEST) Received: from perceval.ideasonboard.com (unknown [103.251.226.198]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C63D78F; Fri, 13 Aug 2021 16:44:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1628865888; bh=6JOu/wOL/dppCFLATuh2qV/N96LOUy3/wWN/QpJiyAo=; h=From:To:Cc:Subject:Date:From; b=jbxmty8MYIf0JZWp1uW/bxXQOqzx0WAV7xHgTssspUx4+BrpSCmUCsM61NmOz4nMM h6uakUxCN37ZLrcW0fBOoyL/FN45G69VKoH1inzlK//BGoJhkof/GSC7E+92/8kv84 1aHCLuc2pynZsoPttDt4w52ClPQuj0vcXAUL7w+I= From: Umang Jain To: libcamera-devel@lists.libcamera.org Date: Fri, 13 Aug 2021 20:14:33 +0530 Message-Id: <20210813144437.138005-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/4] Pass buffers to VIMC IPA 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" Currently, there is no buffer passing on VIMC happening. VIMC being a virtual test driver, doesn't have actual parameter or statistics buffers. But that shouldn't stop us leveraging VIMC for IPA IPC testing. We will create mock dmabuf buffers using the video output node. We will configure it with a single plane, small size V4L2DeviceFormat and export buffers from there. This happens during init(), so the actual requested configuration happens during the normal configure()(We just hijack the video output node for a while temporarily). This is the major change in v2. Other changes: - Drop Actions and Events paradigm, use dedicated functions for operations via mojom interface. - style check in 1/4 and 3/4 - commit messages rework Laurent Pinchart (1): ipa: vimc: Add configure() function Umang Jain (3): pipeline: vimc: Allocate fake IPA buffers ipa: vimc: Map and unmap buffers ipa: vimc: Send and retrieve FrameBuffers from IPA include/libcamera/ipa/vimc.mojom | 22 ++++++++- src/ipa/vimc/vimc.cpp | 58 +++++++++++++++++++++++ src/libcamera/pipeline/vimc/vimc.cpp | 70 ++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+), 1 deletion(-)