Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp780990imw; Fri, 8 Jul 2022 11:34:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1smuXicdyHn7/3175CTKNO3PQpbCVY447+WDvXHMyyYqDcdcOPoSezgsZwRmKOZeaa9XDEt X-Received: by 2002:a63:8641:0:b0:413:8c07:4ebf with SMTP id x62-20020a638641000000b004138c074ebfmr4394490pgd.604.1657305248859; Fri, 08 Jul 2022 11:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657305248; cv=none; d=google.com; s=arc-20160816; b=VSRB2iViUjpR/1kg+4Q4E75TGWmjdhuKJbW97+hObUat2AKHoBFOgbrPOEGHL5Wtbr 2QCMA+Q0Nwo0+EzMg9H0MlxpqFdntFeHvXHFdEUzxJQMDw+fb0Eu/SvJO/XjQQH81TBy SgSpk3t6RvcOqYuCgv0Df09N/dAMm/hsXAfbNuzIKTH9qhxa643v31i1814l1AJOwipp OXvNmisv0eCkQ9WzfDAGcQfL58UWp/1LLp+UmPCBrvGTDjYhijvyc5oIdXhyMPcQhkhb wNrQW4j2YbKul4E2M321kp3MYyk9hjN0yocMTDWxeQ5xnZrhXzV2BOcNxyIAZn7WIJG1 Hogw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gEx1WfzWcBOW5rzeDTMZU1rOxg/kLxQDi+MHHJcpdsg=; b=S6MpdoSD9qOFRKHy3JxI77S+QsSAjWZhesOfndIpzOtaomkmXxpIVsjAAEQMa6Skq5 HgfEN5zawTdl9zZJTQ86aBmyiImkUyF0OuHwYDoNtjw+SZiofiXh0dMFSlQ2ytIPpZQp 5rsma+XAPoYoD5+x+JfNF+4q1Orq7P4ZxFl5gp7zjN9luvvM7nApeOxA4J4WxwPcELtG CKymaXxzCTwddBhY8XuHzkm9MkSVQBxEV5knyGHBrSlfDcLkJS8IbhwRzKEmCGutv3IW Ok4WhlSv7yhLMrMkV2j6iDA+XVlgvDE6c70MNUAhgm5jPwRU33Tem5jEJOnLYbtd/M68 sMGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a170903240b00b0016be0dfebacsi19793938plo.446.2022.07.08.11.33.56; Fri, 08 Jul 2022 11:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238995AbiGHSVo (ORCPT + 99 others); Fri, 8 Jul 2022 14:21:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239140AbiGHSVQ (ORCPT ); Fri, 8 Jul 2022 14:21:16 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4F9883F09 for ; Fri, 8 Jul 2022 11:21:11 -0700 (PDT) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id siM8270024C55Sk01iM83J; Fri, 08 Jul 2022 20:21:09 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1o9sbD-002fGp-Dc; Fri, 08 Jul 2022 20:21:07 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1o9sbC-00BtJv-IB; Fri, 08 Jul 2022 20:21:06 +0200 From: Geert Uytterhoeven To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Javier Martinez Canillas Subject: [PATCH v3 08/10] drm/fourcc: Clarify the meaning of single-channel "red" Date: Fri, 8 Jul 2022 20:20:53 +0200 Message-Id: <31d1792f26707a7270347e9916b4103470d2b192.1657294931.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Traditionally, the first channel has been called the "red" channel, but the fourcc values for single-channel "red" formats can also be used for other single-channel formats with a direct relationship between channel value and brightness, like grayscale. Signed-off-by: Geert Uytterhoeven Reviewed-by: Javier Martinez Canillas --- v3: - Add Reviewed-by, - Replace light-on-dark by direct relationship between channel value and brightness, v2: - New. --- include/uapi/drm/drm_fourcc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index e18de6f258302673..dff5072fccaaf65c 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -104,16 +104,16 @@ extern "C" { #define DRM_FORMAT_C4 fourcc_code('C', '4', ' ', ' ') /* [7:0] C0:C1 4:4 two pixels/byte */ #define DRM_FORMAT_C8 fourcc_code('C', '8', ' ', ' ') /* [7:0] C */ -/* 8 bpp Red */ +/* 8 bpp Red (direct relationship between channel value and brightness) */ #define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */ -/* 10 bpp Red */ +/* 10 bpp Red (direct relationship between channel value and brightness) */ #define DRM_FORMAT_R10 fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */ -/* 12 bpp Red */ +/* 12 bpp Red (direct relationship between channel value and brightness) */ #define DRM_FORMAT_R12 fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */ -/* 16 bpp Red */ +/* 16 bpp Red (direct relationship between channel value and brightness) */ #define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */ /* 16 bpp RG */ -- 2.25.1