Lines Matching refs:crop
208 struct v4l2_rect *crop; in histo_get_selection() local
226 crop = vsp1_entity_get_pad_selection(&histo->entity, config, in histo_get_selection()
231 sel->r.width = crop->width; in histo_get_selection()
232 sel->r.height = crop->height; in histo_get_selection()
298 struct v4l2_rect *crop; in histo_set_compose() local
309 crop = vsp1_entity_get_pad_selection(&histo->entity, sd_state, in histo_set_compose()
327 sel->r.width = clamp(sel->r.width, crop->width / 4, crop->width); in histo_set_compose()
328 ratio = 1 << (crop->width * 2 / sel->r.width / 3); in histo_set_compose()
329 sel->r.width = crop->width / ratio; in histo_set_compose()
332 sel->r.height = clamp(sel->r.height, crop->height / 4, crop->height); in histo_set_compose()
333 ratio = 1 << (crop->height * 2 / sel->r.height / 3); in histo_set_compose()
334 sel->r.height = crop->height / ratio; in histo_set_compose()