Lines Matching refs:sel

1227 				 struct v4l2_subdev_selection *sel)  in resizer_get_selection()  argument
1234 if (sel->pad != RESZ_PAD_SINK) in resizer_get_selection()
1238 sel->which); in resizer_get_selection()
1240 sel->which); in resizer_get_selection()
1242 switch (sel->target) { in resizer_get_selection()
1244 sel->r.left = 0; in resizer_get_selection()
1245 sel->r.top = 0; in resizer_get_selection()
1246 sel->r.width = INT_MAX; in resizer_get_selection()
1247 sel->r.height = INT_MAX; in resizer_get_selection()
1249 resizer_try_crop(format_sink, format_source, &sel->r); in resizer_get_selection()
1250 resizer_calc_ratios(res, &sel->r, format_source, &ratio); in resizer_get_selection()
1254 sel->r = *__resizer_get_crop(res, cfg, sel->which); in resizer_get_selection()
1255 resizer_calc_ratios(res, &sel->r, format_source, &ratio); in resizer_get_selection()
1280 struct v4l2_subdev_selection *sel) in resizer_set_selection() argument
1289 if (sel->target != V4L2_SEL_TGT_CROP || in resizer_set_selection()
1290 sel->pad != RESZ_PAD_SINK) in resizer_set_selection()
1294 sel->which); in resizer_set_selection()
1296 sel->which); in resizer_set_selection()
1299 __func__, sel->which == V4L2_SUBDEV_FORMAT_TRY ? "try" : "act", in resizer_set_selection()
1301 sel->r.left, sel->r.top, sel->r.width, sel->r.height, in resizer_set_selection()
1312 resizer_try_crop(format_sink, &format_source, &sel->r); in resizer_set_selection()
1313 *__resizer_get_crop(res, cfg, sel->which) = sel->r; in resizer_set_selection()
1314 resizer_calc_ratios(res, &sel->r, &format_source, &ratio); in resizer_set_selection()
1317 __func__, sel->which == V4L2_SUBDEV_FORMAT_TRY ? "try" : "act", in resizer_set_selection()
1319 sel->r.left, sel->r.top, sel->r.width, sel->r.height, in resizer_set_selection()
1322 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in resizer_set_selection()
1323 *__resizer_get_format(res, cfg, RESZ_PAD_SOURCE, sel->which) = in resizer_set_selection()
1334 *__resizer_get_format(res, cfg, RESZ_PAD_SOURCE, sel->which) = in resizer_set_selection()
1338 res->crop.active = sel->r; in resizer_set_selection()