Issue #252: YVYU support

This commit is contained in:
Maxim Devaev
2024-01-11 22:46:56 +02:00
parent c4cb8288c7
commit 4e8acf371f
5 changed files with 39 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ unsigned us_frame_get_padding(const us_frame_s *frame) {
unsigned bytes_per_pixel = 0;
switch (frame->format) {
case V4L2_PIX_FMT_YUYV:
case V4L2_PIX_FMT_YVYU:
case V4L2_PIX_FMT_UYVY:
case V4L2_PIX_FMT_RGB565: bytes_per_pixel = 2; break;
case V4L2_PIX_FMT_BGR24: