[WIP,RFC,13/26] include: uapi: drm_fourcc: Add 14-bit R format
diff mbox series

Message ID 20261023-b4-raw-model-v1-13-eadb9948901b@ideasonboard.com
State New
Headers show
Series
  • Support the new common raw sensor model
Related show

Commit Message

Jai Luthra Oct. 23, 2026, 10:58 a.m. UTC
Add a fourcc code for 14-bit RAW data. Also add it to formats.yaml.

Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
---
 include/linux/drm_fourcc.h | 3 +++
 src/libcamera/formats.yaml | 2 ++
 2 files changed, 5 insertions(+)

Patch
diff mbox series

diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h
index 8e2a6abae62f..c1703fc03cbd 100644
--- a/include/linux/drm_fourcc.h
+++ b/include/linux/drm_fourcc.h
@@ -128,6 +128,9 @@  extern "C" {
 /* 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 */
 
+/* 14 bpp Red (direct relationship between channel value and brightness) */
+#define DRM_FORMAT_R14		fourcc_code('R', '1', '4', ' ') /* [15:0] x:R 2:14 little endian */
+
 /* 16 bpp Red (direct relationship between channel value and brightness) */
 #define DRM_FORMAT_R16		fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */
 
diff --git a/src/libcamera/formats.yaml b/src/libcamera/formats.yaml
index 2d54d391ca01..d256fd2c1bfe 100644
--- a/src/libcamera/formats.yaml
+++ b/src/libcamera/formats.yaml
@@ -11,6 +11,8 @@  formats:
       fourcc: DRM_FORMAT_R10
   - R12:
       fourcc: DRM_FORMAT_R12
+  - R14:
+      fourcc: DRM_FORMAT_R14
   - R16:
       fourcc: DRM_FORMAT_R16