Patch Detail
Show a patch.
GET /api/patches/20036/?format=api
{ "id": 20036, "url": "https://patchwork.libcamera.org/api/patches/20036/?format=api", "web_url": "https://patchwork.libcamera.org/patch/20036/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20240510100208.12188-2-naush@raspberrypi.com>", "date": "2024-05-10T10:02:02", "name": "[v3,1/7] include: linux: Add RGB48 formats", "commit_ref": "223a1d37550dbfe6f24081ae56a675a7e0b14d98", "pull_url": null, "state": "accepted", "archived": false, "hash": "909dab334535154d6a985dfa3fb8154091b3f8b4", "submitter": { "id": 34, "url": "https://patchwork.libcamera.org/api/people/34/?format=api", "name": "Naushir Patuck", "email": "naush@raspberrypi.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/20036/mbox/", "series": [ { "id": 4305, "url": "https://patchwork.libcamera.org/api/series/4305/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4305", "date": "2024-05-10T10:02:01", "name": "Pre Raspberry Pi 5 support changes", "version": 3, "mbox": "https://patchwork.libcamera.org/series/4305/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/20036/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/20036/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 2C9D3BDE6B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 10 May 2024 10:02:21 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3D84863463;\n\tFri, 10 May 2024 12:02:16 +0200 (CEST)", "from mail-wm1-x334.google.com (mail-wm1-x334.google.com\n\t[IPv6:2a00:1450:4864:20::334])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B65B66343B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 May 2024 12:02:12 +0200 (CEST)", "by mail-wm1-x334.google.com with SMTP id\n\t5b1f17b1804b1-41b21ed19f5so12891795e9.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 May 2024 03:02:12 -0700 (PDT)", "from localhost.localdomain ([188.39.149.98])\n\tby smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-41fccee9318sm57936385e9.30.2024.05.10.03.02.11\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 10 May 2024 03:02:11 -0700 (PDT)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"fsnhebiK\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1715335332; x=1715940132;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=Ij7ZABzn5EvOMlgIX/LnCzlrNPGZ8O383wxIGTpg9Lk=;\n\tb=fsnhebiKL9D4O9AyiL3F2/g08mP/l8wZgZlZ8WW7Jgds9Dt32VMvz5xe7PskIyad/y\n\tKC/gNd1SdsbrFXlkQeL7tXcEwRwoRm7pgNMs9DACiVxaK1fxEz2aIsy2mrAev78Z9lJP\n\t+R3d2CU2aUk4P9PgCgLUVWLihvkz8mSVopSgyRQZ31T54HsLcOuVSC0gpCw+FBaBleQw\n\tBBGXDbUBzrSxN/ogqUjU0CHOqs/U9h+UWSUCJozJXC3yuLAMMX4WVdJdwrtyJJas0lEQ\n\t3fDovrpN3G5gQDbjz5PjfV1FXAFfzlR4h+PQUnZN2GA3JxrpJ1ivCalMKhiUnXZLn9eW\n\t7ptg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1715335332; x=1715940132;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=Ij7ZABzn5EvOMlgIX/LnCzlrNPGZ8O383wxIGTpg9Lk=;\n\tb=HF4rJ+4FhBp34tn/chbtEzOttnbNBQNvvsUPKXhZecFwdOaRkurSp1RTzk5S420nOy\n\tNz0Kk8c1FNxOK/O0Ium/+TEnXkmJpz1/ww5cPZobJFVK44JirOpyImbjxmPPdcsgGWXw\n\twWHKylMuDCthOwiC8NGx4o1/kelEf1onk3sjEKEqUovLlUo749Tjwl0QgCb7vhbbX8Wj\n\t/1EEy2loeBn+qeSIDTPJZcW7iI/TQhCw0DuzjoDOwHCudZpZvIMpu0EZIXh/6nv5hwAi\n\tAlBgd4K4A7g9blEbKso2/6XrnFpX5j2Qe4c2g+NDsuUqhhxcL6gAouGhOjTABHOG4P2y\n\tGWKg==", "X-Gm-Message-State": "AOJu0Yx238SsaC+M5+wfHSTp8EOxgP7p2Re3CxWNu5n0U1I30QEEIesJ\n\tTPdDSSIdqnMlbvlgEO68jzoyqr87Eq/iUW046uKCYpvAyFeRXihIHHhYNjdNP/dLhMQ6w6Co23V\n\t4", "X-Google-Smtp-Source": "AGHT+IHhi5GuMg+zQl46/vWGZy5COK4ObRxFgAxhmdsEiZYFmZ/rOyUuaBmqgyZqgEkGIO48sTDZNw==", "X-Received": "by 2002:a05:600c:3548:b0:419:f3f9:8ee3 with SMTP id\n\t5b1f17b1804b1-41fea93a80amr18045525e9.5.1715335331898; \n\tFri, 10 May 2024 03:02:11 -0700 (PDT)", "From": "Naushir Patuck <naush@raspberrypi.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Naushir Patuck <naush@raspberrypi.com>,\n\tJacopo Mondi <jacopo.mondi@ideasonboard.com>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>", "Subject": "[PATCH v3 1/7] include: linux: Add RGB48 formats", "Date": "Fri, 10 May 2024 11:02:02 +0100", "Message-Id": "<20240510100208.12188-2-naush@raspberrypi.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20240510100208.12188-1-naush@raspberrypi.com>", "References": "<20240510100208.12188-1-naush@raspberrypi.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Add support for 16-bps (48-bpp) RGB output formats in the uapi headers.\nThese new formats are defined for the RGB and BGR ordering.\n\nThe corresponding change submitted to the linux-media and DRM mailing\nlists can be found at:\n\nhttps://lore.kernel.org/linux-media/20240502110503.38412-3-jacopo.mondi@ideasonboard.com/\nand\nhttps://lore.kernel.org/dri-devel/20240226132544.82817-1-jacopo.mondi@ideasonboard.com/\n\nrespectively.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n include/linux/drm_fourcc.h | 4 ++++\n include/linux/videodev2.h | 2 ++\n 2 files changed, 6 insertions(+)", "diff": "diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h\nindex d6c83d9c49f4..5133a6551a34 100644\n--- a/include/linux/drm_fourcc.h\n+++ b/include/linux/drm_fourcc.h\n@@ -210,6 +210,10 @@ extern \"C\" {\n #define DRM_FORMAT_RGBA1010102\tfourcc_code('R', 'A', '3', '0') /* [31:0] R:G:B:A 10:10:10:2 little endian */\n #define DRM_FORMAT_BGRA1010102\tfourcc_code('B', 'A', '3', '0') /* [31:0] B:G:R:A 10:10:10:2 little endian */\n \n+/* 48 bpp RGB */\n+#define DRM_FORMAT_RGB161616 fourcc_code('R', 'G', '4', '8') /* [47:0] R:G:B 16:16:16 little endian */\n+#define DRM_FORMAT_BGR161616 fourcc_code('B', 'G', '4', '8') /* [47:0] B:G:R 16:16:16 little endian */\n+\n /* 64 bpp RGB */\n #define DRM_FORMAT_XRGB16161616\tfourcc_code('X', 'R', '4', '8') /* [63:0] x:R:G:B 16:16:16:16 little endian */\n #define DRM_FORMAT_XBGR16161616\tfourcc_code('X', 'B', '4', '8') /* [63:0] x:B:G:R 16:16:16:16 little endian */\ndiff --git a/include/linux/videodev2.h b/include/linux/videodev2.h\nindex 7e556911c9e1..4fdd91494041 100644\n--- a/include/linux/videodev2.h\n+++ b/include/linux/videodev2.h\n@@ -555,6 +555,8 @@ struct v4l2_pix_format {\n \n /* RGB formats (6 or 8 bytes per pixel) */\n #define V4L2_PIX_FMT_BGR48_12 v4l2_fourcc('B', '3', '1', '2') /* 48 BGR 12-bit per component */\n+#define V4L2_PIX_FMT_BGR48 v4l2_fourcc('B', 'G', 'R', '6') /* 48 BGR 16-bit per component */\n+#define V4L2_PIX_FMT_RGB48 v4l2_fourcc('R', 'G', 'B', '6') /* 48 RGB 16-bit per component */\n #define V4L2_PIX_FMT_ABGR64_12 v4l2_fourcc('B', '4', '1', '2') /* 64 BGRA 12-bit per component */\n \n /* Grey formats */\n", "prefixes": [ "v3", "1/7" ] }