From patchwork Thu Feb 28 02:16:22 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: 649 Return-Path: Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 86EE4610B2 for ; Thu, 28 Feb 2019 03:16:36 +0100 (CET) X-Halon-ID: da31a1ce-3afe-11e9-985a-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 da31a1ce-3afe-11e9-985a-005056917f90; Thu, 28 Feb 2019 03:16:32 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 28 Feb 2019 03:16:22 +0100 Message-Id: <20190228021626.15062-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/4] libcamera: improve validation of camera operations 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: Thu, 28 Feb 2019 02:16:36 -0000 Hi, This series fix a few bugs in the camera as well as introduce a state machine to better keep track on what applications can do with a camera at any given point in its life cycle. As well as add a few new checks to catch problems early. Niklas Söderlund (4): cam: fix order camera is operated on libcamera: store stream pointers in sets instead of a vectors libcamera: camera: add state machine to control access from applications libcamera: camera: ensure streams belong to camera include/libcamera/camera.h | 29 ++- src/cam/main.cpp | 28 +-- src/libcamera/camera.cpp | 248 +++++++++++++++++++---- src/libcamera/include/pipeline_handler.h | 2 +- src/libcamera/pipeline/ipu3/ipu3.cpp | 6 +- src/libcamera/pipeline/uvcvideo.cpp | 6 +- src/libcamera/pipeline/vimc.cpp | 6 +- 7 files changed, 249 insertions(+), 76 deletions(-)