Skip to content

Commit 97c96de

Browse files
author
Alain Volmat
committed
video: addition of CSI2 standard data-type defines
Add standard data-type macros within the video.h in order to avoid having to redefine them all in each and every CSI based driver. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent 6d80f29 commit 97c96de

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

include/zephyr/drivers/video.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,29 @@ static inline unsigned int video_bits_per_pixel(uint32_t pixfmt)
14331433
}
14341434
}
14351435

1436+
/**
1437+
* @}
1438+
*/
1439+
1440+
/**
1441+
* @name MIPI CSI2 Data-types
1442+
*
1443+
* @{
1444+
*/
1445+
#define VIDEO_MIPI_CSI2_DT_YUV422_8 0x1e
1446+
#define VIDEO_MIPI_CSI2_DT_YUV422_10 0x1f
1447+
#define VIDEO_MIPI_CSI2_DT_RGB444 0x20
1448+
#define VIDEO_MIPI_CSI2_DT_RGB555 0x21
1449+
#define VIDEO_MIPI_CSI2_DT_RGB565 0x22
1450+
#define VIDEO_MIPI_CSI2_DT_RGB666 0x23
1451+
#define VIDEO_MIPI_CSI2_DT_RGB888 0x24
1452+
#define VIDEO_MIPI_CSI2_DT_RAW6 0x28
1453+
#define VIDEO_MIPI_CSI2_DT_RAW7 0x29
1454+
#define VIDEO_MIPI_CSI2_DT_RAW8 0x2a
1455+
#define VIDEO_MIPI_CSI2_DT_RAW10 0x2b
1456+
#define VIDEO_MIPI_CSI2_DT_RAW12 0x2c
1457+
#define VIDEO_MIPI_CSI2_DT_RAW14 0x2d
1458+
14361459
/**
14371460
* @}
14381461
*/

0 commit comments

Comments
 (0)