Add GREY pixelformat (#171)

Fixes #170

Monochrome cameras send only Y component of YUV image
This commit is contained in:
gudvinr
2025-03-08 21:01:49 +03:00
committed by GitHub
parent 3a06a484ce
commit b380beba6d
3 changed files with 35 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ uint us_frame_get_padding(const us_frame_s *frame) {
switch (frame->format) {
case V4L2_PIX_FMT_YUV420:
case V4L2_PIX_FMT_YVU420:
case V4L2_PIX_FMT_GREY:
bytes_per_pixel = 1;
break;