Add the 2 missing YUV modes
This commit is contained in:
@@ -57,10 +57,14 @@ executable('megapixels-getframe', 'util/getframe.c',
|
|||||||
include_directories: inc,
|
include_directories: inc,
|
||||||
install: true,
|
install: true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cc = meson.get_compiler('c')
|
||||||
|
m_dep = cc.find_library('m', required : false)
|
||||||
executable('megapixels-sensorprofile', 'util/sensorprofile.c',
|
executable('megapixels-sensorprofile', 'util/sensorprofile.c',
|
||||||
link_with: libmegapixels,
|
link_with: libmegapixels,
|
||||||
include_directories: inc,
|
include_directories: inc,
|
||||||
install: true,
|
install: true,
|
||||||
|
dependencies: m_dep
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
16
src/mode.c
16
src/mode.c
@@ -161,6 +161,22 @@ static struct libmegapixels_modename mode_lut[] = {
|
|||||||
.bpp = 16,
|
.bpp = 16,
|
||||||
.cfa = LIBMEGAPIXELS_CFA_NONE,
|
.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
|
int
|
||||||
|
Reference in New Issue
Block a user