From patchwork Mon Nov 1 09:15:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 14441 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 232D5C3250 for ; Mon, 1 Nov 2021 09:15:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CEB94600C4; Mon, 1 Nov 2021 10:15:21 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="eBaNO+bE"; dkim-atps=neutral Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id AF35860128 for ; Mon, 1 Nov 2021 10:15:17 +0100 (CET) Received: by mail-wr1-x429.google.com with SMTP id u18so27199766wrg.5 for ; Mon, 01 Nov 2021 02:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YesGHpRAyZMpmSPOBCJXtfRxd1p/hEyqkx/brSyO1nk=; b=eBaNO+bEQtD517HXixD2GGZL4sXzIBu+LQIm06cQV94yaRRh+YxevHLgjl3ieWFkpv xGIY1Ops6pRZm11ktne+ETs2DcnsCpQqKNEglAFsrHB1U2EtdgRb/LEhilDwOkPOchpV F7v5hMJtgROlF9qwRIOPtP46x35iCthd5F6AdGWalb+EbU9ghIQ1KE/3fGKvctNHZ2nE akAwuTo1leDI18jvC7Rw+qKWftjjXgeJHaYYEI/dUrpRAP7cWzqgEZq4WHFDKjERArZA 0qOYnX2oUylpUXgm/inUzh0pOrUJFroS7RuQZN7JFi42My73BTWPkFqNlxrJwE9s8feu MaiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YesGHpRAyZMpmSPOBCJXtfRxd1p/hEyqkx/brSyO1nk=; b=GrWqCws1Ovlh94yRSmVqGvIZ8FugXfPYVRBRt3a7eGJrDavEL9RqOEwGGPoie2K54p 1F11DvFeVCWmmhFMmNgctZl/m8LrwW5CCvPFOxIM6MoKwwki4XDrpXxaBbfGR/lNpvYc f4/OooWHvALJZeGMjCMdR/dR51oYkrI2XryYsXPDKVxc1wDbY2mJGcz7QhFojouOj//0 JRFCFM4Q4nFpZ4CWYJDRjoWsutSzdnkY3WTLEmOH7mWIjZ0XthiI0wpihPLpj4lhSkVL z8/HkITI8KuoEuVrho1d3PqDGlVAmNawP2nW+E90tMGZUS6vVS710Y0my3Ov9JeNXRIp NrWg== X-Gm-Message-State: AOAM532N90KUGmFoJbdlyj07IF+NlFEtoJiiCNuZNAN/BCGEXuIHrSv7 eEuPcSxm2D0V+TmvMA7u0lhJU/n8M9WgnwZm X-Google-Smtp-Source: ABdhPJz6ziOs1ZkzP85nUYGBHr6RBxOlJqRKkMOqxc38InzmdWkI/YsGHY1xZssuObNqp3Oy/3yaGg== X-Received: by 2002:a5d:648b:: with SMTP id o11mr37081766wri.56.1635758117262; Mon, 01 Nov 2021 02:15:17 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:3a2b:9d8c:92b9:ece6]) by smtp.gmail.com with ESMTPSA id w10sm13168849wrq.88.2021.11.01.02.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Nov 2021 02:15:16 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Mon, 1 Nov 2021 09:15:05 +0000 Message-Id: <20211101091510.23204-7-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211101091510.23204-1-naush@raspberrypi.com> References: <20211101091510.23204-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 06/11] libcamera: bayer_format: Add unpacked mono 10-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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add BayerFormat conversions for formats::R10 (10-bit unpacked) format. Signed-off-by: Naushir Patuck Reviewed-by: Kieran Bingham --- src/libcamera/bayer_format.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/bayer_format.cpp b/src/libcamera/bayer_format.cpp index 120115ce8f62..8665a025f7e0 100644 --- a/src/libcamera/bayer_format.cpp +++ b/src/libcamera/bayer_format.cpp @@ -149,6 +149,8 @@ const std::map bayerToFormat{ { formats::SRGGB16, V4L2PixelFormat(V4L2_PIX_FMT_SRGGB16) } }, { { BayerFormat::MONO, 8, BayerFormat::Packing::None }, { formats::R8, V4L2PixelFormat(V4L2_PIX_FMT_GREY) } }, + { { BayerFormat::MONO, 10, BayerFormat::Packing::None }, + { formats::R10, V4L2PixelFormat(V4L2_PIX_FMT_Y10) } }, { { BayerFormat::MONO, 10, BayerFormat::Packing::CSI2 }, { formats::R10_CSI2P, V4L2PixelFormat(V4L2_PIX_FMT_Y10P) } }, };