{"id":4010,"url":"https://patchwork.libcamera.org/api/1.1/patches/4010/?format=json","web_url":"https://patchwork.libcamera.org/patch/4010/","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":"<20200609232323.29628-6-laurent.pinchart@ideasonboard.com>","date":"2020-06-09T23:23:21","name":"[libcamera-devel,v2,5/7] test: Replace explicit DRM FourCCs with libcamera formats","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"8a7e16c0f304641ca8dad849ed596fd07614d107","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/4010/mbox/","series":[{"id":982,"url":"https://patchwork.libcamera.org/api/1.1/series/982/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=982","date":"2020-06-09T23:23:16","name":"Introduce formats:: namespace for libcamera pixel formats","version":2,"mbox":"https://patchwork.libcamera.org/series/982/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/4010/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/4010/checks/","tags":{},"headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D0FE963CFA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 10 Jun 2020 01:23:50 +0200 (CEST)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 6C37831F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 10 Jun 2020 01:23:50 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"o1AvEUf2\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1591745030;\n\tbh=fG24VaVOF/M6+txYwpwz3m7Zt97ODfmOBux+4hD5ZRk=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=o1AvEUf26cvvo8bqWdNnmuacFPCGClFffj74u/lgPwsbPSutmJxmMGzjcSwlWGQva\n\tnokTHIIvuBxkfM/K60fRAwZp8y8/HnYKLl7deEA+LelU4pkzxl+7dWK79WoVQ2KVzy\n\tFnhoxyg8onYIvE3+trqF2lIuzNR/J0hc/JlTJhXc=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 10 Jun 2020 02:23:21 +0300","Message-Id":"<20200609232323.29628-6-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.27.0","In-Reply-To":"<20200609232323.29628-1-laurent.pinchart@ideasonboard.com>","References":"<20200609232323.29628-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2 5/7] test: Replace explicit DRM FourCCs\n\twith libcamera formats","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":"Tue, 09 Jun 2020 23:23:52 -0000"},"content":"Use the new pixel format constants to replace usage of macros from\ndrm_fourcc.h.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n test/v4l2_videodevice/buffer_cache.cpp | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)","diff":"diff --git a/test/v4l2_videodevice/buffer_cache.cpp b/test/v4l2_videodevice/buffer_cache.cpp\nindex d730e7550377..b22de88e214c 100644\n--- a/test/v4l2_videodevice/buffer_cache.cpp\n+++ b/test/v4l2_videodevice/buffer_cache.cpp\n@@ -9,6 +9,7 @@\n #include <random>\n #include <vector>\n \n+#include <libcamera/formats.h>\n #include <libcamera/stream.h>\n \n #include \"buffer_source.h\"\n@@ -142,7 +143,7 @@ public:\n \t\tconst unsigned int numBuffers = 8;\n \n \t\tStreamConfiguration cfg;\n-\t\tcfg.pixelFormat = PixelFormat(DRM_FORMAT_YUYV);\n+\t\tcfg.pixelFormat = formats::YUYV;\n \t\tcfg.size = Size(600, 800);\n \t\tcfg.bufferCount = numBuffers;\n \n","prefixes":["libcamera-devel","v2","5/7"]}