Searched refs:max_rect (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/media/platform/renesas/rcar-vin/ |
D | rcar-v4l2.c | 519 struct v4l2_rect max_rect; in rvin_s_selection() local 537 ret = rvin_remote_rectangle(vin, &max_rect); in rvin_s_selection() 541 v4l2_rect_map_inside(&r, &max_rect); in rvin_s_selection() 543 v4l_bound_align_image(&r.width, 6, max_rect.width, 0, in rvin_s_selection() 544 &r.height, 2, max_rect.height, 0, 0); in rvin_s_selection() 546 r.top = clamp_t(s32, r.top, 0, max_rect.height - r.height); in rvin_s_selection() 547 r.left = clamp_t(s32, r.left, 0, max_rect.width - r.width); in rvin_s_selection() 553 max_rect.width, max_rect.height); in rvin_s_selection() 557 max_rect.top = max_rect.left = 0; in rvin_s_selection() 558 max_rect.width = vin->format.width; in rvin_s_selection() [all …]
|
/Linux-v6.6/drivers/media/platform/st/stm32/ |
D | stm32-dcmi.c | 1011 struct v4l2_rect max_rect; in dcmi_try_fmt() local 1017 max_rect.top = 0; in dcmi_try_fmt() 1018 max_rect.left = 0; in dcmi_try_fmt() 1019 max_rect.width = pix->width; in dcmi_try_fmt() 1020 max_rect.height = pix->height; in dcmi_try_fmt() 1021 v4l2_rect_map_inside(&c, &max_rect); in dcmi_try_fmt() 1265 struct v4l2_rect max_rect; in dcmi_s_selection() local 1283 max_rect.top = 0; in dcmi_s_selection() 1284 max_rect.left = 0; in dcmi_s_selection() 1285 max_rect.width = pix.width; in dcmi_s_selection() [all …]
|
/Linux-v6.6/drivers/media/test-drivers/vivid/ |
D | vivid-vid-out.c | 702 struct v4l2_rect max_rect = { in vivid_vid_out_s_selection() local 708 v4l2_rect_set_max_size(&s->r, &max_rect); in vivid_vid_out_s_selection() 715 struct v4l2_rect max_rect = { in vivid_vid_out_s_selection() local 722 v4l2_rect_set_max_size(compose, &max_rect); in vivid_vid_out_s_selection() 753 struct v4l2_rect max_rect = { in vivid_vid_out_s_selection() local 766 v4l2_rect_set_max_size(&fmt, &max_rect); in vivid_vid_out_s_selection() 772 v4l2_rect_set_max_size(crop, &max_rect); in vivid_vid_out_s_selection()
|
D | vivid-vid-cap.c | 936 struct v4l2_rect max_rect = { in vivid_vid_cap_s_selection() local 949 v4l2_rect_set_max_size(&fmt, &max_rect); in vivid_vid_cap_s_selection() 955 v4l2_rect_set_max_size(compose, &max_rect); in vivid_vid_cap_s_selection() 993 struct v4l2_rect max_rect = { in vivid_vid_cap_s_selection() local 999 v4l2_rect_set_max_size(&s->r, &max_rect); in vivid_vid_cap_s_selection() 1006 struct v4l2_rect max_rect = { in vivid_vid_cap_s_selection() local 1013 v4l2_rect_set_max_size(crop, &max_rect); in vivid_vid_cap_s_selection()
|