Lines Matching refs:crop
2397 static int zoran_g_crop(struct file *file, void *__fh, struct v4l2_crop *crop) in zoran_g_crop() argument
2401 int type = crop->type, res = 0; in zoran_g_crop()
2403 memset(crop, 0, sizeof(*crop)); in zoran_g_crop()
2404 crop->type = type; in zoran_g_crop()
2406 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && in zoran_g_crop()
2407 (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in zoran_g_crop()
2417 crop->c.top = fh->jpg_settings.img_y; in zoran_g_crop()
2418 crop->c.left = fh->jpg_settings.img_x; in zoran_g_crop()
2419 crop->c.width = fh->jpg_settings.img_width; in zoran_g_crop()
2420 crop->c.height = fh->jpg_settings.img_height; in zoran_g_crop()
2424 static int zoran_s_crop(struct file *file, void *__fh, const struct v4l2_crop *crop) in zoran_s_crop() argument
2441 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && in zoran_s_crop()
2442 (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in zoran_s_crop()
2452 settings.img_x = crop->c.left; in zoran_s_crop()
2453 settings.img_y = crop->c.top; in zoran_s_crop()
2454 settings.img_width = crop->c.width; in zoran_s_crop()
2455 settings.img_height = crop->c.height; in zoran_s_crop()