{"id":763,"url":"https://patchwork.libcamera.org/api/1.1/patches/763/?format=json","web_url":"https://patchwork.libcamera.org/patch/763/","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":"<20190320163055.22056-18-jacopo@jmondi.org>","date":"2019-03-20T16:30:41","name":"[libcamera-devel,v4,17/31] libcamera: request: Add camera() getter method","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"3f52eda9af99d0c3cf5a32a217d111ae374ff360","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/1.1/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/763/mbox/","series":[{"id":214,"url":"https://patchwork.libcamera.org/api/1.1/series/214/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=214","date":"2019-03-20T16:30:24","name":"libcamera: ipu3: Add ImgU support + multiple streams","version":4,"mbox":"https://patchwork.libcamera.org/series/214/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/763/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/763/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay12.mail.gandi.net (relay12.mail.gandi.net\n\t[217.70.178.232])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8EB7D600FC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 20 Mar 2019 17:30:38 +0100 (CET)","from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay12.mail.gandi.net (Postfix) with ESMTPSA id 2B14F20000F;\n\tWed, 20 Mar 2019 16:30:38 +0000 (UTC)"],"From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 20 Mar 2019 17:30:41 +0100","Message-Id":"<20190320163055.22056-18-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.21.0","In-Reply-To":"<20190320163055.22056-1-jacopo@jmondi.org>","References":"<20190320163055.22056-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 17/31] libcamera: request: Add camera()\n\tgetter method","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, 20 Mar 2019 16:30:38 -0000"},"content":"Add a \"camera()\" getter method to the Request class to retrieve the\nCamera instance the request has been sent to.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/request.h | 1 +\n src/libcamera/request.cpp   | 7 +++++++\n 2 files changed, 8 insertions(+)","diff":"diff --git a/include/libcamera/request.h b/include/libcamera/request.h\nindex 1bf90de2c6f9..56d179e5f2f5 100644\n--- a/include/libcamera/request.h\n+++ b/include/libcamera/request.h\n@@ -35,6 +35,7 @@ public:\n \tint setBuffers(const std::map<Stream *, Buffer *> &streamMap);\n \tBuffer *findBuffer(Stream *stream) const;\n \tconst std::set<Stream *> &streams() const { return streams_; }\n+\tCamera *camera() const { return camera_; }\n \n \tStatus status() const { return status_; }\n \ndiff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp\nindex 22c516208ede..51ab6c4e71b2 100644\n--- a/src/libcamera/request.cpp\n+++ b/src/libcamera/request.cpp\n@@ -58,6 +58,13 @@ Request::Request(Camera *camera)\n  * \\return The set of streams contained in the request\n  */\n \n+/**\n+ * \\fn Request::camera()\n+ * \\brief Retrieve the camera the request has been sent to\n+ *\n+ * \\return Pointer to the camera instance the request has been sent to\n+ */\n+\n /**\n  * \\brief Set the streams to capture with associated buffers\n  * \\param[in] streamMap The map of streams to buffers\n","prefixes":["libcamera-devel","v4","17/31"]}