From patchwork Thu Feb 28 18:51:23 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: 665 Return-Path: Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CF57D610B7 for ; Thu, 28 Feb 2019 19:51:37 +0100 (CET) X-Halon-ID: d9e2cfff-3b89-11e9-8144-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id d9e2cfff-3b89-11e9-8144-0050569116f7; Thu, 28 Feb 2019 19:51:34 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 28 Feb 2019 19:51:23 +0100 Message-Id: <20190228185126.32475-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/3] 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 18:51:38 -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 (3): 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 include/libcamera/camera.h | 29 ++- src/cam/main.cpp | 28 ++- src/libcamera/camera.cpp | 274 +++++++++++++++++++---- 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, 274 insertions(+), 77 deletions(-)