summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-05 05:28:56 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-27 01:34:52 +0300
commit26f0ce03b9dc7477d40185eaf3a173d8b2ed916c (patch)
tree4fef8f002a25d5d56f4cd308bf445039cf0591a2
parent40eb2309997806f8671d820af580073e4aaf20da (diff)
include: drm_fourcc: Add R10 and R12 FourCC
Add FourCCs for 10- and 12-bit red format with padding to 16 bits. This is a temporary addition until the formats gets merged in the upstream kernel. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--include/linux/drm_fourcc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h
index 05d697ff..28ea3a16 100644
--- a/include/linux/drm_fourcc.h
+++ b/include/linux/drm_fourcc.h
@@ -104,6 +104,12 @@ extern "C" {
/* 8 bpp Red */
#define DRM_FORMAT_R8 fourcc_code('R', '8', ' ', ' ') /* [7:0] R */
+/* 10 bpp Red */
+#define DRM_FORMAT_R10 fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */
+
+/* 12 bpp Red */
+#define DRM_FORMAT_R12 fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */
+
/* 16 bpp Red */
#define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */