Lines Matching defs:sel
978 struct v4l2_selection *sel)
982 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
985 switch (sel->target) {
988 sel->r.left = 0;
989 sel->r.top = 0;
990 sel->r.width = vp->out_frame.f_width;
991 sel->r.height = vp->out_frame.f_height;
995 sel->r = vp->out_frame.rect;
1015 struct v4l2_selection *sel)
1019 struct v4l2_rect rect = sel->r;
1022 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
1023 sel->target != V4L2_SEL_TGT_COMPOSE)
1028 sel->r = rect;
1035 sel->type, sel->target, sel->flags,
1036 sel->r.left, sel->r.top, sel->r.width, sel->r.height);
1347 struct v4l2_subdev_selection *sel)
1353 if ((sel->target != V4L2_SEL_TGT_CROP &&
1354 sel->target != V4L2_SEL_TGT_CROP_BOUNDS) ||
1355 sel->pad != CAMIF_SD_PAD_SINK)
1358 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1359 sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
1365 if (sel->target == V4L2_SEL_TGT_CROP) {
1366 sel->r = *crop;
1368 sel->r.width = mf->width;
1369 sel->r.height = mf->height;
1370 sel->r.left = 0;
1371 sel->r.top = 0;
1434 struct v4l2_subdev_selection *sel)
1440 if (sel->target != V4L2_SEL_TGT_CROP || sel->pad != CAMIF_SD_PAD_SINK)
1444 __camif_try_crop(camif, &sel->r);
1446 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1447 *v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r;
1453 *crop = sel->r;