Lines Matching defs:crop

31 	struct v4l2_crop crop;
33 memset(&crop, 0xff, sizeof(crop));
34 crop.type = type;
35 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop);
61 struct v4l2_crop crop;
63 memset(&crop, 0xff, sizeof(crop));
64 crop.type = type;
65 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop);
95 struct v4l2_crop crop;
97 memset(&crop, 0, sizeof(crop));
98 crop.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
100 ret_get1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop);
106 memset(&crop, 0, sizeof(crop));
107 crop.type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
109 ret_get2 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop);
115 memset(&crop, 0, sizeof(crop));
116 crop.type = V4L2_BUF_TYPE_VIDEO_OVERLAY;
118 ret_get3 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop);
155 struct v4l2_crop crop;
188 memset(&crop, 0xff, sizeof(crop));
189 crop.type = type;
190 crop.c = cropcap.bounds;
191 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);
194 "crop = { .type=%i, .c={ .left=%i, .top=%i, .width=%i, .height=%i }}\n",
197 crop.type,
198 crop.c.left, crop.c.top, crop.c.width, crop.c.height);
256 memset(&crop, 0xff, sizeof(crop));
257 crop.type = type;
258 crop.c = cropcap.defrect;
259 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);
262 "crop = { .type=%i, .c={ .left=%i, .top=%i, .width=%i, .height=%i }}\n",
265 crop.type,
266 crop.c.left, crop.c.top, crop.c.width, crop.c.height);
327 /* top + +-------- crop.c -------------+ ^ */
342 memset(&crop, 0xff, sizeof(crop));
343 crop.type = type;
344 crop.c.left = cropcap.bounds.left;
345 crop.c.top = cropcap.bounds.top;
346 crop.c.width = cropcap.bounds.width - i;
347 crop.c.height = cropcap.bounds.height;
348 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);
351 "crop = { .type=%i, .c={ .left=%i, .top=%i, .width=%i, .height=%i }}\n",
354 crop.type,
355 crop.c.left, crop.c.top, crop.c.width, crop.c.height);
402 /* top + +---------- crop.c -----------+ ^ */
417 memset(&crop, 0xff, sizeof(crop));
418 crop.type = type;
419 crop.c.left = cropcap.bounds.left;
420 crop.c.top = cropcap.bounds.top;
421 crop.c.width = cropcap.bounds.width;
422 crop.c.height = cropcap.bounds.height - i;
423 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);
426 "crop = { .type=%i, .c={ .left=%i, .top=%i, .width=%i, .height=%i }}\n",
429 crop.type,
430 crop.c.left, crop.c.top, crop.c.width, crop.c.height);
477 /* top + +---------- crop.c -----------+ ^ */
492 memset(&crop, 0xff, sizeof(crop));
493 crop.type = type;
494 crop.c.left = cropcap.bounds.left + i;
495 crop.c.top = cropcap.bounds.top;
496 crop.c.width = cropcap.bounds.width - i;
497 crop.c.height = cropcap.bounds.height;
498 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);
501 "crop = { .type=%i, .c={ .left=%i, .top=%i, .width=%i, .height=%i }}\n",
504 crop.type,
505 crop.c.left, crop.c.top, crop.c.width, crop.c.height);
552 /* top + +---------- crop.c -----------+ ^ */
567 memset(&crop, 0xff, sizeof(crop));
568 crop.type = type;
569 crop.c.left = cropcap.bounds.left;
570 crop.c.top = cropcap.bounds.top + i;
571 crop.c.width = cropcap.bounds.width;
572 crop.c.height = cropcap.bounds.height - i;
573 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);
576 "crop = { .type=%i, .c={ .left=%i, .top=%i, .width=%i, .height=%i }}\n",
579 crop.type,
580 crop.c.left, crop.c.top, crop.c.width, crop.c.height);
649 struct v4l2_crop crop;
669 memset(&crop, 0xff, sizeof(crop));
670 crop.type = type;
671 crop.c = cropcap.bounds;
672 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);
675 "crop = { .type=%i, .c={ .left=%i, .top=%i, .width=%i, .height=%i }}\n",
678 crop.type,
679 crop.c.left, crop.c.top, crop.c.width, crop.c.height);
722 struct v4l2_crop crop;
754 memset(&crop, 0, sizeof(crop));
755 crop.type = type;
756 crop.c = cropcap.bounds;
757 ret_set = ioctl(get_video_fd(), VIDIOC_S_CROP, &crop);