From patchwork Mon Apr 15 23:18:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 993 Return-Path: Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7D3E560B2E for ; Tue, 16 Apr 2019 01:18:17 +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 relay8-d.mail.gandi.net (Postfix) with ESMTPSA id EF1EB1BF205; Mon, 15 Apr 2019 23:18:16 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 16 Apr 2019 01:18:52 +0200 Message-Id: <20190415231859.9747-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 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: Mon, 15 Apr 2019 23:18:17 -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. Most relevant changes are: - Split 1/7 in a patch to Stream only - handle freeBuffer error code - still have to make sure Request::empty() is a good name or not.. - validate the request by using empty() The last two patches are framework changes which are used in ipu3 pipeline handler to show the direction things will take with multiple support in. Thanks j Jacopo Mondi (7): libcamera: stream: Make Stream inheritable libcamera: camera: Propagate freeBuffers() error libcamera: camera: Pass the stream set to allocate/freeBuffers() libcamera: request: Add empty() 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 | 45 +++++++++++++++++++++++- src/libcamera/camera.cpp | 30 ++++++++++------ src/libcamera/include/pipeline_handler.h | 6 ++-- src/libcamera/pipeline/ipu3/ipu3.cpp | 34 +++++++++--------- src/libcamera/pipeline/uvcvideo.cpp | 13 ++++--- src/libcamera/pipeline/vimc.cpp | 13 ++++--- src/libcamera/pipeline_handler.cpp | 11 +++--- src/libcamera/request.cpp | 25 +++++++++++-- 11 files changed, 143 insertions(+), 47 deletions(-) --- 2.21.0