From patchwork Mon Sep 14 14:21:36 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: 9592 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 D8B73BF01C for ; Mon, 14 Sep 2020 14:22:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3922A62DAB; Mon, 14 Sep 2020 16:22:06 +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 AD43B62C8C for ; Mon, 14 Sep 2020 16:22:04 +0200 (CEST) X-Halon-ID: a5fcde96-f695-11ea-a39b-005056917f90 Authorized-sender: niklas.soderlund@fsdn.se Received: from bismarck.berto.se (p54ac52a8.dip0.t-ipconnect.de [84.172.82.168]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id a5fcde96-f695-11ea-a39b-005056917f90; Mon, 14 Sep 2020 16:22:03 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Mon, 14 Sep 2020 16:21:36 +0200 Message-Id: <20200914142149.63857-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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 media-tree [2] with out-of-tree DTS patches for the test Scarlet platform to enable the camera sensors. 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") Niklas Söderlund (13): libcamera: pipeline: rkisp1: Set number of planes based on format 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 applications 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 | 670 ++++++++++++++++------- 1 file changed, 469 insertions(+), 201 deletions(-)