use V4L2_PIX_FMT_MJPEG instead of V4L2_PIX_FMT_JPEG
This commit is contained in:
@ -89,7 +89,7 @@ Webcam::Webcam(const string& device, int width, int height, bool mjpeg) :
|
|||||||
device(device),
|
device(device),
|
||||||
xres(width),
|
xres(width),
|
||||||
yres(height),
|
yres(height),
|
||||||
format(mjpeg ? V4L2_PIX_FMT_JPEG : V4L2_PIX_FMT_YUYV)
|
format(mjpeg ? V4L2_PIX_FMT_MJPEG : V4L2_PIX_FMT_YUYV)
|
||||||
{
|
{
|
||||||
open_device();
|
open_device();
|
||||||
init_device();
|
init_device();
|
||||||
|
Reference in New Issue
Block a user