[libcamera-devel,03/10] include: drm_fourcc: Add Motion-JPEG fourcc code

Message ID 20191027234312.35284-4-jacopo@jmondi.org
State Superseded
Headers show
Series
  • libcamera: Use DRM_FORMAT_* fourcc codes
Related show

Commit Message

Jacopo Mondi Oct. 27, 2019, 11:43 p.m. UTC
Add A fourcc code for Motion-JPEG compressed format. This is a temporary
addition until the format gets merged in the upstream kernel.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
 include/linux/drm_fourcc.h | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h
index 3feeaa3f987a..4bb1bfe93d5f 100644
--- a/include/linux/drm_fourcc.h
+++ b/include/linux/drm_fourcc.h
@@ -285,6 +285,8 @@  extern "C" {
 #define DRM_FORMAT_YUV444	fourcc_code('Y', 'U', '2', '4') /* non-subsampled Cb (1) and Cr (2) planes */
 #define DRM_FORMAT_YVU444	fourcc_code('Y', 'V', '2', '4') /* non-subsampled Cr (1) and Cb (2) planes */
 
+/* Compressed formats */
+#define DRM_FORMAT_MJPEG	fourcc_code('M', 'J', 'P', 'G') /* Motion-JPEG */
 
 /*
  * Format Modifiers: