Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/media/i2c/
Dmt9t001.c385 struct v4l2_rect *__crop; in mt9t001_set_format() local
391 __crop = __mt9t001_get_pad_crop(mt9t001, sd_state, format->pad, in mt9t001_set_format()
396 max_t(unsigned int, __crop->width / 8, in mt9t001_set_format()
398 __crop->width); in mt9t001_set_format()
400 max_t(unsigned int, __crop->height / 8, in mt9t001_set_format()
402 __crop->height); in mt9t001_set_format()
404 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
405 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
409 __format->width = __crop->width / hratio; in mt9t001_set_format()
410 __format->height = __crop->height / vratio; in mt9t001_set_format()
[all …]
Dmt9p031.c552 struct v4l2_rect *__crop; in mt9p031_set_format() local
558 __crop = __mt9p031_get_pad_crop(mt9p031, sd_state, format->pad, in mt9p031_set_format()
563 max_t(unsigned int, __crop->width / 7, in mt9p031_set_format()
565 __crop->width); in mt9p031_set_format()
567 max_t(unsigned int, __crop->height / 8, in mt9p031_set_format()
569 __crop->height); in mt9p031_set_format()
571 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
572 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format()
576 __format->width = __crop->width / hratio; in mt9p031_set_format()
577 __format->height = __crop->height / vratio; in mt9p031_set_format()
[all …]
Dmt9v032.c505 struct v4l2_rect *__crop; in mt9v032_set_format() local
511 __crop = __mt9v032_get_pad_crop(mt9v032, sd_state, format->pad, in mt9v032_set_format()
516 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format()
518 __crop->width); in mt9v032_set_format()
520 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format()
522 __crop->height); in mt9v032_set_format()
524 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
525 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
529 __format->width = __crop->width / hratio; in mt9v032_set_format()
530 __format->height = __crop->height / vratio; in mt9v032_set_format()
[all …]
Dimx214.c587 struct v4l2_rect *__crop; in imx214_set_format() local
592 __crop = __imx214_get_pad_crop(imx214, sd_state, format->pad, in imx214_set_format()
600 __crop->width = mode->width; in imx214_set_format()
601 __crop->height = mode->height; in imx214_set_format()
605 __format->width = __crop->width; in imx214_set_format()
606 __format->height = __crop->height; in imx214_set_format()
Dov5645.c918 struct v4l2_rect *__crop; in ov5645_set_format() local
922 __crop = __ov5645_get_pad_crop(ov5645, sd_state, format->pad, in ov5645_set_format()
930 __crop->width = new_mode->width; in ov5645_set_format()
931 __crop->height = new_mode->height; in ov5645_set_format()
949 __format->width = __crop->width; in ov5645_set_format()
950 __format->height = __crop->height; in ov5645_set_format()
Dmt9m032.c437 struct v4l2_rect *__crop; in mt9m032_set_pad_selection() local
468 __crop = __mt9m032_get_pad_crop(sensor, sd_state, sel->which); in mt9m032_set_pad_selection()
470 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
480 *__crop = rect; in mt9m032_set_pad_selection()
Dov7251.c1037 struct v4l2_rect *__crop; in ov7251_set_format() local
1043 __crop = __ov7251_get_pad_crop(ov7251, sd_state, format->pad, in ov7251_set_format()
1051 __crop->width = new_mode->width; in ov7251_set_format()
1052 __crop->height = new_mode->height; in ov7251_set_format()
1085 __format->width = __crop->width; in ov7251_set_format()
1086 __format->height = __crop->height; in ov7251_set_format()