From patchwork Thu Aug 13 00:52:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 9290 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 F37DEBD87D for ; Thu, 13 Aug 2020 00:53:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 048DC61380; Thu, 13 Aug 2020 02:53:40 +0200 (CEST) Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C687660388 for ; Thu, 13 Aug 2020 02:53:37 +0200 (CEST) X-Halon-ID: 63fe5385-dcff-11ea-92dc-005056917a89 Authorized-sender: niklas.soderlund@fsdn.se Received: from bismarck.berto.se (p54ac52a8.dip0.t-ipconnect.de [84.172.82.168]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 63fe5385-dcff-11ea-92dc-005056917a89; Thu, 13 Aug 2020 02:53:34 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 13 Aug 2020 02:52:33 +0200 Message-Id: <20200813005246.3265807-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 00/13] libcamera: pipeline: rkisp1: Extend to support two streams 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" Hi, This series extends the RkISP1 pipeline handler to work with 2 streams. It allows cameras backed by this pipeline to expose a main path stream, same as the one before this series. And a new self path stream that can operate in addition or independently from the main path. The self path supports two new RGB formats that is not supported by the main path. This series does not extend support for RAW formats as this is such a special case for this pipeline. Only the main path may be active and no ISP parameters can be processed. This may be added on top but functionality have been proven as a prototype. To be able to use both main and self path simultaneously must run a kernel that includes [1]. The development of the series is tested on the latest media-tree [2] with out-of-tree DTS patches for the test Scarlet platform to enable the camera sensors. This series depends on libcamera series [3]. 1. 60e915354c270357 ("media: staging: rkisp1: cap: fix return values from pm functions") 2. f45882cfb152f5d3 ("media: camss: fix memory leaks on error handling paths in probe") 3. [PATCH 0/2] libcamera: request: Make Stream pointer const Niklas Söderlund (13): libcamera: pipeline: rkisp1: Fix line length typo libcamera: pipeline: rkisp1: Breakout mainpath size and format constraints libcamera: pipeline: rkisp1: Setup links as part of configuration libcamera: pipeline: rkisp1: Prepare buffer ready handlers for multiple streams libcamera: pipeline: rkisp1: Create RkISP1Frames from camera data libcamera: pipeline: rkisp1: Export stream formats to applicaitons libcamera: pipeline: rkisp1: Set the crop rectangle libcamera: pipeline: rkisp1: Prefix main path video and resizer libcamera: pipeline: rkisp1: Add self path devices libcamera: pipeline: rkisp1: Configure self path libcamera: pipeline: rkisp1: Track buffers for self path libcamera: pipeline: rkisp1: Add format validation for self path libcamera: pipeline: rkisp1: Expose self path stream src/libcamera/pipeline/rkisp1/rkisp1.cpp | 671 ++++++++++++++++------- 1 file changed, 468 insertions(+), 203 deletions(-)