{"id":402,"url":"https://patchwork.libcamera.org/api/patches/402/?format=json","web_url":"https://patchwork.libcamera.org/patch/402/","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":"<20190126151318.28087-2-jacopo@jmondi.org>","date":"2019-01-26T15:13:16","name":"[libcamera-devel,RFC,1/3] libcamera: stream: Add setters for image sizes and format","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"41cc65744bf4011af79ad36ac529eb9942681a9c","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":{"id":15,"url":"https://patchwork.libcamera.org/api/users/15/?format=json","username":"jmondi","first_name":"Jacopo","last_name":"Mondi","email":"jacopo@jmondi.org"},"mbox":"https://patchwork.libcamera.org/patch/402/mbox/","series":[{"id":140,"url":"https://patchwork.libcamera.org/api/series/140/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=140","date":"2019-01-26T15:13:15","name":"v4l2-device: set and get format","version":1,"mbox":"https://patchwork.libcamera.org/series/140/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/402/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/402/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay11.mail.gandi.net (relay11.mail.gandi.net\n\t[217.70.178.231])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 267DE60C78\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 26 Jan 2019 16:13:13 +0100 (CET)","from uno.homenet.telecomitalia.it\n\t(host20-49-dynamic.18-79-r.retail.telecomitalia.it [79.18.49.20])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay11.mail.gandi.net (Postfix) with ESMTPSA id 8405F100005;\n\tSat, 26 Jan 2019 15:13:12 +0000 (UTC)"],"From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Sat, 26 Jan 2019 16:13:16 +0100","Message-Id":"<20190126151318.28087-2-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.20.1","In-Reply-To":"<20190126151318.28087-1-jacopo@jmondi.org>","References":"<20190126151318.28087-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [RFC 1/3] libcamera: stream: Add setters for\n\timage sizes and format","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":"Sat, 26 Jan 2019 15:13:13 -0000"},"content":"Add methods to set width, height and pixelformat of a\nStreamConfiguration instance.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/stream.h | 4 ++++\n 1 file changed, 4 insertions(+)","diff":"diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h\nindex 8750797..ef7b32a 100644\n--- a/include/libcamera/stream.h\n+++ b/include/libcamera/stream.h\n@@ -33,6 +33,10 @@ public:\n \tvoid setDimension(unsigned int width, unsigned int height);\n \tvoid setPixelFormat(unsigned int pixelformat);\n \n+\tvoid setWidth(unsigned int width) { width_ = width; }\n+\tvoid setHeight(unsigned int height) { height_ = height; }\n+\tvoid setPixelformat(unsigned int pix) { pixelformat_ = pix; }\n+\n private:\n \tunsigned int id_;\n \tunsigned int width_;\n","prefixes":["libcamera-devel","RFC","1/3"]}