{"id":20014,"url":"https://patchwork.libcamera.org/api/1.1/patches/20014/?format=json","web_url":"https://patchwork.libcamera.org/patch/20014/","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":"<20240508080401.14850-4-naush@raspberrypi.com>","date":"2024-05-08T08:03:58","name":"[v2,3/6] libcamera: v4l2_subdevice: Add missing MEDIA_BUS_FMT_xxxx16_1X16 info","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"4a4b06c1df92160b8093511b4cacceef67588191","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/1.1/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/20014/mbox/","series":[{"id":4293,"url":"https://patchwork.libcamera.org/api/1.1/series/4293/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4293","date":"2024-05-08T08:03:55","name":"Pre Raspberry Pi 5 support changes","version":2,"mbox":"https://patchwork.libcamera.org/series/4293/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/20014/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/20014/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 E17FAC32C9\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  8 May 2024 08:04:11 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CFFA26343D;\n\tWed,  8 May 2024 10:04:09 +0200 (CEST)","from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com\n\t[IPv6:2a00:1450:4864:20::22f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D6EAD63437\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  8 May 2024 10:04:03 +0200 (CEST)","by mail-lj1-x22f.google.com with SMTP id\n\t38308e7fff4ca-2dfb4ea2bbfso44582221fa.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 08 May 2024 01:04:03 -0700 (PDT)","from localhost.localdomain ([188.39.149.98])\n\tby smtp.gmail.com with ESMTPSA id\n\tw16-20020a05600c475000b0041c14061c71sm1351944wmo.15.2024.05.08.01.04.01\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 08 May 2024 01:04:01 -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=\"M/FXJAZQ\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1715155442; x=1715760242;\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=iPJd9lQdz9Fv+bpRr8eSSLQ3odtJUopFSW1cSOY+Mqg=;\n\tb=M/FXJAZQy9hDi4DRAAAbACauJWWaRrnt//b5yNktjjQEHRG/Rcxa0wLauykcnmqL/U\n\tnX3yUnxVo7RNzGK4MM25sa5yCpU5iUjsIC4U6p5zUg7IQ+BiTfvvk8jCbg0GxkvWk/p9\n\tJQsFM2FLBf1HWRfcL0NwQkMvPA1DZ67d1IdB2lbaMRXUbiROIAss9lr40pdcJ9OrW4R7\n\ttl8aQWUHcSUvvTE44NJUVdNVipar5F5qbCsm1dw2Lr6G+XRAnhW5m7bH12FqrLUdvBTs\n\tb4OmcwaWjYtORQqwJt8nLiHZ8cob6ATq88wMo+glPOXq5TwsLJ8HuEHB1AX1fnG7EMiU\n\tv+WA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1715155442; x=1715760242;\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=iPJd9lQdz9Fv+bpRr8eSSLQ3odtJUopFSW1cSOY+Mqg=;\n\tb=kp/EUXM7UJnBMxm9byGxFoo1JXYq4zXlPqeE1KFxUpISJS5y1H8pS8SCF+SXKCUG0a\n\taJVC4o3N9sgNZ+JjpDdzo379Y750z5YMr1AsOFYs4ubrKVlvtegyeMSfdOPaA0J9tFnS\n\tUDG9slLTOl5dbNHoFVR8RhX4AysuAQJznknvX/OUkJeP7HcT6sXzLSFW0c5UJxuFrZxy\n\t2Ty8ijHYAl+4cFWon+nJRbULV4uS++n6mZ6GQwCzmXQ0U232cn/9FI5MDtIxALgVzxlx\n\txsO9E8zGrnAiGBn41LC8JRw3VvxJDfO7zWQEG1N86D5o84b+6dV0oduJvC9n9teKC0FY\n\tjlzQ==","X-Gm-Message-State":"AOJu0YxbjG5DOErKbQoci/sBRxUZ+XGgq/xgdpXqWjNPhGnLWfXD+K2E\n\tQIHx8p2LFtEbvXV2zgj6kx+etQHOF0WGMLjHbyEEODaJT4toYpM5s4cHgrgqUdL1ctCuTwy9UBI\n\tt","X-Google-Smtp-Source":"AGHT+IEjn+kQ5GqfE6j54MSCBznmkLe/woNO5ag0VJzf6R7PRlzdxSn0eo/wAOetbr+vHfK4/cK5hA==","X-Received":"by 2002:a2e:9656:0:b0:2df:732b:2488 with SMTP id\n\t38308e7fff4ca-2e447699603mr10559551fa.30.1715155442317; \n\tWed, 08 May 2024 01:04:02 -0700 (PDT)","From":"Naushir Patuck <naush@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Naushir Patuck <naush@raspberrypi.com>","Subject":"[PATCH v2 3/6] libcamera: v4l2_subdevice: Add missing\n\tMEDIA_BUS_FMT_xxxx16_1X16 info","Date":"Wed,  8 May 2024 09:03:58 +0100","Message-Id":"<20240508080401.14850-4-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.34.1","In-Reply-To":"<20240508080401.14850-1-naush@raspberrypi.com>","References":"<20240508080401.14850-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>\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 1076b7006b0b..ca01ea3fe455 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":["v2","3/6"]}