Lines Matching refs:cropcap
169 struct v4l2_cropcap cropcap;
172 memset (&cropcap, 0, sizeof (cropcap));
173 cropcap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
175 if (-1 == ioctl (fd, VIDIOC_CROPCAP, &cropcap)) {
182 crop.c = cropcap.defrect;
198 struct v4l2_cropcap cropcap;
209 format.fmt.pix.width = cropcap.defrect.width >> 1;
210 format.fmt.pix.height = cropcap.defrect.height >> 1;
228 struct v4l2_cropcap cropcap;
231 memset (&cropcap, 0, sizeof (cropcap));
232 cropcap.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
234 if (-1 == ioctl (fd, VIDIOC_CROPCAP;, &cropcap)) {
242 crop.c = cropcap.defrect;
267 struct v4l2_cropcap cropcap;
274 memset (&cropcap, 0, sizeof (cropcap));
275 cropcap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
277 if (-1 == ioctl (fd, VIDIOC_CROPCAP, &cropcap)) {
292 crop.c = cropcap.defrect;
308 aspect = cropcap.pixelaspect.numerator /
309 (double) cropcap.pixelaspect.denominator;