Lines Matching defs:sel
621 static int zoran_g_selection(struct file *file, void *__fh, struct v4l2_selection *sel)
625 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
626 sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) {
631 switch (sel->target) {
633 sel->r.top = zr->jpg_settings.img_y;
634 sel->r.left = zr->jpg_settings.img_x;
635 sel->r.width = zr->jpg_settings.img_width;
636 sel->r.height = zr->jpg_settings.img_height;
639 sel->r.top = 0;
640 sel->r.left = 0;
641 sel->r.width = BUZ_MIN_WIDTH;
642 sel->r.height = BUZ_MIN_HEIGHT;
645 sel->r.top = 0;
646 sel->r.left = 0;
647 sel->r.width = BUZ_MAX_WIDTH;
648 sel->r.height = BUZ_MAX_HEIGHT;
656 static int zoran_s_selection(struct file *file, void *__fh, struct v4l2_selection *sel)
662 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT &&
663 sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
666 if (!sel->r.width || !sel->r.height)
669 if (sel->target != V4L2_SEL_TGT_CROP)
680 settings.img_x = sel->r.left;
681 settings.img_y = sel->r.top;
682 settings.img_width = sel->r.width;
683 settings.img_height = sel->r.height;