Lines Matching refs:sel
844 struct v4l2_selection *sel) in ivtv_s_selection() argument
852 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_s_selection()
856 if (sel->target != V4L2_SEL_TGT_COMPOSE) in ivtv_s_selection()
860 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_s_selection()
869 sel->r.width = clamp(sel->r.width, 16U, r.width); in ivtv_s_selection()
870 sel->r.height = clamp(sel->r.height, 16U, r.height); in ivtv_s_selection()
871 sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width); in ivtv_s_selection()
872 sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height); in ivtv_s_selection()
875 yi->main_rect = sel->r; in ivtv_s_selection()
879 sel->r.width, sel->r.height, sel->r.left, sel->r.top)) { in ivtv_s_selection()
880 itv->main_rect = sel->r; in ivtv_s_selection()
887 struct v4l2_selection *sel) in ivtv_g_selection() argument
895 if (sel->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { in ivtv_g_selection()
896 switch (sel->target) { in ivtv_g_selection()
899 sel->r.top = sel->r.left = 0; in ivtv_g_selection()
900 sel->r.width = 720; in ivtv_g_selection()
901 sel->r.height = itv->is_50hz ? 576 : 480; in ivtv_g_selection()
908 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_g_selection()
912 switch (sel->target) { in ivtv_g_selection()
915 sel->r = yi->main_rect; in ivtv_g_selection()
917 sel->r = itv->main_rect; in ivtv_g_selection()
926 sel->r = r; in ivtv_g_selection()