Patch Detail
Show a patch.
GET /api/patches/21329/?format=api
{ "id": 21329, "url": "https://patchwork.libcamera.org/api/patches/21329/?format=api", "web_url": "https://patchwork.libcamera.org/patch/21329/", "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": "<20240923091133.3328208-2-chenghaoyang@google.com>", "date": "2024-09-23T09:08:53", "name": "[1/1] libcamera: Add formats introduced by MTK platform", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "b28bc65ddfb7faea345a16ec2e59438831e17901", "submitter": { "id": 117, "url": "https://patchwork.libcamera.org/api/people/117/?format=api", "name": "Cheng-Hao Yang", "email": "chenghaoyang@chromium.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/21329/mbox/", "series": [ { "id": 4613, "url": "https://patchwork.libcamera.org/api/series/4613/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4613", "date": "2024-09-23T09:08:52", "name": "Add formats introduced by MTK platform", "version": 1, "mbox": "https://patchwork.libcamera.org/series/4613/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/21329/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/21329/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 7D5CAC0F1B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 23 Sep 2024 09:11:46 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7435763511;\n\tMon, 23 Sep 2024 11:11:44 +0200 (CEST)", "from mail-pl1-x631.google.com (mail-pl1-x631.google.com\n\t[IPv6:2607:f8b0:4864:20::631])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9F5FC6350A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 23 Sep 2024 11:11:40 +0200 (CEST)", "by mail-pl1-x631.google.com with SMTP id\n\td9443c01a7336-206aee40676so32419575ad.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 23 Sep 2024 02:11:40 -0700 (PDT)", "from chenghaoyang-low.c.googlers.com.com\n\t(0.223.81.34.bc.googleusercontent.com. [34.81.223.0])\n\tby smtp.gmail.com with ESMTPSA id\n\td9443c01a7336-20794719c14sm129852635ad.223.2024.09.23.02.11.37\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 23 Sep 2024 02:11:38 -0700 (PDT)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"JQaodWXD\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=chromium.org; s=google; t=1727082699; x=1727687499;\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=ZdysAG/eaEx31Zm3qmrqbQjMX4XQuD/PYuy7eQvhHNg=;\n\tb=JQaodWXD9DlZKqf059ZkpoDY+syAROnlvfDFc7mwAhJzN2znPUCZbziVQ/ItOW5MSo\n\t06r11KLcxfawysrlcmnDmW/Y4mMrchDN99ginCUXwPJN6rnX72kOJwUh0pq0yQ2cEfaH\n\tvlzCqGeRgVWKdxO8/UFqGe53u3jQ6BFyrgdW0=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1727082699; x=1727687499;\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=ZdysAG/eaEx31Zm3qmrqbQjMX4XQuD/PYuy7eQvhHNg=;\n\tb=CvKW7ac1AX7fK1pxLEhHM2V8l3JIbMDztM+aDlEQwXatIyiAf6TzxMR7emJYHjWTlv\n\t3MxtVrYrC7uiIwehoJ//7zHOzL6N2Rk318etOVlhbWYdoGul7JaGr5bk1Bfka0H/RvSo\n\tMA2EDxqJrbK+JuvfPeGgff3thtEkroyTTms964kryzxzO0Dw7Pq8S93XQ5eAXAGyjN7k\n\t1BvU5OGBy69MS6AGBAIl8s2f+VvZALixOeB1UwySjFdfs1P/hzRUd2OskMZRVmrv1c9S\n\tcw922M8cC39Jm4BnOwgdQKBWDQ/mi5zJFyGVK/onDM4DokTmP2ekh3yitUkuXYlpPVGn\n\t6xaw==", "X-Gm-Message-State": "AOJu0Yys72EIw8apXcBdO3S6+U8SG63uSj344eeShb3WE9FQ5avw5LGx\n\ty9G7PTbBAgsm14tCZOmwQuRb9OBRfPMyd/TpPlz5q9XuJ0x1jL74UoSjqY5oKvhIvhboWS3TV98\n\t=", "X-Google-Smtp-Source": "AGHT+IGXa/YwkoRZKsWFLr+lEZJK8QydJZ4OYtLdgV1zl1ZvheYGeDrw930wXE2c2yLDwv5VDpsu7g==", "X-Received": "by 2002:a17:902:fc84:b0:205:9112:efc7 with SMTP id\n\td9443c01a7336-208d83ac37amr174847715ad.30.1727082698697; \n\tMon, 23 Sep 2024 02:11:38 -0700 (PDT)", "From": "Harvey Yang <chenghaoyang@chromium.org>", "X-Google-Original-From": "Harvey Yang <chenghaoyang@google.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Han-Lin Chen <hanlinchen@chromium.org>, Xing Gu <xinggu@chromium.org>,\n\tHarvey Yang <chenghaoyang@chromium.org>", "Subject": "[PATCH 1/1] libcamera: Add formats introduced by MTK platform", "Date": "Mon, 23 Sep 2024 09:08:53 +0000", "Message-ID": "<20240923091133.3328208-2-chenghaoyang@google.com>", "X-Mailer": "git-send-email 2.46.0.792.g87dc391469-goog", "In-Reply-To": "<20240923091133.3328208-1-chenghaoyang@google.com>", "References": "<20240923091133.3328208-1-chenghaoyang@google.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": "From: Han-Lin Chen <hanlinchen@chromium.org>\n\nThe patch adds the following formats.\n\n - GREY\n - SBGGR10_MTISP\n - SGBRG10_MTISP\n - SGRBG10_MTISP\n - SRGGB10_MTISP\n - NV12_10P_MTISP\n - NV12_12P_MTISP\n - MTFP_MTISP\n - MTFA_MTISP\n - MTFF_MTISP\n - MTFD_MTISP\n - MTFS_MTISP\n - MTFR_MTISP\n - MTSR_MTISP\n - WARP2P_MTISP\n - Y8_MTISP\n - Y16_MTISP\n - Y32_MTISP\n\nSigned-off-by: Han-Lin Chen <hanlinchen@chromium.org>\nCo-developed-by: Xing Gu <xinggu@chromium.org>\nCo-developed-by: Harvey Yang <chenghaoyang@chromium.org>\n---\n include/linux/drm_fourcc.h | 26 +++++\n include/linux/videodev2.h | 22 ++++\n src/libcamera/formats.cpp | 203 +++++++++++++++++++++++++++++++++++++\n src/libcamera/formats.yaml | 38 +++++++\n 4 files changed, 289 insertions(+)", "diff": "diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h\nindex db679877..ca00a3c7 100644\n--- a/include/linux/drm_fourcc.h\n+++ b/include/linux/drm_fourcc.h\n@@ -466,6 +466,32 @@ extern \"C\" {\n #define DRM_FORMAT_SGBRG16\tfourcc_code('G', 'B', '1', '6')\n #define DRM_FORMAT_SBGGR16\tfourcc_code('B', 'Y', 'R', '2')\n \n+/* MTK extention */\n+\n+#define DRM_FORMAT_MTISP_SBGGR10 fourcc_code('M', 'B', 'B', 'A')\n+#define DRM_FORMAT_MTISP_SGBRG10 fourcc_code('M', 'B', 'G', 'A')\n+#define DRM_FORMAT_MTISP_SGRBG10 fourcc_code('M', 'B', 'g', 'A')\n+#define DRM_FORMAT_MTISP_SRGGB10 fourcc_code('M', 'B', 'R', 'A')\n+\n+#define DRM_FORMAT_MTISP_NV12_10P fourcc_code('1', '2', 'A', 'P')\n+#define DRM_FORMAT_MTISP_NV12_12P fourcc_code('1', '2', 'C', 'P')\n+\n+#define DRM_FORMAT_GREY fourcc_code('G', 'R', 'E', 'Y')\n+\n+#define DRM_FORMAT_MTISP_PARAMS fourcc_code('M', 'T', 'f', 'p')\n+#define DRM_FORMAT_MTISP_3A fourcc_code('M', 'T', 'f', 'a')\n+#define DRM_FORMAT_MTISP_AF fourcc_code('M', 'T', 'f', 'f')\n+\n+#define DRM_FORMAT_MTISP_DESC fourcc_code('M', 'T', 'f', 'd')\n+#define DRM_FORMAT_MTISP_SD fourcc_code('M', 'T', 'f', 's')\n+#define DRM_FORMAT_MTISP_DESC_NORM fourcc_code('M', 'T', 'f', 'r')\n+#define DRM_FORMAT_MTISP_SDNORM fourcc_code('M', 'T', 's', 'r')\n+\n+#define DRM_FORMAT_MTISP_WARP2P fourcc_code('M', 'W', '2', 'P')\n+#define DRM_FORMAT_MTISP_Y8 fourcc_code('M', 'T', '0', '8')\n+#define DRM_FORMAT_MTISP_Y16 fourcc_code('M', 'T', '1', '6')\n+#define DRM_FORMAT_MTISP_Y32 fourcc_code('M', 'T', '3', '2')\n+\n /*\n * Format Modifiers:\n *\ndiff --git a/include/linux/videodev2.h b/include/linux/videodev2.h\nindex 3829c0b6..2cee0b86 100644\n--- a/include/linux/videodev2.h\n+++ b/include/linux/videodev2.h\n@@ -789,6 +789,28 @@ struct v4l2_pix_format {\n #define V4L2_PIX_FMT_IPU3_SGRBG10\tv4l2_fourcc('i', 'p', '3', 'G') /* IPU3 packed 10-bit GRBG bayer */\n #define V4L2_PIX_FMT_IPU3_SRGGB10\tv4l2_fourcc('i', 'p', '3', 'r') /* IPU3 packed 10-bit RGGB bayer */\n \n+#define V4L2_PIX_FMT_MTISP_SBGGR10 v4l2_fourcc('M', 'B', 'B', 'A')\n+#define V4L2_PIX_FMT_MTISP_SGBRG10 v4l2_fourcc('M', 'B', 'G', 'A')\n+#define V4L2_PIX_FMT_MTISP_SGRBG10 v4l2_fourcc('M', 'B', 'g', 'A')\n+#define V4L2_PIX_FMT_MTISP_SRGGB10 v4l2_fourcc('M', 'B', 'R', 'A')\n+\n+#define V4L2_PIX_FMT_MTISP_NV12_10P v4l2_fourcc('1', '2', 'A', 'P') /* Y/CbCr 4:2:0 10 bits packed */\n+#define V4L2_PIX_FMT_MTISP_NV12_12P v4l2_fourcc('1', '2', 'C', 'P') /* Y/CbCr 4:2:0 12 bits packed */\n+\n+#define V4L2_META_FMT_MTISP_PARAMS v4l2_fourcc('M', 'T', 'f', 'p')\n+#define V4L2_META_FMT_MTISP_3A v4l2_fourcc('M', 'T', 'f', 'a')\n+#define V4L2_META_FMT_MTISP_AF v4l2_fourcc('M', 'T', 'f', 'f')\n+\n+#define V4L2_META_FMT_MTISP_DESC v4l2_fourcc('M', 'T', 'f', 'd')\n+#define V4L2_META_FMT_MTISP_SD v4l2_fourcc('M', 'T', 'f', 's')\n+#define V4L2_META_FMT_MTISP_DESCNORM v4l2_fourcc('M', 'T', 'f', 'r')\n+#define V4L2_META_FMT_MTISP_SDNORM v4l2_fourcc('M', 'T', 's', 'r')\n+\n+#define V4L2_PIX_FMT_WARP2P v4l2_fourcc('M', 'W', '2', 'P')\n+#define V4L2_PIX_FMT_MTISP_Y8 v4l2_fourcc('M', 'T', '0', '8')\n+#define V4L2_PIX_FMT_MTISP_Y16 v4l2_fourcc('M', 'T', '1', '6')\n+#define V4L2_PIX_FMT_MTISP_Y32 v4l2_fourcc('M', 'T', '3', '2')\n+\n /* Raspberry Pi PiSP compressed formats. */\n #define V4L2_PIX_FMT_PISP_COMP1_RGGB\tv4l2_fourcc('P', 'C', '1', 'R') /* PiSP 8-bit mode 1 compressed RGGB bayer */\n #define V4L2_PIX_FMT_PISP_COMP1_GRBG\tv4l2_fourcc('P', 'C', '1', 'G') /* PiSP 8-bit mode 1 compressed GRBG bayer */\ndiff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp\nindex dbefb094..53ce4e7d 100644\n--- a/src/libcamera/formats.cpp\n+++ b/src/libcamera/formats.cpp\n@@ -506,6 +506,16 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{\n \t\t.pixelsPerGroup = 1,\n \t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n \t} },\n+\t{ formats::GREY, {\n+\t\t.name = \"GREY\",\n+\t\t.format = formats::R8,\n+\t\t.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_GREY), },\n+\t\t.bitsPerPixel = 8,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n \t{ formats::R10, {\n \t\t.name = \"R10\",\n \t\t.format = formats::R10,\n@@ -969,6 +979,199 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{\n \t\t.pixelsPerGroup = 2,\n \t\t.planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }},\n \t} },\n+\t{ formats::SBGGR10_MTISP, {\n+\t\t.name = \"SBGGR10_MTISP\",\n+\t\t.format = formats::SBGGR10_MTISP,\n+\t\t.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_MTISP_SBGGR10), },\n+\t\t.bitsPerPixel = 10,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n+\t\t.packed = true,\n+\t\t.pixelsPerGroup = 64,\n+\t\t.planes = {{ { 80, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::SGBRG10_MTISP, {\n+\t\t.name = \"SGBRG10_MTISP\",\n+\t\t.format = formats::SGBRG10_MTISP,\n+\t\t.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_MTISP_SGBRG10), },\n+\t\t.bitsPerPixel = 10,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n+\t\t.packed = true,\n+\t\t.pixelsPerGroup = 64,\n+\t\t.planes = {{ { 80, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::SGRBG10_MTISP, {\n+\t\t.name = \"SGRBG10_MTISP\",\n+\t\t.format = formats::SGRBG10_MTISP,\n+\t\t.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_MTISP_SGRBG10), },\n+\t\t.bitsPerPixel = 10,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n+\t\t.packed = true,\n+\t\t.pixelsPerGroup = 64,\n+\t\t.planes = {{ { 80, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::SRGGB10_MTISP, {\n+\t\t.name = \"SRGGB10_MTISP\",\n+\t\t.format = formats::SRGGB10_MTISP,\n+\t\t.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_MTISP_SRGGB10), },\n+\t\t.bitsPerPixel = 10,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n+\t\t.packed = true,\n+\t\t.pixelsPerGroup = 64,\n+\t\t.planes = {{ { 80, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::NV12_10P_MTISP, {\n+\t\t.name = \"NV12_10P_MTISP\",\n+\t\t.format = formats::NV12_10P_MTISP,\n+\t\t.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_MTISP_NV12_10P), },\n+\t\t.bitsPerPixel = 15,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = true,\n+\t\t.pixelsPerGroup = 64,\n+\t\t.planes = {{ { 80, 1 }, { 80, 2 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::NV12_12P_MTISP, {\n+\t\t.name = \"NV12_12P_MTISP\",\n+\t\t.format = formats::NV12_12P_MTISP,\n+\t\t.v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_MTISP_NV12_12P), },\n+\t\t.bitsPerPixel = 12,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = true,\n+\t\t.pixelsPerGroup = 64,\n+\t\t.planes = {{ { 96, 1 }, { 96, 2 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::MTFP_MTISP, {\n+\t\t.name = \"MTFP_MTISP\",\n+\t\t.format = formats::MTFP_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_META_FMT_MTISP_PARAMS),\n+\t\t},\n+\t\t.bitsPerPixel = 0,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::MTFA_MTISP, {\n+\t\t.name = \"MTFA_MTISP\",\n+\t\t.format = formats::MTFA_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_META_FMT_MTISP_3A),\n+\t\t},\n+\t\t.bitsPerPixel = 0,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::MTFF_MTISP, {\n+\t\t.name = \"MTFF_MTISP\",\n+\t\t.format = formats::MTFF_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_META_FMT_MTISP_AF),\n+\t\t},\n+\t\t.bitsPerPixel = 0,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::MTFD_MTISP, {\n+\t\t.name = \"MTFD_MTISP\",\n+\t\t.format = formats::MTFD_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_META_FMT_MTISP_DESC),\n+\t\t},\n+\t\t.bitsPerPixel = 8,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 8,\n+\t\t.planes = {{ { 8, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::MTFS_MTISP, {\n+\t\t.name = \"MTFS_MTISP\",\n+\t\t.format = formats::MTFS_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_META_FMT_MTISP_SD),\n+\t\t},\n+\t\t.bitsPerPixel = 8,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 8,\n+\t\t.planes = {{ { 8, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::MTFR_MTISP, {\n+\t\t.name = \"MTFR_MTISP\",\n+\t\t.format = formats::MTFR_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_META_FMT_MTISP_DESCNORM),\n+\t\t},\n+\t\t.bitsPerPixel = 0,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::MTSR_MTISP, {\n+\t\t.name = \"MTSR_MTISP\",\n+\t\t.format = formats::MTSR_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_META_FMT_MTISP_SDNORM),\n+\t\t},\n+\t\t.bitsPerPixel = 0,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::WARP2P_MTISP, {\n+\t\t.name = \"WARP2P_MTISP\",\n+\t\t.format = formats::WARP2P_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_PIX_FMT_WARP2P),\n+\t\t},\n+\t\t.bitsPerPixel = 32,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 2,\n+\t\t.planes = {{ { 8, 1 }, { 8, 1 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::Y8_MTISP, {\n+\t\t.name = \"Y8_MTISP\",\n+\t\t.format = formats::Y8_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_PIX_FMT_MTISP_Y8),\n+\t\t},\n+\t\t.bitsPerPixel = 8,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 1, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::Y16_MTISP, {\n+\t\t.name = \"Y16_MTISP\",\n+\t\t.format = formats::Y16_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_PIX_FMT_MTISP_Y16),\n+\t\t},\n+\t\t.bitsPerPixel = 16,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 2, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\t{ formats::Y32_MTISP, {\n+\t\t.name = \"Y32_MTISP\",\n+\t\t.format = formats::Y32_MTISP,\n+\t\t.v4l2Formats = {\n+\t\t\tV4L2PixelFormat(V4L2_PIX_FMT_MTISP_Y32),\n+\t\t},\n+\t\t.bitsPerPixel = 32,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingYUV,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n+\n \t/* Compressed formats. */\n \t{ formats::MJPEG, {\n \t\t.name = \"MJPEG\",\ndiff --git a/src/libcamera/formats.yaml b/src/libcamera/formats.yaml\nindex 2d54d391..8c72d706 100644\n--- a/src/libcamera/formats.yaml\n+++ b/src/libcamera/formats.yaml\n@@ -209,4 +209,42 @@ formats:\n - MONO_PISP_COMP1:\n fourcc: DRM_FORMAT_R16\n mod: PISP_FORMAT_MOD_COMPRESS_MODE1\n+\n+ - GREY:\n+ fourcc: DRM_FORMAT_GREY\n+ - SBGGR10_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_SBGGR10\n+ - SGBRG10_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_SGBRG10\n+ - SGRBG10_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_SGRBG10\n+ - SRGGB10_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_SRGGB10\n+ - NV12_10P_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_NV12_10P\n+ - NV12_12P_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_NV12_12P\n+ - MTFP_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_PARAMS\n+ - MTFA_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_3A\n+ - MTFF_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_AF\n+ - MTFD_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_DESC\n+ - MTFS_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_SD\n+ - MTFR_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_DESC_NORM\n+ - MTSR_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_SDNORM\n+ - WARP2P_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_WARP2P\n+ - Y8_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_Y8\n+ - Y16_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_Y16\n+ - Y32_MTISP:\n+ fourcc: DRM_FORMAT_MTISP_Y32\n+\n ...\n", "prefixes": [ "1/1" ] }