{"id":528,"url":"https://patchwork.libcamera.org/api/1.1/patches/528/?format=json","web_url":"https://patchwork.libcamera.org/patch/528/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190206060818.13907-14-laurent.pinchart@ideasonboard.com>","date":"2019-02-06T06:08:04","name":"[libcamera-devel,13/27] libcamera: stream: Construct a stream","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"515c6baed8ee94fd1f33acd180d0755f87c6f09d","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/528/mbox/","series":[{"id":170,"url":"https://patchwork.libcamera.org/api/1.1/series/170/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=170","date":"2019-02-06T06:07:51","name":"Capture frames throught requests","version":1,"mbox":"https://patchwork.libcamera.org/series/170/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/528/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/528/checks/","tags":{},"headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7848661022\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  6 Feb 2019 07:08:26 +0100 (CET)","from pendragon.ideasonboard.com (d51A4137F.access.telenet.be\n\t[81.164.19.127])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 1BD2741\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  6 Feb 2019 07:08:26 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1549433306;\n\tbh=XcWsS02nA1PgO/Kbaj7TQTam0DlOIYrF2Kd9aUvbrNU=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=Zg5S9Moit8942puuiLs7dN0VYa52vY4F7YMypzMQbZHy/35W09JdaTKLchoo/xUP2\n\toZj2WCThHTKMuu7dgOON5RcYbji3+EySCo7277ZbPs0SRXCVH2XsCtU4tfUdzwx/Fr\n\tlqzRoYWd25MgXsPdWtk27j3pfEZKKID1CN0ppcBA=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed,  6 Feb 2019 08:08:04 +0200","Message-Id":"<20190206060818.13907-14-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.19.2","In-Reply-To":"<20190206060818.13907-1-laurent.pinchart@ideasonboard.com>","References":"<20190206060818.13907-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 13/27] libcamera: stream: Construct a\n\tstream","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Wed, 06 Feb 2019 06:08:28 -0000"},"content":"From: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\nConstruct a stream object with a default internal pool.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n include/libcamera/stream.h |  8 ++++++++\n src/libcamera/stream.cpp   | 18 ++++++++++++++++++\n 2 files changed, 26 insertions(+)","diff":"diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h\nindex 890678360ee8..111f2c933efa 100644\n--- a/include/libcamera/stream.h\n+++ b/include/libcamera/stream.h\n@@ -7,10 +7,18 @@\n #ifndef __LIBCAMERA_STREAM_H__\n #define __LIBCAMERA_STREAM_H__\n \n+#include <libcamera/buffer.h>\n+\n namespace libcamera {\n \n class Stream final\n {\n+public:\n+\tStream();\n+\tBufferPool &bufferPool() { return bufferPool_; }\n+\n+private:\n+\tBufferPool bufferPool_;\n };\n \n struct StreamConfiguration {\ndiff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp\nindex dd9092d958d9..b6238946a8d5 100644\n--- a/src/libcamera/stream.cpp\n+++ b/src/libcamera/stream.cpp\n@@ -47,6 +47,24 @@ namespace libcamera {\n  * optimal stream for the task.\n  */\n \n+/**\n+ * \\brief Construct a stream with default parameters\n+ */\n+Stream::Stream()\n+{\n+}\n+\n+/**\n+ * \\fn Stream::bufferPool()\n+ * \\brief Retrieve the buffer pool for the stream\n+ *\n+ * The buffer pool handles the buffers used to capture frames at the output of\n+ * the stream. It is initially created empty and shall be populated with\n+ * buffers before being used.\n+ *\n+ * \\return A reference to the buffer pool\n+ */\n+\n /**\n  * \\struct StreamConfiguration\n  * \\brief Configuration parameters for a stream\n","prefixes":["libcamera-devel","13/27"]}