Lines Matching defs:crop
2865 static int zoran_g_crop(struct file *file, void *__fh, struct v4l2_crop *crop)
2869 int type = crop->type, res = 0;
2871 memset(crop, 0, sizeof(*crop));
2872 crop->type = type;
2876 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
2877 (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
2887 crop->c.top = fh->jpg_settings.img_y;
2888 crop->c.left = fh->jpg_settings.img_x;
2889 crop->c.width = fh->jpg_settings.img_width;
2890 crop->c.height = fh->jpg_settings.img_height;
2898 static int zoran_s_crop(struct file *file, void *__fh, struct v4l2_crop *crop)
2917 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
2918 (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
2928 settings.img_x = crop->c.left;
2929 settings.img_y = crop->c.top;
2930 settings.img_width = crop->c.width;
2931 settings.img_height = crop->c.height;