Searched refs:max_rect (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/media/platform/renesas/rcar-vin/ |
H A 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/drivers/media/platform/st/stm32/ |
H A D | stm32-dcmi.c | 1010 struct v4l2_rect max_rect; in dcmi_try_fmt() local 1016 max_rect.top = 0; in dcmi_try_fmt() 1017 max_rect.left = 0; in dcmi_try_fmt() 1018 max_rect.width = pix->width; in dcmi_try_fmt() 1019 max_rect.height = pix->height; in dcmi_try_fmt() 1020 v4l2_rect_map_inside(&c, &max_rect); in dcmi_try_fmt() 1264 struct v4l2_rect max_rect; in dcmi_s_selection() local 1282 max_rect.top = 0; in dcmi_s_selection() 1283 max_rect.left = 0; in dcmi_s_selection() 1284 max_rect.width = pix.width; in dcmi_s_selection() [all …]
|
/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-out.c | 699 struct v4l2_rect max_rect = { in vivid_vid_out_s_selection() local 705 v4l2_rect_set_max_size(&s->r, &max_rect); in vivid_vid_out_s_selection() 712 struct v4l2_rect max_rect = { in vivid_vid_out_s_selection() local 719 v4l2_rect_set_max_size(compose, &max_rect); in vivid_vid_out_s_selection() 750 struct v4l2_rect max_rect = { in vivid_vid_out_s_selection() local 763 v4l2_rect_set_max_size(&fmt, &max_rect); in vivid_vid_out_s_selection() 769 v4l2_rect_set_max_size(crop, &max_rect); in vivid_vid_out_s_selection()
|
H A D | vivid-vid-cap.c | 930 struct v4l2_rect max_rect = { in vivid_vid_cap_s_selection() local 943 v4l2_rect_set_max_size(&fmt, &max_rect); in vivid_vid_cap_s_selection() 949 v4l2_rect_set_max_size(compose, &max_rect); in vivid_vid_cap_s_selection() 987 struct v4l2_rect max_rect = { in vivid_vid_cap_s_selection() local 993 v4l2_rect_set_max_size(&s->r, &max_rect); in vivid_vid_cap_s_selection() 1000 struct v4l2_rect max_rect = { in vivid_vid_cap_s_selection() local 1007 v4l2_rect_set_max_size(crop, &max_rect); in vivid_vid_cap_s_selection()
|