From patchwork Thu Jun 16 18:23:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16251 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 0CEA5BD161 for ; Thu, 16 Jun 2022 18:24:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7FA7A65641; Thu, 16 Jun 2022 20:24:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655403853; bh=RN1KaYPR86OAmsv+ndwaXA/1GmqnIThqQYd+ZcJZLBI=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=fcao0d3ctwGXQAXxv+UtJ0IZi26M4n2EM4B7KTDzcwmXMcs2bIqLwSwsz8q5i1Phj Ll9sMBenvl+RXD3uG/dM7bxL1jmlkJpr3skbEXdqT7DFMVZmESBw170wry17UnORj8 79s47mPtJc/k/4Qmmqxt2XA3lKmx2uwJric2vK8nF2TLYw8CkprXZtZDyyo5R2hK1O /k8kNBBFTjkC75IA8FtbRIJENSQoCWUwkG65jjH0K2CSmcksoq3THeHu/blXLvL69v e8AC5AL88eqfZ/x/aQV1iVcowPR9RrTeGV6cjDdX7sh0q3T44s11anchkwbqiXHmQv yeqo8XYkeK1Qg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6288E6563D for ; Thu, 16 Jun 2022 20:24:08 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="YhTCugoS"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A0E12898; Thu, 16 Jun 2022 20:24:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655403848; bh=RN1KaYPR86OAmsv+ndwaXA/1GmqnIThqQYd+ZcJZLBI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YhTCugoSHioUxDgIbJMmmLSDvQKGV70X3a/faGxccV8m/Pt87rjopkg/Gwbl/tiU4 RXG6DXKyx6jbE3B8nJhHrAWBo8SM45Zm+4tP3HLahf7DjvU6jIIulpRfBGCL0c7aoU sRqBOoMRtKl6OOUlRRJFepXdrvCeM9YljIVkClRE= To: libcamera-devel@lists.libcamera.org Date: Thu, 16 Jun 2022 21:23:46 +0300 Message-Id: <20220616182350.17352-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220616182350.17352-1-laurent.pinchart@ideasonboard.com> References: <20220616182350.17352-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/7] media: vivid: Add support for the new YUVA and YUVX formats 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: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Cc: Sakari Ailus , linux-imx@nxp.com, kernel@pengutronix.de, Hans Verkuil Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Extend vivid to support the newly added YUVA and YUVX pixel formats through the TPG. Signed-off-by: Laurent Pinchart --- .../media/test-drivers/vivid/vivid-vid-common.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/media/test-drivers/vivid/vivid-vid-common.c b/drivers/media/test-drivers/vivid/vivid-vid-common.c index 19701fe72030..38d788b5cf19 100644 --- a/drivers/media/test-drivers/vivid/vivid-vid-common.c +++ b/drivers/media/test-drivers/vivid/vivid-vid-common.c @@ -198,6 +198,21 @@ struct vivid_fmt vivid_formats[] = { .planes = 1, .buffers = 1, }, + { + .fourcc = V4L2_PIX_FMT_YUVA32, + .vdownsampling = { 1 }, + .bit_depth = { 32 }, + .planes = 1, + .buffers = 1, + .alpha_mask = 0xff000000, + }, + { + .fourcc = V4L2_PIX_FMT_YUVX32, + .vdownsampling = { 1 }, + .bit_depth = { 32 }, + .planes = 1, + .buffers = 1, + }, { .fourcc = V4L2_PIX_FMT_GREY, .vdownsampling = { 1 },