From patchwork Sat Mar 18 23:40:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 18412 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 E6FC2C329C for ; Sat, 18 Mar 2023 23:40:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C3DFE626E9; Sun, 19 Mar 2023 00:40:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1679182837; bh=37dnXqw6W2GjXsnIbwOLep9TZNkKb8wAqCTSbsuFSR4=; 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=JvYdfZoNs2C5Q2Cczk+QrsVWhQ9HOoZUE0gDt3Qu/Oz3zrMkXXkWv4ZPwVH+sLq+w iOnzaz3kdXNiYjT3iJ6UiA8Q7Mrd9p/MDri3wvvzVWTR2/oQc1xWkoRjJ0YOn03dcp cQH2g/x86kGLptMXy0/MRVMTPq2rgrSQZS8sAldpYnjb/gj7SEbBHlKoTMxWfUhZsi UxDQ1ANuqPYd2QkqeWnnqXUZpWnWXQ0kjty0+8AGL13dEyPxxHBcOMU5w/CaBaSH4c k/sFd0TpRA2Eeuw+Y8wdCNx9N3EaxIpW9Lopdkrf/zhS6kk5VHEPsvI40p6GYWbQVP rTEvWsX5FsQYA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C4B87626E7 for ; Sun, 19 Mar 2023 00:40:32 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="CtB8sZ67"; dkim-atps=neutral Received: from mail.ideasonboard.com (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 62AA8B6C; Sun, 19 Mar 2023 00:40:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1679182832; bh=37dnXqw6W2GjXsnIbwOLep9TZNkKb8wAqCTSbsuFSR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CtB8sZ67Il6MJgfU2jQTdGPIZ001d6x7HcgN5Kn2l2bQqYNDbcKJ8bic3WA3J/gdx +59S/VAK7iR1kMbgbJ7QonqoPKx8nNpry3rPm3ZqX16lHm/v+Vh2pC8+4w3uewHhn9 WpuZ4BNYuUdNCKGlrKIgJjUUHlaPNxzcspO+v6Tw= To: libcamera-devel@lists.libcamera.org Date: Sat, 18 Mar 2023 23:40:06 +0000 Message-Id: <20230318234014.29506-4-dan.scally@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230318234014.29506-1-dan.scally@ideasonboard.com> References: <20230318234014.29506-1-dan.scally@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 03/11] libcamera/formats: Add IPU3_Y10 format 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: Daniel Scally via libcamera-devel From: Dan Scally Reply-To: Daniel Scally Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add entries to libcamera's pixelFormatInfo map describing the IPU3_Y10 format which is exposed by the CIO2 device when connected to certain camera sensors, such as the OmniVision 7251 IR Camera. Signed-off-by: Daniel Scally --- src/libcamera/formats.cpp | 10 ++++++++++ src/libcamera/formats.yaml | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp index f5769c48..eda657c5 100644 --- a/src/libcamera/formats.cpp +++ b/src/libcamera/formats.cpp @@ -517,6 +517,16 @@ const std::map pixelFormatInfo{ .pixelsPerGroup = 4, .planes = {{ { 5, 1 }, { 0, 0 }, { 0, 0 } }}, } }, + { formats::Y10_IPU3, { + .name = "Y10_IPU3", + .format = formats::Y10_IPU3, + .v4l2Formats = { V4L2PixelFormat(V4L2_PIX_FMT_IPU3_Y10), }, + .bitsPerPixel = 10, + .colourEncoding = PixelFormatInfo::ColourEncodingRAW, + .packed = true, + .pixelsPerGroup = 25, + .planes = {{ { 32, 1 }, { 0, 0 }, { 0, 0 } }}, + } }, /* Bayer formats. */ { formats::SBGGR8, { diff --git a/src/libcamera/formats.yaml b/src/libcamera/formats.yaml index e586cde1..36d3016d 100644 --- a/src/libcamera/formats.yaml +++ b/src/libcamera/formats.yaml @@ -161,4 +161,7 @@ formats: - SBGGR10_IPU3: fourcc: DRM_FORMAT_SBGGR10 mod: IPU3_FORMAT_MOD_PACKED + - Y10_IPU3: + fourcc: DRM_FORMAT_Y10 + mod: IPU3_FORMAT_MOD_PACKED ...