Lines Matching defs:sel
1218 * @sel: Selection rectangle
1226 struct v4l2_subdev_selection *sel)
1233 if (sel->pad != RESZ_PAD_SINK)
1237 sel->which);
1239 sel->which);
1241 switch (sel->target) {
1243 sel->r.left = 0;
1244 sel->r.top = 0;
1245 sel->r.width = INT_MAX;
1246 sel->r.height = INT_MAX;
1248 resizer_try_crop(format_sink, format_source, &sel->r);
1249 resizer_calc_ratios(res, &sel->r, format_source, &ratio);
1253 sel->r = *__resizer_get_crop(res, sd_state, sel->which);
1254 resizer_calc_ratios(res, &sel->r, format_source, &ratio);
1268 * @sel: Selection rectangle
1279 struct v4l2_subdev_selection *sel)
1288 if (sel->target != V4L2_SEL_TGT_CROP ||
1289 sel->pad != RESZ_PAD_SINK)
1293 sel->which);
1295 sel->which);
1298 __func__, sel->which == V4L2_SUBDEV_FORMAT_TRY ? "try" : "act",
1300 sel->r.left, sel->r.top, sel->r.width, sel->r.height,
1311 resizer_try_crop(format_sink, &format_source, &sel->r);
1312 *__resizer_get_crop(res, sd_state, sel->which) = sel->r;
1313 resizer_calc_ratios(res, &sel->r, &format_source, &ratio);
1316 __func__, sel->which == V4L2_SUBDEV_FORMAT_TRY ? "try" : "act",
1318 sel->r.left, sel->r.top, sel->r.width, sel->r.height,
1321 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
1323 sel->which) =
1334 *__resizer_get_format(res, sd_state, RESZ_PAD_SOURCE, sel->which) =
1338 res->crop.active = sel->r;