From patchwork Fri Jan 25 15:33:33 2019 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: 379 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3D3E760B1B for ; Fri, 25 Jan 2019 16:33:51 +0100 (CET) X-Halon-ID: 977459c6-20b6-11e9-874f-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 977459c6-20b6-11e9-874f-005056917f90; Fri, 25 Jan 2019 16:33:49 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 25 Jan 2019 16:33:33 +0100 Message-Id: <20190125153340.2744-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/7] libcamera: add basic support for Streams and format configuration X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2019 15:33:51 -0000 Hi, This series aims to add support of Streams to the Camera object. A Stream is a single video stream origination from a video source, multiple video streams might form the same Camera is possible as long as they all originate from the same video source. Patch 8/8 which extends the cam utility depends on [1] while the rest of the series have no dependencies. 1. [PATCH] cam: Add event loop Laurent Pinchart (1): libcamera: camera: Add acquire() and release() Niklas Söderlund (6): libcamera: stream: add basic Stream class libcamera: stream: add basic StreamConfiguration class libcamera: pipelines: add method to retrieve streams libcamera: pipelines: add method to configure streams libcamera: camera: integrate streams and configuration cam: add option to statically configure a pipeline include/libcamera/camera.h | 12 +++ include/libcamera/libcamera.h | 1 + include/libcamera/meson.build | 1 + include/libcamera/stream.h | 45 ++++++++ src/cam/main.cpp | 62 ++++++++--- src/libcamera/camera.cpp | 83 ++++++++++++++- src/libcamera/include/pipeline_handler.h | 6 ++ src/libcamera/meson.build | 1 + src/libcamera/pipeline/ipu3/ipu3.cpp | 33 ++++++ src/libcamera/pipeline/uvcvideo.cpp | 36 +++++++ src/libcamera/pipeline/vimc.cpp | 36 +++++++ src/libcamera/pipeline_handler.cpp | 30 ++++++ src/libcamera/stream.cpp | 130 +++++++++++++++++++++++ 13 files changed, 463 insertions(+), 13 deletions(-) create mode 100644 include/libcamera/stream.h create mode 100644 src/libcamera/stream.cpp