{"id":20040,"url":"https://patchwork.libcamera.org/api/patches/20040/?format=json","web_url":"https://patchwork.libcamera.org/patch/20040/","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":"<20240510100208.12188-6-naush@raspberrypi.com>","date":"2024-05-10T10:02:06","name":"[v3,5/7] libcamera: v4l2_subdevice: Add missing MEDIA_BUS_FMT_xxxx16_1X16 info","commit_ref":"84ed4456fc2d2d69e96cb7abcc0314ded1dcb133","pull_url":null,"state":"accepted","archived":false,"hash":"4a4b06c1df92160b8093511b4cacceef67588191","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/20040/mbox/","series":[{"id":4305,"url":"https://patchwork.libcamera.org/api/series/4305/?format=json","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/20040/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/20040/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 C25FFBDE6B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 10 May 2024 10:02:28 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 463E16346E;\n\tFri, 10 May 2024 12:02:23 +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 1A7566345E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 May 2024 12:02:15 +0200 (CEST)","by mail-wm1-x334.google.com with SMTP id\n\t5b1f17b1804b1-41ba1ba55e8so11985735e9.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 10 May 2024 03:02:15 -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.14\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 10 May 2024 03:02:14 -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=\"QGpCjU0W\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1715335334; x=1715940134;\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=tcSAcSzVxRQggZxuvQRVlL4LKOla+iH3D8tB9k2gZ2I=;\n\tb=QGpCjU0WjRkoTu8mOUZToHVTFHCECQA/7sT6J2U4Yr9U+ScYXCZfuuv8889Et5n3dT\n\t937NC77RrEpJ918gIz7RDu+CymSUVrshIhzwlEhyVDG+MLD6hrUxvGiR7mEsXIsW16ol\n\t1HoUyGGcVE3SE/vNuHm40ZpEEiCxPdVuY6fjHdOnWsYDstbgk4SQag8RFYR1zY0otd10\n\tG5bwItw2mqrwKWYSgJbkYVC7tsB6JCsKglNAeHfka4OuAFrqAiJWGE32HXncSlnt+QjO\n\talAjwkQphCzcTIYXr8giTkG67WZFJN/Du4d35r2xQfwryrMzvLPnrFyGoADEwqjU1ZkF\n\tjp/Q==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1715335334; x=1715940134;\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=tcSAcSzVxRQggZxuvQRVlL4LKOla+iH3D8tB9k2gZ2I=;\n\tb=rf/lo9HoXlDh8J5yeS92EFgyHnK44PvNpy58+s22YRl25hfvlq2seX3dCqFx7aeqVZ\n\tnf90/+BGXFgFdvQTX4LXJ05zNkPzNcWxLjQ5FYWT+NPdU8yZoc4JlcWo3FEogZeLEEr6\n\tFFDUxvhFBzzkMfwy1aEXbTJn+HSqsPfcjT0aIHylblyKsc/y5AhnD0QjR2rV87gFc0c9\n\t3Gv0O+wyPwRjJBZlIIed7+oxVZWG3fFRwgwkqjNqn6qW4Us9XqxTqwUem9eq5Fmjwtoz\n\t5YMGvGzVmUo4J1c1z3imk7Y/mxQt+VDKVHUv8VpS0PWL1bu5hXZtzEFIQxRU1I9R7Fu2\n\teOfQ==","X-Gm-Message-State":"AOJu0Yy+M2U22WZHl82JxVu1asuBvflqe34CVXOCnuLMEWUnfzDhXWNQ\n\tdStE65E5s9V6GL6jC+F4qhWozi3uZx6hBS4noMNaFf5G0EP0vwYaRfx+SbXiolWojc/eEIb91Re\n\tU","X-Google-Smtp-Source":"AGHT+IFFHwsyaxdm0dnPwfuAhXjS7JaD1MWoMwySAIYKw0bTuvPZ+AWq1mOiyD8cCGoSK066JaHtOw==","X-Received":"by 2002:a05:600c:1d21:b0:41b:e4dd:e320 with SMTP id\n\t5b1f17b1804b1-41feac5b124mr17284245e9.26.1715335334579; \n\tFri, 10 May 2024 03:02:14 -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>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>","Subject":"[PATCH v3 5/7] libcamera: v4l2_subdevice: Add missing\n\tMEDIA_BUS_FMT_xxxx16_1X16 info","Date":"Fri, 10 May 2024 11:02:06 +0100","Message-Id":"<20240510100208.12188-6-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 the missing 16-bit MEDIA_BUS_FMT_xxxx16_1X16 definitions to the\nmediaBusFormatInfo table.\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>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/v4l2_subdevice.cpp | 28 ++++++++++++++++++++++++++++\n 1 file changed, 28 insertions(+)","diff":"diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp\nindex f493fc1f303f..6da77775778f 100644\n--- a/src/libcamera/v4l2_subdevice.cpp\n+++ b/src/libcamera/v4l2_subdevice.cpp\n@@ -651,6 +651,34 @@ const std::map<uint32_t, MediaBusFormatInfo> mediaBusFormatInfo{\n \t\t.bitsPerPixel = 14,\n \t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW,\n \t} },\n+\t{ MEDIA_BUS_FMT_SBGGR16_1X16, {\n+\t\t.name = \"SBGGR16_1X16\",\n+\t\t.code = MEDIA_BUS_FMT_SBGGR16_1X16,\n+\t\t.type = MediaBusFormatInfo::Type::Image,\n+\t\t.bitsPerPixel = 16,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n+\t} },\n+\t{ MEDIA_BUS_FMT_SGBRG16_1X16, {\n+\t\t.name = \"SGBRG16_1X16\",\n+\t\t.code = MEDIA_BUS_FMT_SGBRG16_1X16,\n+\t\t.type = MediaBusFormatInfo::Type::Image,\n+\t\t.bitsPerPixel = 16,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n+\t} },\n+\t{ MEDIA_BUS_FMT_SGRBG16_1X16, {\n+\t\t.name = \"SGRBG16_1X16\",\n+\t\t.code = MEDIA_BUS_FMT_SGRBG16_1X16,\n+\t\t.type = MediaBusFormatInfo::Type::Image,\n+\t\t.bitsPerPixel = 16,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n+\t} },\n+\t{ MEDIA_BUS_FMT_SRGGB16_1X16, {\n+\t\t.name = \"SRGGB16_1X16\",\n+\t\t.code = MEDIA_BUS_FMT_SRGGB16_1X16,\n+\t\t.type = MediaBusFormatInfo::Type::Image,\n+\t\t.bitsPerPixel = 16,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRAW\n+\t} },\n \t/* \\todo Clarify colour encoding for HSV formats */\n \t{ MEDIA_BUS_FMT_AHSV8888_1X32, {\n \t\t.name = \"AHSV8888_1X32\",\n","prefixes":["v3","5/7"]}