From patchwork Fri May 10 10:02:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 20040 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 C25FFBDE6B for ; Fri, 10 May 2024 10:02:28 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 463E16346E; Fri, 10 May 2024 12:02:23 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="QGpCjU0W"; dkim-atps=neutral Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1A7566345E for ; Fri, 10 May 2024 12:02:15 +0200 (CEST) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-41ba1ba55e8so11985735e9.1 for ; Fri, 10 May 2024 03:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1715335334; x=1715940134; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tcSAcSzVxRQggZxuvQRVlL4LKOla+iH3D8tB9k2gZ2I=; b=QGpCjU0WjRkoTu8mOUZToHVTFHCECQA/7sT6J2U4Yr9U+ScYXCZfuuv8889Et5n3dT 937NC77RrEpJ918gIz7RDu+CymSUVrshIhzwlEhyVDG+MLD6hrUxvGiR7mEsXIsW16ol 1HoUyGGcVE3SE/vNuHm40ZpEEiCxPdVuY6fjHdOnWsYDstbgk4SQag8RFYR1zY0otd10 G5bwItw2mqrwKWYSgJbkYVC7tsB6JCsKglNAeHfka4OuAFrqAiJWGE32HXncSlnt+QjO alAjwkQphCzcTIYXr8giTkG67WZFJN/Du4d35r2xQfwryrMzvLPnrFyGoADEwqjU1ZkF jp/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715335334; x=1715940134; 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:message-id:reply-to; bh=tcSAcSzVxRQggZxuvQRVlL4LKOla+iH3D8tB9k2gZ2I=; b=rf/lo9HoXlDh8J5yeS92EFgyHnK44PvNpy58+s22YRl25hfvlq2seX3dCqFx7aeqVZ nf90/+BGXFgFdvQTX4LXJ05zNkPzNcWxLjQ5FYWT+NPdU8yZoc4JlcWo3FEogZeLEEr6 FFDUxvhFBzzkMfwy1aEXbTJn+HSqsPfcjT0aIHylblyKsc/y5AhnD0QjR2rV87gFc0c9 3Gv0O+wyPwRjJBZlIIed7+oxVZWG3fFRwgwkqjNqn6qW4Us9XqxTqwUem9eq5Fmjwtoz 5YMGvGzVmUo4J1c1z3imk7Y/mxQt+VDKVHUv8VpS0PWL1bu5hXZtzEFIQxRU1I9R7Fu2 eOfQ== X-Gm-Message-State: AOJu0Yy+M2U22WZHl82JxVu1asuBvflqe34CVXOCnuLMEWUnfzDhXWNQ dStE65E5s9V6GL6jC+F4qhWozi3uZx6hBS4noMNaFf5G0EP0vwYaRfx+SbXiolWojc/eEIb91Re U X-Google-Smtp-Source: AGHT+IFFHwsyaxdm0dnPwfuAhXjS7JaD1MWoMwySAIYKw0bTuvPZ+AWq1mOiyD8cCGoSK066JaHtOw== X-Received: by 2002:a05:600c:1d21:b0:41b:e4dd:e320 with SMTP id 5b1f17b1804b1-41feac5b124mr17284245e9.26.1715335334579; Fri, 10 May 2024 03:02:14 -0700 (PDT) Received: from localhost.localdomain ([188.39.149.98]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9318sm57936385e9.30.2024.05.10.03.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 03:02:14 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck , Jacopo Mondi , Kieran Bingham , Laurent Pinchart Subject: [PATCH v3 5/7] libcamera: v4l2_subdevice: Add missing MEDIA_BUS_FMT_xxxx16_1X16 info Date: Fri, 10 May 2024 11:02:06 +0100 Message-Id: <20240510100208.12188-6-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240510100208.12188-1-naush@raspberrypi.com> References: <20240510100208.12188-1-naush@raspberrypi.com> MIME-Version: 1.0 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 the missing 16-bit MEDIA_BUS_FMT_xxxx16_1X16 definitions to the mediaBusFormatInfo table. Signed-off-by: Naushir Patuck Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/libcamera/v4l2_subdevice.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp index f493fc1f303f..6da77775778f 100644 --- a/src/libcamera/v4l2_subdevice.cpp +++ b/src/libcamera/v4l2_subdevice.cpp @@ -651,6 +651,34 @@ const std::map mediaBusFormatInfo{ .bitsPerPixel = 14, .colourEncoding = PixelFormatInfo::ColourEncodingRAW, } }, + { MEDIA_BUS_FMT_SBGGR16_1X16, { + .name = "SBGGR16_1X16", + .code = MEDIA_BUS_FMT_SBGGR16_1X16, + .type = MediaBusFormatInfo::Type::Image, + .bitsPerPixel = 16, + .colourEncoding = PixelFormatInfo::ColourEncodingRAW + } }, + { MEDIA_BUS_FMT_SGBRG16_1X16, { + .name = "SGBRG16_1X16", + .code = MEDIA_BUS_FMT_SGBRG16_1X16, + .type = MediaBusFormatInfo::Type::Image, + .bitsPerPixel = 16, + .colourEncoding = PixelFormatInfo::ColourEncodingRAW + } }, + { MEDIA_BUS_FMT_SGRBG16_1X16, { + .name = "SGRBG16_1X16", + .code = MEDIA_BUS_FMT_SGRBG16_1X16, + .type = MediaBusFormatInfo::Type::Image, + .bitsPerPixel = 16, + .colourEncoding = PixelFormatInfo::ColourEncodingRAW + } }, + { MEDIA_BUS_FMT_SRGGB16_1X16, { + .name = "SRGGB16_1X16", + .code = MEDIA_BUS_FMT_SRGGB16_1X16, + .type = MediaBusFormatInfo::Type::Image, + .bitsPerPixel = 16, + .colourEncoding = PixelFormatInfo::ColourEncodingRAW + } }, /* \todo Clarify colour encoding for HSV formats */ { MEDIA_BUS_FMT_AHSV8888_1X32, { .name = "AHSV8888_1X32",