Skip to content

Commit 8339840

Browse files
committed
drivers: video: introduce the RGB24 format
This introduces the RGB 24-bit format as defined in the Linux header <include/uapi/linux/videodev2.h>, including the bits-per-pixel size definition. Signed-off-by: Josuah Demangeon <me@josuah.net>
1 parent 1dc47eb commit 8339840

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/zephyr/drivers/video.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,15 @@ void video_closest_frmival(const struct device *dev, enum video_endpoint_id ep,
12921292
*/
12931293
#define VIDEO_PIX_FMT_XRGB32 VIDEO_FOURCC('B', 'X', '2', '4')
12941294

1295+
/**
1296+
* Red, Green, Blue, one byte per channel, 24-bits in total.
1297+
*
1298+
* @verbatim
1299+
* | Rrrrrrrr Gggggggg Bbbbbbbb | ...
1300+
* @endverbatim
1301+
*/
1302+
#define VIDEO_PIX_FMT_RGB24 VIDEO_FOURCC('R', 'G', 'B', '3')
1303+
12951304
/**
12961305
* @}
12971306
*/

0 commit comments

Comments
 (0)