Lines Matching refs:crop

152 		return &res->crop.request;  in __resizer_get_crop()
522 clock = div_u64((u64)limit * res->crop.active.height, ofmt->height); in omap3isp_resizer_max_rate()
524 *max_rate = div_u64((u64)clock * res->crop.active.width, ofmt->width); in omap3isp_resizer_max_rate()
603 requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256) in resizer_adjust_bandwidth()
604 * res->crop.active.height; in resizer_adjust_bandwidth()
941 res->crop_offset = (res->crop.active.top * input->width + in resizer_set_crop_params()
942 res->crop.active.left) * 2; in resizer_set_crop_params()
961 resizer_set_start(res, res->crop.active.left * 2, in resizer_set_crop_params()
962 res->crop.active.top); in resizer_set_crop_params()
969 resizer_set_input_size(res, res->crop.active.width, in resizer_set_crop_params()
970 res->crop.active.height); in resizer_set_crop_params()
1202 struct v4l2_subdev_crop *crop) in resizer_g_crop() argument
1209 if (crop->pad != RESZ_PAD_SINK) in resizer_g_crop()
1212 format = __resizer_get_format(res, fh, RESZ_PAD_SOURCE, crop->which); in resizer_g_crop()
1213 crop->rect = *__resizer_get_crop(res, fh, crop->which); in resizer_g_crop()
1214 resizer_calc_ratios(res, &crop->rect, format, &ratio); in resizer_g_crop()
1224 struct v4l2_rect *crop) in resizer_try_crop() argument
1241 crop->width = clamp_t(u32, crop->width, min_width, max_width); in resizer_try_crop()
1242 crop->height = clamp_t(u32, crop->height, min_height, max_height); in resizer_try_crop()
1245 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); in resizer_try_crop()
1246 crop->width = clamp_t(u32, crop->width, MIN_IN_WIDTH, in resizer_try_crop()
1247 sink->width - crop->left); in resizer_try_crop()
1248 crop->top = clamp_t(u32, crop->top, 0, sink->height - MIN_IN_HEIGHT); in resizer_try_crop()
1249 crop->height = clamp_t(u32, crop->height, MIN_IN_HEIGHT, in resizer_try_crop()
1250 sink->height - crop->top); in resizer_try_crop()
1262 struct v4l2_subdev_crop *crop) in resizer_s_crop() argument
1270 if (crop->pad != RESZ_PAD_SINK) in resizer_s_crop()
1274 crop->which); in resizer_s_crop()
1276 crop->which); in resizer_s_crop()
1279 crop->rect.left, crop->rect.top, crop->rect.width, in resizer_s_crop()
1280 crop->rect.height, crop->which); in resizer_s_crop()
1286 resizer_try_crop(format_sink, format_source, &crop->rect); in resizer_s_crop()
1287 *__resizer_get_crop(res, fh, crop->which) = crop->rect; in resizer_s_crop()
1288 resizer_calc_ratios(res, &crop->rect, format_source, &ratio); in resizer_s_crop()
1290 if (crop->which == V4L2_SUBDEV_FORMAT_TRY) in resizer_s_crop()
1294 res->crop.active = crop->rect; in resizer_s_crop()
1341 struct v4l2_rect crop; in resizer_try_format() local
1359 crop = *__resizer_get_crop(res, fh, which); in resizer_try_format()
1360 resizer_calc_ratios(res, &crop, fmt, &ratio); in resizer_try_format()
1462 struct v4l2_rect *crop; in resizer_set_format() local
1473 crop = __resizer_get_crop(res, fh, fmt->which); in resizer_set_format()
1474 crop->left = 0; in resizer_set_format()
1475 crop->top = 0; in resizer_set_format()
1476 crop->width = fmt->format.width; in resizer_set_format()
1477 crop->height = fmt->format.height; in resizer_set_format()
1492 res->crop.active = res->crop.request; in resizer_set_format()
1493 resizer_calc_ratios(res, &res->crop.active, format, in resizer_set_format()