{"id":19630,"url":"https://patchwork.libcamera.org/api/1.1/patches/19630/?format=json","web_url":"https://patchwork.libcamera.org/patch/19630/","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":"<20240305110136.3624-2-nick.hollinghurst@raspberrypi.com>","date":"2024-03-05T11:01:35","name":"[1/2] libcamera: v4l2_subdevice: Add 14-bit Bayer formats","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"d562f2944294a35f6544290d76108671b765c995","submitter":{"id":130,"url":"https://patchwork.libcamera.org/api/1.1/people/130/?format=json","name":"Nick Hollinghurst","email":"nick.hollinghurst@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/19630/mbox/","series":[{"id":4202,"url":"https://patchwork.libcamera.org/api/1.1/series/4202/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4202","date":"2024-03-05T11:01:34","name":"Add 14-bit Bayer format support","version":1,"mbox":"https://patchwork.libcamera.org/series/4202/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/19630/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/19630/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 149ACBD160\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  5 Mar 2024 11:01:51 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3131A62868;\n\tTue,  5 Mar 2024 12:01:49 +0100 (CET)","from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com\n\t[IPv6:2a00:1450:4864:20::52d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DA2BC61C8D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  5 Mar 2024 12:01:46 +0100 (CET)","by mail-ed1-x52d.google.com with SMTP id\n\t4fb4d7f45d1cf-564647bcdbfso6353464a12.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 05 Mar 2024 03:01:46 -0800 (PST)","from raspberrypi.pitowers.org\n\t([2001:4d4e:300:1f:47b7:9ea3:c642:9870])\n\tby smtp.gmail.com with ESMTPSA id\n\tfk25-20020a056402399900b00566a461e1ecsm5613726edb.73.2024.03.05.03.01.46\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 05 Mar 2024 03:01:46 -0800 (PST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"YO5VD20Q\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1709636506; x=1710241306;\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=GKqRlOMQqo2H8pDOZII7SiWT0iKJ/HC2YT/Zh6B7eic=;\n\tb=YO5VD20QMLaqrD74KtalX/3XSfU48MshMusv9WjD/OC9pbv/lYDrA/k2JRBDG4fm8d\n\tzEN8mGdVGpSQOtdkMWVFowyk8qEsFBPIyYnxLkR+Vpm/KTysloEMivyLaRB54hzeIgZ6\n\tb3jolGae77Nl7D9Whk8vb+j33eiMc7rWvjUev9NA8tUHN0IHcmYtbFAx2l8JTqUWGCu6\n\t/MEomsdVP+qeqSqd/Vf3EKpyI5bZ1It3nHkxupjr/05ddAN8sIN2z6l9aJTQkvSqsLhk\n\the5uLvZAV31+CcrS/Be9KOUcc2k5GuOTDNPerP2nvtXXkZipfOWLHH8wohg1XKz2T8rK\n\tLgTw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1709636506; x=1710241306;\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=GKqRlOMQqo2H8pDOZII7SiWT0iKJ/HC2YT/Zh6B7eic=;\n\tb=vurdVILjq8EMzheYeydzfB4IfDH2nz2XnqTAyXp2Qt/EBuQ+xdd7Ll0654KWB1d9yl\n\tMDKTw3iGJX9cDVHadsiC7Mkx+d2oX8SWahtwMq0/dOHRGaB1kRoRqtnf0eYT4JlwPyL0\n\tKmObvHUisYH/ZEHAOQkA/LIbc/FyfG6jTK4/i++Bt4jxuc56+pqPCq/P1dAdnhNe8WfG\n\tpVM81GvhQDdZZGczK4QMua3cKOjKELHFaVmouyd5e1KRQLpijs1CPqwYOt/OST7fA7Ca\n\t7IRLxvDs8ULT+3wJJfLRnA0RejustDtudtxpzYblWrUJ5El60TKL7/lR7ZnRtnBFWser\n\tENFg==","X-Gm-Message-State":"AOJu0YxtnohIyJKlcyu7TiSVrgKY40kQvZOQY7GcIa/aA38TOF8dAv9x\n\tjrZKgH+vlAyOcYcW2BynJIk5LbktmhpblUGA2MWInUAm0oouErEJ71cBvo09oi9XJlLMhj16Rlu\n\t1","X-Google-Smtp-Source":"AGHT+IFqjuNwTUsWd5CJ/HYZtlVYY/lgpwucZxmm0TWURvcYR8CZ987xUtK2Es076OqnbVF3E+smJA==","X-Received":"by 2002:a50:cb86:0:b0:565:1815:dfc5 with SMTP id\n\tk6-20020a50cb86000000b005651815dfc5mr8089802edi.0.1709636506576; \n\tTue, 05 Mar 2024 03:01:46 -0800 (PST)","From":"Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Subject":"[PATCH 1/2] libcamera: v4l2_subdevice: Add 14-bit Bayer formats","Date":"Tue,  5 Mar 2024 11:01:35 +0000","Message-Id":"<20240305110136.3624-2-nick.hollinghurst@raspberrypi.com>","X-Mailer":"git-send-email 2.30.2","In-Reply-To":"<20240305110136.3624-1-nick.hollinghurst@raspberrypi.com>","References":"<20240305110136.3624-1-nick.hollinghurst@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>","Cc":"Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add MEDIA_BUS_FMT_SBGGR14_1X14 etc to formatInfoMap.\nNot adding any Y14 for now.\n\nSigned-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>\n---\n src/libcamera/v4l2_subdevice.cpp | 4 ++++\n 1 file changed, 4 insertions(+)","diff":"diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp\nindex aea90aba..dfe46fa7 100644\n--- a/src/libcamera/v4l2_subdevice.cpp\n+++ b/src/libcamera/v4l2_subdevice.cpp\n@@ -134,6 +134,10 @@ const std::map<uint32_t, V4L2SubdeviceFormatInfo> formatInfoMap = {\n \t{ MEDIA_BUS_FMT_SGBRG12_1X12, { 12, \"SGBRG12_1X12\", PixelFormatInfo::ColourEncodingRAW } },\n \t{ MEDIA_BUS_FMT_SGRBG12_1X12, { 12, \"SGRBG12_1X12\", PixelFormatInfo::ColourEncodingRAW } },\n \t{ MEDIA_BUS_FMT_SRGGB12_1X12, { 12, \"SRGGB12_1X12\", PixelFormatInfo::ColourEncodingRAW } },\n+\t{ MEDIA_BUS_FMT_SBGGR14_1X14, { 14, \"SBGGR14_1X14\", PixelFormatInfo::ColourEncodingRAW } },\n+\t{ MEDIA_BUS_FMT_SGBRG14_1X14, { 14, \"SGBRG14_1X14\", PixelFormatInfo::ColourEncodingRAW } },\n+\t{ MEDIA_BUS_FMT_SGRBG14_1X14, { 14, \"SGRBG14_1X14\", PixelFormatInfo::ColourEncodingRAW } },\n+\t{ MEDIA_BUS_FMT_SRGGB14_1X14, { 14, \"SRGGB14_1X14\", PixelFormatInfo::ColourEncodingRAW } },\n \t{ MEDIA_BUS_FMT_SBGGR16_1X16, { 16, \"SBGGR16_1x16\", PixelFormatInfo::ColourEncodingRAW } },\n \t{ MEDIA_BUS_FMT_SGBRG16_1X16, { 16, \"SGBRG16_1x16\", PixelFormatInfo::ColourEncodingRAW } },\n \t{ MEDIA_BUS_FMT_SGRBG16_1X16, { 16, \"SGRBG16_1x16\", PixelFormatInfo::ColourEncodingRAW } },\n","prefixes":["1/2"]}