{"id":2248,"url":"https://patchwork.libcamera.org/api/patches/2248/?format=json","web_url":"https://patchwork.libcamera.org/patch/2248/","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":"<20191027234312.35284-11-jacopo@jmondi.org>","date":"2019-10-27T23:43:12","name":"[libcamera-devel,10/10] test: camera: buffer_import: Use DRM/KMS format","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"4895deda685e552ee33ff976ef820e727b849657","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/2248/mbox/","series":[{"id":559,"url":"https://patchwork.libcamera.org/api/series/559/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=559","date":"2019-10-27T23:43:02","name":"libcamera: Use DRM_FORMAT_* fourcc codes","version":1,"mbox":"https://patchwork.libcamera.org/series/559/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/2248/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/2248/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n\t[217.70.183.200])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 432FE6151E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 28 Oct 2019 00:41:30 +0100 (CET)","from uno.localdomain (143.121.2.93.rev.sfr.net [93.2.121.143])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay7-d.mail.gandi.net (Postfix) with ESMTPSA id D7CA320002;\n\tSun, 27 Oct 2019 23:41:29 +0000 (UTC)"],"X-Originating-IP":"93.2.121.143","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 28 Oct 2019 00:43:12 +0100","Message-Id":"<20191027234312.35284-11-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.23.0","In-Reply-To":"<20191027234312.35284-1-jacopo@jmondi.org>","References":"<20191027234312.35284-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 10/10] test: camera: buffer_import: Use\n\tDRM/KMS format","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":"Sun, 27 Oct 2019 23:41:31 -0000"},"content":"Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n test/camera/buffer_import.cpp | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)","diff":"diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp\nindex 9cac19d8ce81..8411e69bbd09 100644\n--- a/test/camera/buffer_import.cpp\n+++ b/test/camera/buffer_import.cpp\n@@ -13,6 +13,8 @@\n #include <random>\n #include <vector>\n \n+#include <linux/drm_fourcc.h>\n+\n #include \"device_enumerator.h\"\n #include \"media_device.h\"\n #include \"v4l2_videodevice.h\"\n@@ -79,7 +81,7 @@ public:\n \n \t\tformat_.size.width = 1920;\n \t\tformat_.size.height = 1080;\n-\t\tformat_.fourcc = V4L2_PIX_FMT_RGB24;\n+\t\tformat_.fourcc = DRM_FORMAT_BGR888;\n \t\tformat_.planesCount = 1;\n \t\tformat_.planes[0].size = 1920 * 1080 * 3;\n \t\tformat_.planes[0].bpl = 1920 * 3;\n","prefixes":["libcamera-devel","10/10"]}