[{"id":20550,"web_url":"https://patchwork.libcamera.org/comment/20550/","msgid":"<163533055010.1184428.1791683142195317936@Monstersaurus>","date":"2021-10-27T10:29:10","subject":"Re: [libcamera-devel] [PATCH v3 1/9] include: drm_fourcc: Add R10\n\tand R12 FourCC","submitter":{"id":4,"url":"https://patchwork.libcamera.org/api/people/4/","name":"Kieran Bingham","email":"kieran.bingham@ideasonboard.com"},"content":"Quoting Naushir Patuck (2021-10-27 10:27:55)\n> From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n> \n> Add FourCCs for 10- and 12-bit red format with padding to 16 bits. This\n> is a temporary addition until the formats gets merged in the upstream\n> kernel.\n> \n> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>\n\nThis certainly needs a corresponding patch posted upstream, but given\nthe names on these types are quite straightforwards, and unlikely to be\nchanged, I think it's fine to get this in early.\n\nAcked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\n> ---\n>  include/linux/drm_fourcc.h | 6 ++++++\n>  1 file changed, 6 insertions(+)\n> \n> diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h\n> index 05d697ff30ce..28ea3a167ecb 100644\n> --- a/include/linux/drm_fourcc.h\n> +++ b/include/linux/drm_fourcc.h\n> @@ -104,6 +104,12 @@ extern \"C\" {\n>  /* 8 bpp Red */\n>  #define DRM_FORMAT_R8          fourcc_code('R', '8', ' ', ' ') /* [7:0] R */\n>  \n> +/* 10 bpp Red */\n> +#define DRM_FORMAT_R10         fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */\n> +\n> +/* 12 bpp Red */\n> +#define DRM_FORMAT_R12         fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */\n> +\n>  /* 16 bpp Red */\n>  #define DRM_FORMAT_R16         fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */\n>  \n> -- \n> 2.25.1\n>","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 7DCBEBDB1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 27 Oct 2021 10:29:14 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id F10FF6487F;\n\tWed, 27 Oct 2021 12:29:13 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 66A9C60123\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Oct 2021 12:29:12 +0200 (CEST)","from pendragon.ideasonboard.com\n\t(cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 0463E596;\n\tWed, 27 Oct 2021 12:29:11 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"q6xJLZQZ\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1635330552;\n\tbh=Ctzwg9VsrdJXQz5FWysiSbUaHoqhVDgCDUuNOuWhIsM=;\n\th=In-Reply-To:References:Subject:From:To:Date:From;\n\tb=q6xJLZQZnomxHZzrqM9eTRuNVnx9nbDinhd4vHiBlP+A7hDOgUFhGZB3lvjYoRsFG\n\tA5ygFJ8kf+RNhkovhPnKj5bnLr3jEpr7Yw0f9RAhWAajHPVMvtAvFRCKJEJXpHFusE\n\tVV7RpQpX52tbT0wKgoA9TOLquzgKLlHOG0qZryMg=","Content-Type":"text/plain; charset=\"utf-8\"","MIME-Version":"1.0","Content-Transfer-Encoding":"quoted-printable","In-Reply-To":"<20211027092803.3671096-2-naush@raspberrypi.com>","References":"<20211027092803.3671096-1-naush@raspberrypi.com>\n\t<20211027092803.3671096-2-naush@raspberrypi.com>","From":"Kieran Bingham <kieran.bingham@ideasonboard.com>","To":"Naushir Patuck <naush@raspberrypi.com>,\n\tlibcamera-devel@lists.libcamera.org","Date":"Wed, 27 Oct 2021 11:29:10 +0100","Message-ID":"<163533055010.1184428.1791683142195317936@Monstersaurus>","User-Agent":"alot/0.9.1","Subject":"Re: [libcamera-devel] [PATCH v3 1/9] include: drm_fourcc: Add R10\n\tand R12 FourCC","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]