Skip to content

Commit a459f1d

Browse files
Alain Volmatkartben
authored andcommitted
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 450345a commit a459f1d

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
@@ -1456,6 +1456,39 @@ static inline unsigned int video_bits_per_pixel(uint32_t pixfmt)
14561456
}
14571457
}
14581458

1459+
/**
1460+
* @}
1461+
*/
1462+
1463+
/**
1464+
* @name MIPI CSI2 Data-types
1465+
*
1466+
* @{
1467+
*/
1468+
#define VIDEO_MIPI_CSI2_DT_NULL 0x10
1469+
#define VIDEO_MIPI_CSI2_DT_BLANKING 0x11
1470+
#define VIDEO_MIPI_CSI2_DT_EMBEDDED_8 0x12
1471+
#define VIDEO_MIPI_CSI2_DT_YUV420_8 0x18
1472+
#define VIDEO_MIPI_CSI2_DT_YUV420_10 0x19
1473+
#define VIDEO_MIPI_CSI2_DT_YUV420_CSPS_8 0x1c
1474+
#define VIDEO_MIPI_CSI2_DT_YUV420_CSPS_10 0x1d
1475+
#define VIDEO_MIPI_CSI2_DT_YUV422_8 0x1e
1476+
#define VIDEO_MIPI_CSI2_DT_YUV422_10 0x1f
1477+
#define VIDEO_MIPI_CSI2_DT_RGB444 0x20
1478+
#define VIDEO_MIPI_CSI2_DT_RGB555 0x21
1479+
#define VIDEO_MIPI_CSI2_DT_RGB565 0x22
1480+
#define VIDEO_MIPI_CSI2_DT_RGB666 0x23
1481+
#define VIDEO_MIPI_CSI2_DT_RGB888 0x24
1482+
#define VIDEO_MIPI_CSI2_DT_RAW6 0x28
1483+
#define VIDEO_MIPI_CSI2_DT_RAW7 0x29
1484+
#define VIDEO_MIPI_CSI2_DT_RAW8 0x2a
1485+
#define VIDEO_MIPI_CSI2_DT_RAW10 0x2b
1486+
#define VIDEO_MIPI_CSI2_DT_RAW12 0x2c
1487+
#define VIDEO_MIPI_CSI2_DT_RAW14 0x2d
1488+
1489+
/* User-defined Data-Type range from 0x30 to 0x37 */
1490+
#define VIDEO_MIPI_CSI2_DT_USER(n) (0x30 + (n))
1491+
14591492
/**
14601493
* @}
14611494
*/

0 commit comments

Comments
 (0)