#endif
/* Defaults - If your board can do better, set it here. Set for the most common type inputs. */
-#define DEFAULT_V4L_WIDTH 640
-#define DEFAULT_V4L_HEIGHT 480
+#define DEFAULT_V4L_WIDTH 320
+#define DEFAULT_V4L_HEIGHT 240
#define CHANNEL_NUMBER 1
#define MAX_CAMERAS 8
if (autosetup_capture_mode_v4l2(capture) == -1)
return -1;
- icvSetVideoSize(capture, DEFAULT_V4L_WIDTH, DEFAULT_V4L_HEIGHT);
+ /* default capture size is already set */
+// icvSetVideoSize(capture, DEFAULT_V4L_WIDTH, DEFAULT_V4L_HEIGHT);
unsigned int min;
/* Get window info again, to get the real value */
if (-1 == xioctl (capture->deviceHandle, VIDIOC_G_FMT, &capture->form))
{
- fprintf(stderr, "HIGHGUI ERROR: V4L/V4L2: Could not obtain specifics of capture window.\n\n");
+ fprintf(stderr, "HIGHGUI WARNING: V4L/V4L2: Could not obtain specifics of capture window.\n\n");
- icvCloseCAM_V4L(capture);
+// icvCloseCAM_V4L(capture);
return 0;
}