{"id":17498,"url":"https://patchwork.libcamera.org/api/patches/17498/?format=json","web_url":"https://patchwork.libcamera.org/patch/17498/","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":"<20221003095558.1993-2-naush@raspberrypi.com>","date":"2022-10-03T09:55:55","name":"[libcamera-devel,v3,1/4] libcamera: bayer_format: Add unpacked mono 12-bit format to the conversion table","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"6010dca1877ff7e6c886cad765d9344a29d5bf8b","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/17498/mbox/","series":[{"id":3524,"url":"https://patchwork.libcamera.org/api/series/3524/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3524","date":"2022-10-03T09:55:54","name":"imx296 colour tuning","version":3,"mbox":"https://patchwork.libcamera.org/series/3524/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/17498/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/17498/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 2F8AAC0DA4\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  3 Oct 2022 09:56:09 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4497862CE9;\n\tMon,  3 Oct 2022 11:56:07 +0200 (CEST)","from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com\n\t[IPv6:2a00:1450:4864:20::42c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1EE3661F74\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  3 Oct 2022 11:56:05 +0200 (CEST)","by mail-wr1-x42c.google.com with SMTP id u10so15771390wrq.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 03 Oct 2022 02:56:05 -0700 (PDT)","from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tz10-20020a5d4c8a000000b002286670bafasm9120637wrs.48.2022.10.03.02.56.04\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 03 Oct 2022 02:56:04 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1664790967;\n\tbh=uHraPmksW6UuolJYoXT9mOkJwIm1PVmMdPXrQDTa2wQ=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=xh5RxpJA0JX7m1KjEf81CmwWGi3QFbAQyhg+pJX8pOdBTSl4V8RJCxDqvPJ34WsCF\n\tQH6IJwwK23z+cwHzD3vH+P9NEspFcSLRc7AQeu1rxxq7/hYWcbx6HbOmNV1Zl1hJz+\n\ty4l2v0epfyyWrLCYUO0YhQx+m38m9QtJFRBunO4Y/MnPWNGFPaiB21w0/ZYtQUgIFe\n\tu8TjBsn1Bxz+tDhlE8DMZJrCCNbRFlkiyKGrdofvpURj8LZ65wL9WDyH2RXGIQBysD\n\tC4PTypfFn/Yt7xc094/v9vg1cV2GPVMz9iFMngZEdMmL7cF1WMGd5Gc/JR0o7yJoPx\n\tTXEkJsUU5UVpw==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\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\tbh=UWCQhvdH74TLq/a6I6a7W4TSVIApKj/ulcAFzbFP21g=;\n\tb=IjjYbJ5W9rLFYJ+1wWiHQt1xUtuoNQED3I3D+0FT90xFcfiehy4glgzM47ElafO/SG\n\tzB7Ib5a5unnJjzRxzxbSaSebmrm8WEZl6uS8MxeDKzSIbotexCUJSFzz4WcgPydRAVyv\n\tBkuVVA7aF2phq8kCWECYei23B54mnPXaFC8qcPluewHz3mX7s8FzNmOZnYnjSJAHsfzu\n\tF/J41CpiwG+AfXyTQGAhfrLsODOsqqmePe/KPgru0yv/GF8f3Ag/NFpXu0EUUZTqZc4b\n\t31RRKnL/LM3f3cKXMvBK1WOA8RCjunyw/np3+Qh1iWjYj6yHZeXR4OzRmBcwHGHhbXcn\n\teD6Q=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"IjjYbJ5W\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\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;\n\tbh=UWCQhvdH74TLq/a6I6a7W4TSVIApKj/ulcAFzbFP21g=;\n\tb=7hu7osygu8yUiSw4AiEaFz+aUvWGtDUSr+OU1gJVzmoQeQoD2ZtbvPvSjjJeJB0jqc\n\tWcAMFouPbT1/YA91w7hJ1B/4LoeLyz31FyTuSQdAA54ZlQKRH/G1feC2d0OzL38djEcw\n\ttCA3qGou6qQdj5p3Zrednfl4lpDpN1yD9lVhwYfQbBiprPbp+Vw2zUom0+6hHty/uUGn\n\toSbM6FW08Ab8umnrdSsKZL9iH97jzGuCdjizOILIYDLWfp2MKrJW2Xxy6Nc/iWLbE0qP\n\tHstQy/XB08TUS1ixKWxQ4qbTaWHkoU04etSgDIvramPJ+kD86WygmoORX+6T3CBsh4mk\n\tEaBg==","X-Gm-Message-State":"ACrzQf0odqm1D1I2ZpcFpIIRqSZ973dJR7HUYzq7/DR7cwwhmbIoqNHS\n\tnDNTgf318FmgbS522+Y7ShXANfBD1DgTjA==","X-Google-Smtp-Source":"AMsMyM5UCtylSZYY/AwsCAr+VqDb6I++9ie48+F9TeP4qsR4hgSStuZ2h7kRHfUeoOB1jga7PwBNuA==","X-Received":"by 2002:a05:6000:1f9b:b0:22e:504:1bb with SMTP id\n\tbw27-20020a0560001f9b00b0022e050401bbmr7602561wrb.90.1664790964644; \n\tMon, 03 Oct 2022 02:56:04 -0700 (PDT)","To":"libcamera-devel@lists.libcamera.org","Date":"Mon,  3 Oct 2022 10:55:55 +0100","Message-Id":"<20221003095558.1993-2-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","In-Reply-To":"<20221003095558.1993-1-naush@raspberrypi.com>","References":"<20221003095558.1993-1-naush@raspberrypi.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 1/4] libcamera: bayer_format: Add\n\tunpacked mono 12-bit format to the conversion table","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>","From":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add BayerFormat conversions for formats::R12 (12-bit unpacked) format.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\nReviewed-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/libcamera/bayer_format.cpp | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/src/libcamera/bayer_format.cpp b/src/libcamera/bayer_format.cpp\nindex c2a52f4740d6..f27cc1662d25 100644\n--- a/src/libcamera/bayer_format.cpp\n+++ b/src/libcamera/bayer_format.cpp\n@@ -191,6 +191,7 @@ const std::unordered_map<unsigned int, BayerFormat> mbusCodeToBayer{\n \t{ MEDIA_BUS_FMT_SRGGB16_1X16, { BayerFormat::RGGB, 16, BayerFormat::Packing::None } },\n \t{ MEDIA_BUS_FMT_Y8_1X8, { BayerFormat::MONO, 8, BayerFormat::Packing::None } },\n \t{ MEDIA_BUS_FMT_Y10_1X10, { BayerFormat::MONO, 10, BayerFormat::Packing::None } },\n+\t{ MEDIA_BUS_FMT_Y12_1X12, { BayerFormat::MONO, 12, BayerFormat::Packing::None } },\n };\n \n } /* namespace */\n","prefixes":["libcamera-devel","v3","1/4"]}