Home
last modified time | relevance | path

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

/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c108 struct v4l2_rect *rect = &sel->r, *cam_rect = &cam_sel->r; in soc_camera_client_s_selection() local
115 ret = soc_camera_client_g_rect(sd, cam_rect); in soc_camera_client_s_selection()
123 if (!memcmp(rect, cam_rect, sizeof(*rect))) { in soc_camera_client_s_selection()
127 *target_rect = *cam_rect; in soc_camera_client_s_selection()
133 cam_rect->width, cam_rect->height, in soc_camera_client_s_selection()
134 cam_rect->left, cam_rect->top, in soc_camera_client_s_selection()
152 width = max_t(unsigned int, cam_rect->width, 2); in soc_camera_client_s_selection()
153 height = max_t(unsigned int, cam_rect->height, 2); in soc_camera_client_s_selection()
159 while (!ret && (is_smaller(cam_rect, rect) || in soc_camera_client_s_selection()
160 is_inside(cam_rect, rect)) && in soc_camera_client_s_selection()
[all …]
Dsh_mobile_ceu_camera.c1121 struct v4l2_rect *cam_rect = &cam_sel.r; in sh_mobile_ceu_set_selection() local
1150 cam_rect->width, cam_rect->height, in sh_mobile_ceu_set_selection()
1151 cam_rect->left, cam_rect->top); in sh_mobile_ceu_set_selection()
1164 scale_cam_h = calc_generic_scale(cam_rect->width, mf->width); in sh_mobile_ceu_set_selection()
1165 scale_cam_v = calc_generic_scale(cam_rect->height, mf->height); in sh_mobile_ceu_set_selection()
1176 mf->width = scale_down(cam_rect->width, new_scale_h); in sh_mobile_ceu_set_selection()
1184 mf->height = scale_down(cam_rect->height, new_scale_v); in sh_mobile_ceu_set_selection()
1195 scale_cam_h = calc_generic_scale(cam_rect->width, mf->width); in sh_mobile_ceu_set_selection()
1196 scale_cam_v = calc_generic_scale(cam_rect->height, mf->height); in sh_mobile_ceu_set_selection()
1232 cam->ceu_left = scale_down(rect->left - cam_rect->left, scale_cam_h) & ~1; in sh_mobile_ceu_set_selection()
[all …]