Lines Matching refs:crop
2546 static int zoran_g_crop(struct file *file, void *__fh, struct v4l2_crop *crop) in zoran_g_crop() argument
2550 int type = crop->type, res = 0; in zoran_g_crop()
2552 memset(crop, 0, sizeof(*crop)); in zoran_g_crop()
2553 crop->type = type; in zoran_g_crop()
2557 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && in zoran_g_crop()
2558 (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in zoran_g_crop()
2568 crop->c.top = fh->jpg_settings.img_y; in zoran_g_crop()
2569 crop->c.left = fh->jpg_settings.img_x; in zoran_g_crop()
2570 crop->c.width = fh->jpg_settings.img_width; in zoran_g_crop()
2571 crop->c.height = fh->jpg_settings.img_height; in zoran_g_crop()
2579 static int zoran_s_crop(struct file *file, void *__fh, const struct v4l2_crop *crop) in zoran_s_crop() argument
2598 if (crop->type != V4L2_BUF_TYPE_VIDEO_OUTPUT && in zoran_s_crop()
2599 (crop->type != V4L2_BUF_TYPE_VIDEO_CAPTURE || in zoran_s_crop()
2609 settings.img_x = crop->c.left; in zoran_s_crop()
2610 settings.img_y = crop->c.top; in zoran_s_crop()
2611 settings.img_width = crop->c.width; in zoran_s_crop()
2612 settings.img_height = crop->c.height; in zoran_s_crop()