From patchwork Wed May 8 08:03:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 20014 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 E17FAC32C9 for ; Wed, 8 May 2024 08:04:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CFFA26343D; Wed, 8 May 2024 10:04:09 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="M/FXJAZQ"; dkim-atps=neutral Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D6EAD63437 for ; Wed, 8 May 2024 10:04:03 +0200 (CEST) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2dfb4ea2bbfso44582221fa.2 for ; Wed, 08 May 2024 01:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1715155442; x=1715760242; 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=iPJd9lQdz9Fv+bpRr8eSSLQ3odtJUopFSW1cSOY+Mqg=; b=M/FXJAZQy9hDi4DRAAAbACauJWWaRrnt//b5yNktjjQEHRG/Rcxa0wLauykcnmqL/U nX3yUnxVo7RNzGK4MM25sa5yCpU5iUjsIC4U6p5zUg7IQ+BiTfvvk8jCbg0GxkvWk/p9 JQsFM2FLBf1HWRfcL0NwQkMvPA1DZ67d1IdB2lbaMRXUbiROIAss9lr40pdcJ9OrW4R7 tl8aQWUHcSUvvTE44NJUVdNVipar5F5qbCsm1dw2Lr6G+XRAnhW5m7bH12FqrLUdvBTs b4OmcwaWjYtORQqwJt8nLiHZ8cob6ATq88wMo+glPOXq5TwsLJ8HuEHB1AX1fnG7EMiU v+WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715155442; x=1715760242; 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=iPJd9lQdz9Fv+bpRr8eSSLQ3odtJUopFSW1cSOY+Mqg=; b=kp/EUXM7UJnBMxm9byGxFoo1JXYq4zXlPqeE1KFxUpISJS5y1H8pS8SCF+SXKCUG0a aJVC4o3N9sgNZ+JjpDdzo379Y750z5YMr1AsOFYs4ubrKVlvtegyeMSfdOPaA0J9tFnS UDG9slLTOl5dbNHoFVR8RhX4AysuAQJznknvX/OUkJeP7HcT6sXzLSFW0c5UJxuFrZxy 2Ty8ijHYAl+4cFWon+nJRbULV4uS++n6mZ6GQwCzmXQ0U232cn/9FI5MDtIxALgVzxlx xsO9E8zGrnAiGBn41LC8JRw3VvxJDfO7zWQEG1N86D5o84b+6dV0oduJvC9n9teKC0FY jlzQ== X-Gm-Message-State: AOJu0YxbjG5DOErKbQoci/sBRxUZ+XGgq/xgdpXqWjNPhGnLWfXD+K2E QIHx8p2LFtEbvXV2zgj6kx+etQHOF0WGMLjHbyEEODaJT4toYpM5s4cHgrgqUdL1ctCuTwy9UBI t X-Google-Smtp-Source: AGHT+IEjn+kQ5GqfE6j54MSCBznmkLe/woNO5ag0VJzf6R7PRlzdxSn0eo/wAOetbr+vHfK4/cK5hA== X-Received: by 2002:a2e:9656:0:b0:2df:732b:2488 with SMTP id 38308e7fff4ca-2e447699603mr10559551fa.30.1715155442317; Wed, 08 May 2024 01:04:02 -0700 (PDT) Received: from localhost.localdomain ([188.39.149.98]) by smtp.gmail.com with ESMTPSA id w16-20020a05600c475000b0041c14061c71sm1351944wmo.15.2024.05.08.01.04.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 01:04:01 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [PATCH v2 3/6] libcamera: v4l2_subdevice: Add missing MEDIA_BUS_FMT_xxxx16_1X16 info Date: Wed, 8 May 2024 09:03:58 +0100 Message-Id: <20240508080401.14850-4-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240508080401.14850-1-naush@raspberrypi.com> References: <20240508080401.14850-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 1076b7006b0b..ca01ea3fe455 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",