mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-13 19:13:41 +00:00
Add GREY pixelformat (#171)
Fixes #170 Monochrome cameras send only Y component of YUV image
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user