ADLINK Technology RTV Series User Manual page 168

Multi-channel real-time video frame grabber series
Table of Contents

Advertisement

}
/* Change to the default channel */
int channel = 0;
if (-1 == ioctl (fd, VIDIOC_S_INPUT,
}
memset (&cropcap, 0, sizeof (cropcap));
cropcap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
if (0 == ioctl (fd, VIDIOC_CROPCAP,
&cropcap)) {
} else {
}
memset (&fmt, 0, sizeof (fmt));
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
fmt.fmt.pix.width = 640;
fmt.fmt.pix.height = 240;
fmt.fmt.pix.pixelformat =
fmt.fmt.pix.field = V4L2_FIELD_ALTERNATE;//
if (-1 == ioctl (fd, VIDIOC_S_FMT, &fmt))
}
158
exit (EXIT_FAILURE);
&channel)) {
exit (EXIT_FAILURE);
crop.type =
V4L2_BUF_TYPE_VIDEO_CAPTURE;
crop.c = cropcap.defrect; /* reset to
default */
if (-1 == ioctl (fd, VIDIOC_S_CROP,
&crop)) {
switch (errno) {
case EINVAL:
/* Cropping not supported */
break;
default:
/* Errors ignored. */
break;
}
}
/* Errors ignored. */
V4L2_PIX_FMT_BGR24;
per field (odd and even)
exit (EXIT_FAILURE);
Programming Guide

Advertisement

Table of Contents
loading

Table of Contents