Skip to content

Commit f372b70

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 64ac57a commit f372b70

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
@@ -1418,6 +1418,39 @@ static inline unsigned int video_bits_per_pixel(uint32_t pixfmt)
14181418
}
14191419
}
14201420

1421+
/**
1422+
* @}
1423+
*/
1424+
1425+
/**
1426+
* @name MIPI CSI2 Data-types
1427+
*
1428+
* @{
1429+
*/
1430+
#define VIDEO_MIPI_CSI2_DT_NULL 0x10
1431+
#define VIDEO_MIPI_CSI2_DT_BLANKING 0x11
1432+
#define VIDEO_MIPI_CSI2_DT_EMBEDDED_8 0x12
1433+
#define VIDEO_MIPI_CSI2_DT_YUV420_8 0x18
1434+
#define VIDEO_MIPI_CSI2_DT_YUV420_10 0x19
1435+
#define VIDEO_MIPI_CSI2_DT_YUV420_CSPS_8 0x1c
1436+
#define VIDEO_MIPI_CSI2_DT_YUV420_CSPS_10 0x1d
1437+
#define VIDEO_MIPI_CSI2_DT_YUV422_8 0x1e
1438+
#define VIDEO_MIPI_CSI2_DT_YUV422_10 0x1f
1439+
#define VIDEO_MIPI_CSI2_DT_RGB444 0x20
1440+
#define VIDEO_MIPI_CSI2_DT_RGB555 0x21
1441+
#define VIDEO_MIPI_CSI2_DT_RGB565 0x22
1442+
#define VIDEO_MIPI_CSI2_DT_RGB666 0x23
1443+
#define VIDEO_MIPI_CSI2_DT_RGB888 0x24
1444+
#define VIDEO_MIPI_CSI2_DT_RAW6 0x28
1445+
#define VIDEO_MIPI_CSI2_DT_RAW7 0x29
1446+
#define VIDEO_MIPI_CSI2_DT_RAW8 0x2a
1447+
#define VIDEO_MIPI_CSI2_DT_RAW10 0x2b
1448+
#define VIDEO_MIPI_CSI2_DT_RAW12 0x2c
1449+
#define VIDEO_MIPI_CSI2_DT_RAW14 0x2d
1450+
1451+
/* User-defined Data-Type range from 0x30 to 0x37 */
1452+
#define VIDEO_MIPI_CSI2_DT_USER(n) (0x30 + (n))
1453+
14211454
/**
14221455
* @}
14231456
*/

0 commit comments

Comments
 (0)