Lines Matching defs:sel
979 struct v4l2_selection *sel)
983 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
986 switch (sel->target) {
989 sel->r.left = 0;
990 sel->r.top = 0;
991 sel->r.width = vp->out_frame.f_width;
992 sel->r.height = vp->out_frame.f_height;
996 sel->r = vp->out_frame.rect;
1016 struct v4l2_selection *sel)
1020 struct v4l2_rect rect = sel->r;
1023 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
1024 sel->target != V4L2_SEL_TGT_COMPOSE)
1029 sel->r = rect;
1036 sel->type, sel->target, sel->flags,
1037 sel->r.left, sel->r.top, sel->r.width, sel->r.height);
1348 struct v4l2_subdev_selection *sel)
1354 if ((sel->target != V4L2_SEL_TGT_CROP &&
1355 sel->target != V4L2_SEL_TGT_CROP_BOUNDS) ||
1356 sel->pad != CAMIF_SD_PAD_SINK)
1359 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1360 sel->r = *v4l2_subdev_state_get_crop(sd_state, sel->pad);
1366 if (sel->target == V4L2_SEL_TGT_CROP) {
1367 sel->r = *crop;
1369 sel->r.width = mf->width;
1370 sel->r.height = mf->height;
1371 sel->r.left = 0;
1372 sel->r.top = 0;
1435 struct v4l2_subdev_selection *sel)
1441 if (sel->target != V4L2_SEL_TGT_CROP || sel->pad != CAMIF_SD_PAD_SINK)
1445 __camif_try_crop(camif, &sel->r);
1447 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1448 *v4l2_subdev_state_get_crop(sd_state, sel->pad) = sel->r;
1454 *crop = sel->r;