[libcamera-devel] [PATCH 02/11] include: drm_fourcc: Add Y10 format

Daniel Scally dan.scally at ideasonboard.com
Sun Mar 19 00:40:05 CET 2023


Add a FourCC entry for the V4L2_PIX_FMT_Y10 image data format.

Signed-off-by: Daniel Scally <dan.scally at ideasonboard.com>
---
 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 */
 
-- 
2.34.1



More information about the libcamera-devel mailing list