From patchwork Sat Mar 18 23:40:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 18411 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 69A9ABD80A for ; Sat, 18 Mar 2023 23:40:39 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6C745626F9; Sun, 19 Mar 2023 00:40:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1679182836; bh=oo8X+cGG9tHHVj4fuR+PKrUebc2UBZtJTY6LkTiyfDc=; 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=TR00Nw3I5I7rGUQaCDvvCpIuN3rYBdtm2oTQTycEdi+zlU2DsBQdRcUtIN0vaCRR+ Vwi7/T3C3lBch8bqc4cOhPQPLj2S7CO7LIFhiAGe/BHM5lGy1A/YAKmlucv7WxPu1l 9k0T/4AP0lUBBVgup5/rbTzJEnFk6xgxtGGul8p1j4WoADqFz/6aLtBqcuuS1kiN8B 9XJACDn0ltdGc+VFYRnzTFIzfT+FxR1yUTruKBnF22w6MwXFNRJzkFe3IFaH4Hlwyg WOYUfhcw3vQZRIoPRDTy4dX0O4Xm35o9JK7tsf+f35wLZGNh3ntU7Z6gI9Kdnm1v5B 5zuusGpcniuSQ== 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 80651626E4 for ; Sun, 19 Mar 2023 00:40:32 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="nXfXHNXK"; dkim-atps=neutral Received: from mail.ideasonboard.com (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0B45EDFB; Sun, 19 Mar 2023 00:40:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1679182832; bh=oo8X+cGG9tHHVj4fuR+PKrUebc2UBZtJTY6LkTiyfDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nXfXHNXKqeX5fH5ypWI0+O4KI+Q/QB8O684TaaF+Sho+rdeLZBmDfKJ4Z8IoN2l6w +q1wQYePpX6lP+0MGUayxkN5jfhDqlcgiGzVOWXncNjsM8TmaG9eIpZ6YN/2APn03I lOwlusfmFE/MFeLNEOyeng1Jf9ialQB2wEOKdilk= To: libcamera-devel@lists.libcamera.org Date: Sat, 18 Mar 2023 23:40:05 +0000 Message-Id: <20230318234014.29506-3-dan.scally@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230318234014.29506-1-dan.scally@ideasonboard.com> References: <20230318234014.29506-1-dan.scally@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 02/11] include: drm_fourcc: Add Y10 format 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: Daniel Scally via libcamera-devel From: Dan Scally Reply-To: Daniel Scally Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a FourCC entry for the V4L2_PIX_FMT_Y10 image data format. Signed-off-by: Daniel Scally --- include/linux/drm_fourcc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h index 1496e097..b181a534 100644 --- a/include/linux/drm_fourcc.h +++ b/include/linux/drm_fourcc.h @@ -98,6 +98,9 @@ extern "C" { /* Reserve 0 for the invalid format specifier */ #define DRM_FORMAT_INVALID 0 +/* 10 bpp greyscale */ +#define DRM_FORMAT_Y10 fourcc_code('Y', '1', '0', ' ') /* [15:0] Y-only little endian*/ + /* color index */ #define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') /* [7:0] C */