Add the 2 missing YUV modes

This commit is contained in:
Martijn Braam
2024-02-14 00:10:50 +01:00
parent f6686d7a5a
commit 72aa1be491
2 changed files with 20 additions and 0 deletions

View File

@@ -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
)

View File

@@ -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