Skip to content

Commit a1f7efc

Browse files
committed
drivers: video: fix the RGB565X format's byte per pixel
THe RGB565X (big-endian) did not have an entry for the function video_byte_per_pixel(). Fix it by adding the missing entry. Signed-off-by: Josuah Demangeon <[email protected]>
1 parent 1de34ea commit a1f7efc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/zephyr/drivers/video.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,7 @@ static inline unsigned int video_bits_per_pixel(uint32_t pixfmt)
14111411
case VIDEO_PIX_FMT_Y14P:
14121412
return 14;
14131413
case VIDEO_PIX_FMT_RGB565:
1414+
case VIDEO_PIX_FMT_RGB565X:
14141415
case VIDEO_PIX_FMT_YUYV:
14151416
case VIDEO_PIX_FMT_YVYU:
14161417
case VIDEO_PIX_FMT_UYVY:

0 commit comments

Comments
 (0)