Home
last modified time | relevance | path

Searched refs:subrect (Results 1 – 3 of 3) sorted by relevance

/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c65 static void update_subrect(struct v4l2_rect *rect, struct v4l2_rect *subrect) in update_subrect() argument
67 if (rect->width < subrect->width) in update_subrect()
68 subrect->width = rect->width; in update_subrect()
70 if (rect->height < subrect->height) in update_subrect()
71 subrect->height = rect->height; in update_subrect()
73 if (rect->left > subrect->left) in update_subrect()
74 subrect->left = rect->left; in update_subrect()
76 subrect->left + subrect->width) in update_subrect()
77 subrect->left = rect->left + rect->width - in update_subrect()
78 subrect->width; in update_subrect()
[all …]
Dsoc_scale_crop.h36 struct v4l2_rect *target_rect, struct v4l2_rect *subrect);
38 struct v4l2_rect *rect, struct v4l2_rect *subrect,
43 struct v4l2_rect *rect, struct v4l2_rect *subrect,
Dsh_mobile_ceu_camera.c141 struct v4l2_rect subrect; member
1036 cam->subrect = rect; in sh_mobile_ceu_get_formats()
1145 &cam->rect, &cam->subrect); in sh_mobile_ceu_set_selection()
1238 cam->subrect = *rect; in sh_mobile_ceu_set_selection()
1258 sel->r = cam->subrect; in sh_mobile_ceu_get_selection()
1303 soc_camera_calc_client_output(icd, &cam->rect, &cam->subrect, pix, &mf, 12); in sh_mobile_ceu_set_fmt()
1325 ret = soc_camera_client_scale(icd, &cam->rect, &cam->subrect, in sh_mobile_ceu_set_fmt()