diff --git a/meson.build b/meson.build index f3bff53..7aac3e1 100644 --- a/meson.build +++ b/meson.build @@ -57,10 +57,14 @@ executable('megapixels-getframe', 'util/getframe.c', include_directories: inc, install: true, ) + +cc = meson.get_compiler('c') +m_dep = cc.find_library('m', required : false) executable('megapixels-sensorprofile', 'util/sensorprofile.c', link_with: libmegapixels, include_directories: inc, install: true, + dependencies: m_dep ) diff --git a/src/mode.c b/src/mode.c index 1b450a9..01fc240 100644 --- a/src/mode.c +++ b/src/mode.c @@ -161,6 +161,22 @@ static struct libmegapixels_modename mode_lut[] = { .bpp = 16, .cfa = LIBMEGAPIXELS_CFA_NONE, }, + { + .name = "VYUY", + .v4l_pixel_format = V4L2_PIX_FMT_VYUY, + .media_bus_format = MEDIA_BUS_FMT_VYUY8_2X8, + .bpc = 8, + .bpp = 16, + .cfa = LIBMEGAPIXELS_CFA_NONE, + }, + { + .name = "YVYU", + .v4l_pixel_format = V4L2_PIX_FMT_YVYU, + .media_bus_format = MEDIA_BUS_FMT_YVYU8_2X8, + .bpc = 8, + .bpp = 16, + .cfa = LIBMEGAPIXELS_CFA_NONE, + }, }; int