From patchwork Tue Apr 16 13:42:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 1001 Return-Path: Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6601960DB4 for ; Tue, 16 Apr 2019 15:41:24 +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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id CE3B1FF81D; Tue, 16 Apr 2019 13:41:23 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 16 Apr 2019 15:42:03 +0200 Message-Id: <20190416134210.21097-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 0/7] 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: Tue, 16 Apr 2019 13:41:24 -0000 Hello, I have collected here changes on some of the patches sent as part of v4. Compared to v4 this series only contains framework changes required to prepare to support multiple stream operation in IPU3 pipeline handler. This iteration updates the framework changes sent as v5. Changelong is: - Drop v5 "libcamera: camera: Propagate freeBuffers() error" as it does not make sense to have before "libcamera: camera: Pass the stream set to allocate/freeBuffers()" - Rename Request::empty() in Request::hasPendingBuffers() - Add "libcamera: camera: Don't call freeBuffer() on allocateBuffer() error" - Include comments received on the all the patches - Remove ipu3 examples from 6/7 and 7/7 Once this gets in, I'll rebase multi stream support for IPU3 on top. Thanks j Jacopo Mondi (7): libcamera: stream: Make Stream inheritable libcamera: camera: Pass the stream set to allocate/freeBuffers() libcamera: camera: Don't call freeBuffer() on allocateBuffer() error libcamera: request: Add hasPendingBuffers() method libcamera: camera: Validate Request befor 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 | 34 +++++++++++++++++++- src/libcamera/camera.cpp | 24 +++++++------- src/libcamera/include/pipeline_handler.h | 6 ++-- src/libcamera/pipeline/ipu3/ipu3.cpp | 15 ++++++--- src/libcamera/pipeline/uvcvideo.cpp | 13 +++++--- src/libcamera/pipeline/vimc.cpp | 13 +++++--- src/libcamera/pipeline_handler.cpp | 11 ++++--- src/libcamera/request.cpp | 41 ++++++++++++++++++++++-- 11 files changed, 133 insertions(+), 37 deletions(-) --- 2.21.0