Skip to content

Commit 5bd02c6

Browse files
6by9naushir
authored andcommitted
libpisp: helpers: Unify on the multiplanar YUV V4L2 formats
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 13f63de commit 5bd02c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/helpers/v4l2_device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ static FormatInfo get_v4l2_format(const std::string &format)
3737
{ "RGB888", { V4L2_PIX_FMT_RGB24, 1 } },
3838
{ "RGBX8888", { V4L2_PIX_FMT_RGBX32, 1 } },
3939
{ "XRGB8888", { V4L2_PIX_FMT_XRGB32, 1 } },
40-
{ "YUV420P", { V4L2_PIX_FMT_YUV420, 1 } },
41-
{ "YUV422P", { V4L2_PIX_FMT_YUV422P, 1 } },
40+
{ "YUV420P", { V4L2_PIX_FMT_YUV420M, 3 } },
41+
{ "YUV422P", { V4L2_PIX_FMT_YUV422M, 3 } },
4242
{ "YUV444P", { V4L2_PIX_FMT_YUV444M, 3 } },
4343
{ "YUYV", { V4L2_PIX_FMT_YUYV, 1 } },
4444
{ "UYVY", { V4L2_PIX_FMT_UYVY, 1 } },

0 commit comments

Comments
 (0)