Lines Matching defs:sel
874 struct v4l2_selection *sel)
879 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
882 switch (sel->target) {
885 sel->r.left = 0;
886 sel->r.top = 0;
887 sel->r.width = f->f_width;
888 sel->r.height = f->f_height;
892 sel->r = f->rect;
900 struct v4l2_selection *sel)
904 struct v4l2_rect rect = sel->r;
907 if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
908 sel->target != V4L2_SEL_TGT_COMPOSE)
913 if ((sel->flags & V4L2_SEL_FLAG_LE) &&
914 !v4l2_rect_enclosed(&rect, &sel->r))
917 if ((sel->flags & V4L2_SEL_FLAG_GE) &&
918 !v4l2_rect_enclosed(&sel->r, &rect))
921 sel->r = rect;
1120 struct v4l2_subdev_selection *sel)
1125 if ((sel->target != V4L2_SEL_TGT_CROP &&
1126 sel->target != V4L2_SEL_TGT_CROP_BOUNDS) ||
1127 sel->pad != FLITE_SD_PAD_SINK)
1130 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1131 sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
1136 if (sel->target == V4L2_SEL_TGT_CROP) {
1137 sel->r = f->rect;
1139 sel->r.left = 0;
1140 sel->r.top = 0;
1141 sel->r.width = f->f_width;
1142 sel->r.height = f->f_height;
1155 struct v4l2_subdev_selection *sel)
1161 if (sel->target != V4L2_SEL_TGT_CROP || sel->pad != FLITE_SD_PAD_SINK)
1165 fimc_lite_try_crop(fimc, &sel->r);
1167 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1168 *v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r;
1172 f->rect = sel->r;
1174 fimc->out_frame.rect = sel->r;