Home
last modified time | relevance | path

Searched refs:cam_rect (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c109 struct v4l2_rect *rect = &sel->r, *cam_rect = &cam_sel->r; in soc_camera_client_s_selection() local
116 ret = soc_camera_client_g_rect(sd, cam_rect); in soc_camera_client_s_selection()
124 if (!memcmp(rect, cam_rect, sizeof(*rect))) { in soc_camera_client_s_selection()
128 *target_rect = *cam_rect; in soc_camera_client_s_selection()
134 cam_rect->width, cam_rect->height, in soc_camera_client_s_selection()
135 cam_rect->left, cam_rect->top, in soc_camera_client_s_selection()
153 width = max_t(unsigned int, cam_rect->width, 2); in soc_camera_client_s_selection()
154 height = max_t(unsigned int, cam_rect->height, 2); in soc_camera_client_s_selection()
160 while (!ret && (is_smaller(cam_rect, rect) || in soc_camera_client_s_selection()
161 is_inside(cam_rect, rect)) && in soc_camera_client_s_selection()
[all …]
Dsh_mobile_ceu_camera.c1122 struct v4l2_rect *cam_rect = &cam_sel.r; in sh_mobile_ceu_set_selection() local
1151 cam_rect->width, cam_rect->height, in sh_mobile_ceu_set_selection()
1152 cam_rect->left, cam_rect->top); in sh_mobile_ceu_set_selection()
1165 scale_cam_h = calc_generic_scale(cam_rect->width, mf->width); in sh_mobile_ceu_set_selection()
1166 scale_cam_v = calc_generic_scale(cam_rect->height, mf->height); in sh_mobile_ceu_set_selection()
1177 mf->width = scale_down(cam_rect->width, new_scale_h); in sh_mobile_ceu_set_selection()
1185 mf->height = scale_down(cam_rect->height, new_scale_v); in sh_mobile_ceu_set_selection()
1196 scale_cam_h = calc_generic_scale(cam_rect->width, mf->width); in sh_mobile_ceu_set_selection()
1197 scale_cam_v = calc_generic_scale(cam_rect->height, mf->height); in sh_mobile_ceu_set_selection()
1233 cam->ceu_left = scale_down(rect->left - cam_rect->left, scale_cam_h) & ~1; in sh_mobile_ceu_set_selection()
[all …]