Home
last modified time | relevance | path

Searched refs:__crop (Results 1 – 6 of 6) sorted by relevance

/linux-6.15/drivers/media/i2c/
H A Dmt9v032.c504 struct v4l2_rect *__crop; in mt9v032_set_format() local
515 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format()
517 __crop->width); in mt9v032_set_format()
519 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format()
521 __crop->height); in mt9v032_set_format()
523 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
528 __format->width = __crop->width / hratio; in mt9v032_set_format()
529 __format->height = __crop->height / vratio; in mt9v032_set_format()
562 struct v4l2_rect *__crop; in mt9v032_set_selection() local
592 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9v032_set_selection()
[all …]
H A Dmt9p031.c592 struct v4l2_rect *__crop; in mt9p031_set_format() local
603 max_t(unsigned int, __crop->width / 7, in mt9p031_set_format()
605 __crop->width); in mt9p031_set_format()
607 max_t(unsigned int, __crop->height / 8, in mt9p031_set_format()
609 __crop->height); in mt9p031_set_format()
611 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
616 __format->width = __crop->width / hratio; in mt9p031_set_format()
617 __format->height = __crop->height / vratio; in mt9p031_set_format()
654 struct v4l2_rect *__crop; in mt9p031_set_selection() local
682 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9p031_set_selection()
[all …]
H A Dov5693.c923 struct v4l2_rect *__crop; in ov5693_set_selection() local
949 __crop = __ov5693_get_pad_crop(ov5693, state, sel->pad, sel->which); in ov5693_set_selection()
951 if (rect.width != __crop->width || rect.height != __crop->height) { in ov5693_set_selection()
962 *__crop = rect; in ov5693_set_selection()
1043 struct v4l2_rect *__crop; in ov5693_enum_frame_size() local
1048 __crop = __ov5693_get_pad_crop(ov5693, state, fse->pad, fse->which); in ov5693_enum_frame_size()
1049 if (!__crop) in ov5693_enum_frame_size()
1052 fse->min_width = __crop->width / (fse->index + 1); in ov5693_enum_frame_size()
1053 fse->min_height = __crop->height / (fse->index + 1); in ov5693_enum_frame_size()
H A Dov5645.c857 struct v4l2_rect *__crop; in ov5645_set_format() local
861 __crop = v4l2_subdev_state_get_crop(sd_state, 0); in ov5645_set_format()
867 __crop->width = new_mode->width; in ov5645_set_format()
868 __crop->height = new_mode->height; in ov5645_set_format()
885 __format->width = __crop->width; in ov5645_set_format()
886 __format->height = __crop->height; in ov5645_set_format()
H A Dov7251.c1223 struct v4l2_rect *__crop; in ov7251_set_format() local
1229 __crop = __ov7251_get_pad_crop(ov7251, sd_state, format->pad, in ov7251_set_format()
1237 __crop->width = new_mode->width; in ov7251_set_format()
1238 __crop->height = new_mode->height; in ov7251_set_format()
1269 __format->width = __crop->width; in ov7251_set_format()
1270 __format->height = __crop->height; in ov7251_set_format()
H A Dimx214.c688 struct v4l2_rect *__crop; in imx214_set_format() local
702 __crop = v4l2_subdev_state_get_crop(sd_state, 0); in imx214_set_format()
703 __crop->width = mode->width; in imx214_set_format()
704 __crop->height = mode->height; in imx214_set_format()