From patchwork Wed Apr 17 13:58:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 1023 Return-Path: Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 96AC3600F9 for ; Wed, 17 Apr 2019 15:58:15 +0200 (CEST) X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id EC6CB4000B; Wed, 17 Apr 2019 13:58:14 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Wed, 17 Apr 2019 15:58:50 +0200 Message-Id: <20190417135858.23914-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v7 0/8] libcamera: Framework changes to prepare for multiple streams support 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: Wed, 17 Apr 2019 13:58:15 -0000 Hello, we're getting close, hopefully. I have included the received comments, mostly on documentation. Notable changes: 3/7: do not squash with 2/7 and update the IPU3 allocateBuffers() implementation to clean up after itself. 4/7: new patch 7/7: drop the IPU3 example (and include review comments) Thanks j Jacopo Mondi (8): libcamera: stream: Make Stream inheritable libcamera: camera: Pass the stream set to allocate/freeBuffers() libcamera: camera: Don't call freeBuffer() on allocateBuffer() error libcamera: v4l2_device: Propagate releaseBuffers() error libcamera: request: Add hasPendingBuffers() method libcamera: camera: Validate Request before queueing it libcamera: request: Expose the Stream to Buffers map libcamera: buffer: Store Request reference in Buffer include/libcamera/buffer.h | 6 ++++ include/libcamera/request.h | 3 ++ include/libcamera/stream.h | 4 +-- src/libcamera/buffer.cpp | 25 +++++++++++++++- src/libcamera/camera.cpp | 25 ++++++++-------- src/libcamera/include/pipeline_handler.h | 6 ++-- src/libcamera/pipeline/ipu3/ipu3.cpp | 32 ++++++++++++++------ src/libcamera/pipeline/uvcvideo.cpp | 13 ++++++--- src/libcamera/pipeline/vimc.cpp | 13 ++++++--- src/libcamera/pipeline_handler.cpp | 11 +++---- src/libcamera/request.cpp | 37 ++++++++++++++++++++++-- src/libcamera/v4l2_device.cpp | 3 +- 12 files changed, 134 insertions(+), 44 deletions(-) --- 2.21.0