From patchwork Mon Aug 1 00:05:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16880 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 03A29BE173 for ; Mon, 1 Aug 2022 00:05:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AEB606331B; Mon, 1 Aug 2022 02:05:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659312355; bh=WGJ/psKBIHQxWw43NyqTJ7jD5kL03vIOSg57Hx0atWo=; 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=KiL5Ii8lBaAS+YsYR8Iq0nN4KXhUrdH7/CRqa41m5r6fXaJhPysGfVTNpUEEeb4E/ xG1yt3k5J8kS+vpgZJMzndFr85JW3vrNUrLdbYCT6i386zGzfM7zLaVMI/p54K/KAL cMxSYsEIj9pxwgBFrQNnHbmmEF6Yb+sdSN2sA7eq5p4qm6RzdHbs1CybS1gaLPxzWE POSlDKV/6uFxrALphUb9mkPcJnM8Rd04sJpE7sCsrcwixFBB/AeOkZrK0aj1utjDi9 ifwcupDMHC+d8IZBeOfT6sF13OzZpl1XB5pEIs32XE5hhjPFcjWVV4EZaXsUT0egAl euZKFO7ItFmLw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 91DDE63312 for ; Mon, 1 Aug 2022 02:05:53 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ejS3OlZC"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C054930B for ; Mon, 1 Aug 2022 02:05:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1659312353; bh=WGJ/psKBIHQxWw43NyqTJ7jD5kL03vIOSg57Hx0atWo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ejS3OlZCtAoBT6Pjs4uv7h59Wt8TJdaKmtBPIrHyxbYN7eqN2jja3/se6vpeECgLL Cr4hx/KH0xv6PDDpN1iPJfh/x2SVYNmJrHF/39TtgeEI2sQyK9VgbT04RdQ2QLhWfI b9CLTSgNeuA4/Z/a+xm5hw5qL9w19ojdHkQY5rAg= To: libcamera-devel@lists.libcamera.org Date: Mon, 1 Aug 2022 03:05:33 +0300 Message-Id: <20220801000543.3501-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220801000543.3501-1-laurent.pinchart@ideasonboard.com> References: <20220801000543.3501-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 03/13] include: linux: Add V4L2 YUVA32 and YUVX32 pixel 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 Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" These YUV 4:4:4 packed formats are used by the ISI driver. Add them to videodev2.h. This is merged in the upstream kernel as 00f6842ef41d ("media: v4l: Add packed YUV 4:4:4 YUVA and YUVX pixel formats"). Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- include/linux/videodev2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 6e3d58e5a5c4..bfb315d6d058 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -587,6 +587,8 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_XYUV32 v4l2_fourcc('X', 'Y', 'U', 'V') /* 32 XYUV-8-8-8-8 */ #define V4L2_PIX_FMT_VUYA32 v4l2_fourcc('V', 'U', 'Y', 'A') /* 32 VUYA-8-8-8-8 */ #define V4L2_PIX_FMT_VUYX32 v4l2_fourcc('V', 'U', 'Y', 'X') /* 32 VUYX-8-8-8-8 */ +#define V4L2_PIX_FMT_YUVA32 v4l2_fourcc('Y', 'U', 'V', 'A') /* 32 YUVA-8-8-8-8 */ +#define V4L2_PIX_FMT_YUVX32 v4l2_fourcc('Y', 'U', 'V', 'X') /* 32 YUVX-8-8-8-8 */ #define V4L2_PIX_FMT_M420 v4l2_fourcc('M', '4', '2', '0') /* 12 YUV 4:2:0 2 lines y, 1 line uv interleaved */ /* two planes -- one Y, one Cr + Cb interleaved */