OSDN Git Service

V4L2Camera: Check that the camera accept the frame size as well not only the pixel...
authorAlberto Panizzo <alberto@amarulasolutions.com>
Sat, 6 Jul 2013 16:27:43 +0000 (18:27 +0200)
committerAlberto Panizzo <alberto@amarulasolutions.com>
Sat, 6 Jul 2013 16:36:49 +0000 (18:36 +0200)
commitf4b06ac0af494206743189ebad570784cd7797b5
tree6cb33fd21a55b093a6ab457dd172c62499c893ae
parentbbbfb37e9ab96a03d91d439a9a5aeae7251ee1e6
V4L2Camera: Check that the camera accept the frame size as well not only the pixel format

USB UVC cameras may support different frame size sets for
different pixel formats. So do not limitate to check that
the current format is supported and then set the frame size
but check that this frame size _with_ this pixel format works.

Real case is a camera that accepts only QCIF in YUYV but can do
VGA in MJPEG

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
V4L2Camera.cpp