From patchwork Mon Oct 3 09:55:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 17498 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 2F8AAC0DA4 for ; Mon, 3 Oct 2022 09:56:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4497862CE9; Mon, 3 Oct 2022 11:56:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1664790967; bh=uHraPmksW6UuolJYoXT9mOkJwIm1PVmMdPXrQDTa2wQ=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xh5RxpJA0JX7m1KjEf81CmwWGi3QFbAQyhg+pJX8pOdBTSl4V8RJCxDqvPJ34WsCF QH6IJwwK23z+cwHzD3vH+P9NEspFcSLRc7AQeu1rxxq7/hYWcbx6HbOmNV1Zl1hJz+ y4l2v0epfyyWrLCYUO0YhQx+m38m9QtJFRBunO4Y/MnPWNGFPaiB21w0/ZYtQUgIFe u8TjBsn1Bxz+tDhlE8DMZJrCCNbRFlkiyKGrdofvpURj8LZ65wL9WDyH2RXGIQBysD C4PTypfFn/Yt7xc094/v9vg1cV2GPVMz9iFMngZEdMmL7cF1WMGd5Gc/JR0o7yJoPx TXEkJsUU5UVpw== Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1EE3661F74 for ; Mon, 3 Oct 2022 11:56:05 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="IjjYbJ5W"; dkim-atps=neutral Received: by mail-wr1-x42c.google.com with SMTP id u10so15771390wrq.2 for ; Mon, 03 Oct 2022 02:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=UWCQhvdH74TLq/a6I6a7W4TSVIApKj/ulcAFzbFP21g=; b=IjjYbJ5W9rLFYJ+1wWiHQt1xUtuoNQED3I3D+0FT90xFcfiehy4glgzM47ElafO/SG zB7Ib5a5unnJjzRxzxbSaSebmrm8WEZl6uS8MxeDKzSIbotexCUJSFzz4WcgPydRAVyv BkuVVA7aF2phq8kCWECYei23B54mnPXaFC8qcPluewHz3mX7s8FzNmOZnYnjSJAHsfzu F/J41CpiwG+AfXyTQGAhfrLsODOsqqmePe/KPgru0yv/GF8f3Ag/NFpXu0EUUZTqZc4b 31RRKnL/LM3f3cKXMvBK1WOA8RCjunyw/np3+Qh1iWjYj6yHZeXR4OzRmBcwHGHhbXcn eD6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=UWCQhvdH74TLq/a6I6a7W4TSVIApKj/ulcAFzbFP21g=; b=7hu7osygu8yUiSw4AiEaFz+aUvWGtDUSr+OU1gJVzmoQeQoD2ZtbvPvSjjJeJB0jqc WcAMFouPbT1/YA91w7hJ1B/4LoeLyz31FyTuSQdAA54ZlQKRH/G1feC2d0OzL38djEcw tCA3qGou6qQdj5p3Zrednfl4lpDpN1yD9lVhwYfQbBiprPbp+Vw2zUom0+6hHty/uUGn oSbM6FW08Ab8umnrdSsKZL9iH97jzGuCdjizOILIYDLWfp2MKrJW2Xxy6Nc/iWLbE0qP HstQy/XB08TUS1ixKWxQ4qbTaWHkoU04etSgDIvramPJ+kD86WygmoORX+6T3CBsh4mk EaBg== X-Gm-Message-State: ACrzQf0odqm1D1I2ZpcFpIIRqSZ973dJR7HUYzq7/DR7cwwhmbIoqNHS nDNTgf318FmgbS522+Y7ShXANfBD1DgTjA== X-Google-Smtp-Source: AMsMyM5UCtylSZYY/AwsCAr+VqDb6I++9ie48+F9TeP4qsR4hgSStuZ2h7kRHfUeoOB1jga7PwBNuA== X-Received: by 2002:a05:6000:1f9b:b0:22e:504:1bb with SMTP id bw27-20020a0560001f9b00b0022e050401bbmr7602561wrb.90.1664790964644; Mon, 03 Oct 2022 02:56:04 -0700 (PDT) Received: from naush-laptop.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id z10-20020a5d4c8a000000b002286670bafasm9120637wrs.48.2022.10.03.02.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 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 Subject: [libcamera-devel] [PATCH v3 1/4] libcamera: bayer_format: Add unpacked 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Naushir Patuck via libcamera-devel From: Naushir Patuck Reply-To: Naushir Patuck Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add BayerFormat conversions for formats::R12 (12-bit unpacked) format. Signed-off-by: Naushir Patuck Reviewed-by: Jacopo Mondi Reviewed-by: David Plowman Reviewed-by: Laurent Pinchart --- src/libcamera/bayer_format.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcamera/bayer_format.cpp b/src/libcamera/bayer_format.cpp index c2a52f4740d6..f27cc1662d25 100644 --- a/src/libcamera/bayer_format.cpp +++ b/src/libcamera/bayer_format.cpp @@ -191,6 +191,7 @@ const std::unordered_map mbusCodeToBayer{ { MEDIA_BUS_FMT_SRGGB16_1X16, { BayerFormat::RGGB, 16, BayerFormat::Packing::None } }, { MEDIA_BUS_FMT_Y8_1X8, { BayerFormat::MONO, 8, BayerFormat::Packing::None } }, { MEDIA_BUS_FMT_Y10_1X10, { BayerFormat::MONO, 10, BayerFormat::Packing::None } }, + { MEDIA_BUS_FMT_Y12_1X12, { BayerFormat::MONO, 12, BayerFormat::Packing::None } }, }; } /* namespace */