{"id":3963,"url":"https://patchwork.libcamera.org/api/patches/3963/?format=json","web_url":"https://patchwork.libcamera.org/patch/3963/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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":"<20200606150436.1851700-2-niklas.soderlund@ragnatech.se>","date":"2020-06-06T15:04:27","name":"[libcamera-devel,v2,01/10] libcamera: stream: Initialize stride and bufferCount","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"e720e043f8744f967ee99aa58e8b757d66857a54","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/3963/mbox/","series":[{"id":964,"url":"https://patchwork.libcamera.org/api/series/964/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=964","date":"2020-06-06T15:04:26","name":"libcamera: ipu3: Allow zero-copy RAW stream","version":2,"mbox":"https://patchwork.libcamera.org/series/964/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3963/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3963/checks/","tags":{},"headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9549161626\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  6 Jun 2020 17:04:52 +0200 (CEST)","from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de\n\t[79.202.46.202]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA\n\tid 11181eed-a807-11ea-933e-005056917a89;\n\tSat, 06 Jun 2020 17:04:49 +0200 (CEST)"],"X-Halon-ID":"11181eed-a807-11ea-933e-005056917a89","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":"Sat,  6 Jun 2020 17:04:27 +0200","Message-Id":"<20200606150436.1851700-2-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.26.2","In-Reply-To":"<20200606150436.1851700-1-niklas.soderlund@ragnatech.se>","References":"<20200606150436.1851700-1-niklas.soderlund@ragnatech.se>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 01/10] libcamera: stream: Initialize\n\tstride and bufferCount","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":"Sat, 06 Jun 2020 15:04:52 -0000"},"content":"The two public unsigned integer fields of StreamConfiguration, stride\nand bufferCount where not initialized, fix this to match other members\nbeing initialized to their 'zero' state.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/stream.cpp | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)","diff":"diff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp\nindex f34348f2aea022a0..3c4f64daf69d68a4 100644\n--- a/src/libcamera/stream.cpp\n+++ b/src/libcamera/stream.cpp\n@@ -279,7 +279,7 @@ SizeRange StreamFormats::range(const PixelFormat &pixelformat) const\n  * handlers provied StreamFormats.\n  */\n StreamConfiguration::StreamConfiguration()\n-\t: pixelFormat(0), stream_(nullptr)\n+\t: pixelFormat(0), stride(0), bufferCount(0), stream_(nullptr)\n {\n }\n \n@@ -287,7 +287,8 @@ StreamConfiguration::StreamConfiguration()\n  * \\brief Construct a configuration with stream formats\n  */\n StreamConfiguration::StreamConfiguration(const StreamFormats &formats)\n-\t: pixelFormat(0), stream_(nullptr), formats_(formats)\n+\t: pixelFormat(0), stride(0), bufferCount(0), stream_(nullptr),\n+\t  formats_(formats)\n {\n }\n \n","prefixes":["libcamera-devel","v2","01/10"]}