Skip to content

Commit 6bda32e

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 6bda32e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

include/zephyr/drivers/video.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,39 @@ 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_NULL 0x10
1446+
#define VIDEO_MIPI_CSI2_DT_BLANKING 0x11
1447+
#define VIDEO_MIPI_CSI2_DT_EMBEDDED_8 0x12
1448+
#define VIDEO_MIPI_CSI2_DT_YUV420_8 0x18
1449+
#define VIDEO_MIPI_CSI2_DT_YUV420_10 0x19
1450+
#define VIDEO_MIPI_CSI2_DT_YUV420_CSPS_8 0x1c
1451+
#define VIDEO_MIPI_CSI2_DT_YUV420_CSPS_10 0x1d
1452+
#define VIDEO_MIPI_CSI2_DT_YUV422_8 0x1e
1453+
#define VIDEO_MIPI_CSI2_DT_YUV422_10 0x1f
1454+
#define VIDEO_MIPI_CSI2_DT_RGB444 0x20
1455+
#define VIDEO_MIPI_CSI2_DT_RGB555 0x21
1456+
#define VIDEO_MIPI_CSI2_DT_RGB565 0x22
1457+
#define VIDEO_MIPI_CSI2_DT_RGB666 0x23
1458+
#define VIDEO_MIPI_CSI2_DT_RGB888 0x24
1459+
#define VIDEO_MIPI_CSI2_DT_RAW6 0x28
1460+
#define VIDEO_MIPI_CSI2_DT_RAW7 0x29
1461+
#define VIDEO_MIPI_CSI2_DT_RAW8 0x2a
1462+
#define VIDEO_MIPI_CSI2_DT_RAW10 0x2b
1463+
#define VIDEO_MIPI_CSI2_DT_RAW12 0x2c
1464+
#define VIDEO_MIPI_CSI2_DT_RAW14 0x2d
1465+
1466+
/* User-defined Data-Type range from 0x30 to 0x37 */
1467+
#define VIDEO_MIPI_CSI2_DT_USER(n) (0x30 + (n))
1468+
14361469
/**
14371470
* @}
14381471
*/

0 commit comments

Comments
 (0)