{"id":2254,"url":"https://patchwork.libcamera.org/api/1.1/patches/2254/?format=json","web_url":"https://patchwork.libcamera.org/patch/2254/","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":"<20191028022224.795355-6-niklas.soderlund@ragnatech.se>","date":"2019-10-28T02:22:19","name":"[libcamera-devel,05/10] cam: BufferWriter: Use the libcamera namespace","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"202b5337bc3fb305a118d70b3ae3c47159b8b458","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/1.1/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/2254/mbox/","series":[{"id":560,"url":"https://patchwork.libcamera.org/api/1.1/series/560/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=560","date":"2019-10-28T02:22:14","name":"libcamera: Fixes found while working on new buffer API","version":1,"mbox":"https://patchwork.libcamera.org/series/560/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/2254/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/2254/checks/","tags":{},"headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net\n\t[195.74.38.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 183886017E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 28 Oct 2019 03:22:47 +0100 (CET)","from localhost.localdomain (unknown [93.2.121.143])\n\tby bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA\n\tid d2dcfa6a-f929-11e9-903a-005056917f90;\n\tMon, 28 Oct 2019 03:22:44 +0100 (CET)"],"X-Halon-ID":"d2dcfa6a-f929-11e9-903a-005056917f90","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 28 Oct 2019 03:22:19 +0100","Message-Id":"<20191028022224.795355-6-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.23.0","In-Reply-To":"<20191028022224.795355-1-niklas.soderlund@ragnatech.se>","References":"<20191028022224.795355-1-niklas.soderlund@ragnatech.se>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 05/10] cam: BufferWriter: Use the\n\tlibcamera namespace","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","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":"Mon, 28 Oct 2019 02:22:47 -0000"},"content":"Other parts of the cam utility uses the libcamera namespace, do the same\nin the buffer writer.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n src/cam/buffer_writer.cpp | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)","diff":"diff --git a/src/cam/buffer_writer.cpp b/src/cam/buffer_writer.cpp\nindex 1c044b0634672d87..c33e99c5f8173db8 100644\n--- a/src/cam/buffer_writer.cpp\n+++ b/src/cam/buffer_writer.cpp\n@@ -14,12 +14,14 @@\n \n #include \"buffer_writer.h\"\n \n+using namespace libcamera;\n+\n BufferWriter::BufferWriter(const std::string &pattern)\n \t: pattern_(pattern)\n {\n }\n \n-int BufferWriter::write(libcamera::Buffer *buffer, const std::string &streamName)\n+int BufferWriter::write(Buffer *buffer, const std::string &streamName)\n {\n \tstd::string filename;\n \tsize_t pos;\n@@ -40,8 +42,8 @@ int BufferWriter::write(libcamera::Buffer *buffer, const std::string &streamName\n \tif (fd == -1)\n \t\treturn -errno;\n \n-\tlibcamera::BufferMemory *mem = buffer->mem();\n-\tfor (libcamera::Plane &plane : mem->planes()) {\n+\tBufferMemory *mem = buffer->mem();\n+\tfor (Plane &plane : mem->planes()) {\n \t\tvoid *data = plane.mem();\n \t\tunsigned int length = plane.length();\n \n","prefixes":["libcamera-devel","05/10"]}