Lines Matching defs:sel
2213 static int bttv_g_selection(struct file *file, void *f, struct v4l2_selection *sel)
2217 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
2220 switch (sel->target) {
2222 sel->r = btv->crop[!!btv->do_crop].rect;
2225 sel->r = bttv_tvnorms[btv->tvnorm].cropcap.defrect;
2228 sel->r = bttv_tvnorms[btv->tvnorm].cropcap.bounds;
2237 static int bttv_s_selection(struct file *file, void *f, struct v4l2_selection *sel)
2248 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
2251 if (sel->target != V4L2_SEL_TGT_CROP)
2274 c.rect.left = clamp_t(s32, sel->r.left, b_left, b_right - 48);
2277 c.rect.width = clamp_t(s32, sel->r.width,
2280 c.rect.top = clamp_t(s32, sel->r.top, b_top, b_bottom - 32);
2284 c.rect.height = clamp_t(s32, sel->r.height,
2290 sel->r = c.rect;