@@ -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 */
@@ -11,6 +11,8 @@ formats:
fourcc: DRM_FORMAT_R10
- R12:
fourcc: DRM_FORMAT_R12
+ - R14:
+ fourcc: DRM_FORMAT_R14
- R16:
fourcc: DRM_FORMAT_R16
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(+)