From patchwork Mon Aug 1 00:05:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16879 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 71C52BE173 for ; Mon, 1 Aug 2022 00:05:54 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 357A063319; Mon, 1 Aug 2022 02:05:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659312354; bh=J9y1wxsC9Ayr3LOYCEFolAuTMO8tvpXc2vAwHf8iMMM=; 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=Bb2zlg0kcOBei2wxKIfYrAP19kTXs7OkqTHEwWixZbKmo6hK5FhwZkdGkyJyq2dGP lRGWMQ13xAIr5nb+ZSmDqBQBwHGVa/Lr4lFq8iGd1eWec5fXrpEbgoPYFQJdXhZgLo TcQTzwjZuQ9gHQ5O9pBgZWkMnLew/WAjajuo0mTopvyBFeE2WIaS+k2CtYIcBSP8kT Nc5JUzOVNFaP7jya/kV0pO49Z6DBbCupdLjaeA/BnbHSOo8oTVnjnfLLwEzuzr/nmV HcluGMn+R7JbWW65fts8UmITBDo+PsyJJfjywIztr89gmgI0dB7X0ecWkL6ReK9N4Z aLgAauYM+i4Pg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id DBF4863312 for ; Mon, 1 Aug 2022 02:05:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Dc8nY5ZM"; 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 791E630B for ; Mon, 1 Aug 2022 02:05:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1659312351; bh=J9y1wxsC9Ayr3LOYCEFolAuTMO8tvpXc2vAwHf8iMMM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Dc8nY5ZMZsqWbaIgqAtOudbL8Lpwcaf2Ee8DAR0ugZWwU9DKtESDBJOxGW1j5hEoA CQWFDT2Nq+N2jVgebKtp7pj7Dzj/TRtxf9ePCsJMnalPI7JQRWZvTzSz/4EnQ7wKrJ FT9a6mT6uuB8dsqe/m/+foVuTOPxSg21upqY745I= To: libcamera-devel@lists.libcamera.org Date: Mon, 1 Aug 2022 03:05:32 +0300 Message-Id: <20220801000543.3501-3-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 02/13] include: drm_fourcc: Add AVUY and XVUY 4:4:4 packet 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" Add FourCCs for the YUV 4:4:4 packed formats AVUY8888 and XVUY8888. This is merged in the upstream kernel as 53618649ca6d ("drm/fourcc: Add formats for packed YUV 4:4:4 AVUY and XVUY permutations"). Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- include/linux/drm_fourcc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h index cc69eecc606f..1496e097004c 100644 --- a/include/linux/drm_fourcc.h +++ b/include/linux/drm_fourcc.h @@ -205,7 +205,9 @@ extern "C" { #define DRM_FORMAT_VYUY fourcc_code('V', 'Y', 'U', 'Y') /* [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian */ #define DRM_FORMAT_AYUV fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */ +#define DRM_FORMAT_AVUY8888 fourcc_code('A', 'V', 'U', 'Y') /* [31:0] A:Cr:Cb:Y 8:8:8:8 little endian */ #define DRM_FORMAT_XYUV8888 fourcc_code('X', 'Y', 'U', 'V') /* [31:0] X:Y:Cb:Cr 8:8:8:8 little endian */ +#define DRM_FORMAT_XVUY8888 fourcc_code('X', 'V', 'U', 'Y') /* [31:0] X:Cr:Cb:Y 8:8:8:8 little endian */ #define DRM_FORMAT_VUY888 fourcc_code('V', 'U', '2', '4') /* [23:0] Cr:Cb:Y 8:8:8 little endian */ #define DRM_FORMAT_VUY101010 fourcc_code('V', 'U', '3', '0') /* Y followed by U then V, 10:10:10. Non-linear modifier only */