Lines Matching refs:sel
846 struct v4l2_selection *sel) in ivtv_s_selection() argument
854 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_s_selection()
858 if (sel->target != V4L2_SEL_TGT_COMPOSE) in ivtv_s_selection()
862 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_s_selection()
871 sel->r.width = clamp(sel->r.width, 16U, r.width); in ivtv_s_selection()
872 sel->r.height = clamp(sel->r.height, 16U, r.height); in ivtv_s_selection()
873 sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width); in ivtv_s_selection()
874 sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height); in ivtv_s_selection()
877 yi->main_rect = sel->r; in ivtv_s_selection()
881 sel->r.width, sel->r.height, sel->r.left, sel->r.top)) { in ivtv_s_selection()
882 itv->main_rect = sel->r; in ivtv_s_selection()
889 struct v4l2_selection *sel) in ivtv_g_selection() argument
897 if (sel->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { in ivtv_g_selection()
898 switch (sel->target) { in ivtv_g_selection()
901 sel->r.top = sel->r.left = 0; in ivtv_g_selection()
902 sel->r.width = 720; in ivtv_g_selection()
903 sel->r.height = itv->is_50hz ? 576 : 480; in ivtv_g_selection()
910 if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT || in ivtv_g_selection()
914 switch (sel->target) { in ivtv_g_selection()
917 sel->r = yi->main_rect; in ivtv_g_selection()
919 sel->r = itv->main_rect; in ivtv_g_selection()
928 sel->r = r; in ivtv_g_selection()