Lines Matching refs:crop
204 struct v4l2_rect *crop; in histo_get_selection() local
221 crop = v4l2_subdev_state_get_crop(state, HISTO_PAD_SINK); in histo_get_selection()
224 sel->r.width = crop->width; in histo_get_selection()
225 sel->r.height = crop->height; in histo_get_selection()
282 struct v4l2_rect *crop; in histo_set_compose() local
293 crop = v4l2_subdev_state_get_crop(sd_state, sel->pad); in histo_set_compose()
309 sel->r.width = clamp(sel->r.width, crop->width / 4, crop->width); in histo_set_compose()
310 ratio = 1 << (crop->width * 2 / sel->r.width / 3); in histo_set_compose()
311 sel->r.width = crop->width / ratio; in histo_set_compose()
314 sel->r.height = clamp(sel->r.height, crop->height / 4, crop->height); in histo_set_compose()
315 ratio = 1 << (crop->height * 2 / sel->r.height / 3); in histo_set_compose()
316 sel->r.height = crop->height / ratio; in histo_set_compose()