Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dmt9t001.c380 struct v4l2_rect *__crop; in mt9t001_set_format() local
386 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, format->pad, in mt9t001_set_format()
391 max_t(unsigned int, __crop->width / 8, in mt9t001_set_format()
393 __crop->width); in mt9t001_set_format()
395 max_t(unsigned int, __crop->height / 8, in mt9t001_set_format()
397 __crop->height); in mt9t001_set_format()
399 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
400 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
404 __format->width = __crop->width / hratio; in mt9t001_set_format()
405 __format->height = __crop->height / vratio; in mt9t001_set_format()
[all …]
H A Dmt9v032.c500 struct v4l2_rect *__crop; in mt9v032_set_format() local
506 __crop = __mt9v032_get_pad_crop(mt9v032, cfg, format->pad, in mt9v032_set_format()
511 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format()
513 __crop->width); in mt9v032_set_format()
515 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format()
517 __crop->height); in mt9v032_set_format()
519 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
520 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
524 __format->width = __crop->width / hratio; in mt9v032_set_format()
525 __format->height = __crop->height / vratio; in mt9v032_set_format()
[all …]
H A Dmt9p031.c575 struct v4l2_rect *__crop; in mt9p031_set_format() local
581 __crop = __mt9p031_get_pad_crop(mt9p031, cfg, format->pad, in mt9p031_set_format()
586 max_t(unsigned int, __crop->width / 7, in mt9p031_set_format()
588 __crop->width); in mt9p031_set_format()
590 max_t(unsigned int, __crop->height / 8, in mt9p031_set_format()
592 __crop->height); in mt9p031_set_format()
594 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
595 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format()
599 __format->width = __crop->width / hratio; in mt9p031_set_format()
600 __format->height = __crop->height / vratio; in mt9p031_set_format()
[all …]
H A Dmt9m032.c434 struct v4l2_rect *__crop; in mt9m032_set_pad_selection() local
465 __crop = __mt9m032_get_pad_crop(sensor, cfg, sel->which); in mt9m032_set_pad_selection()
467 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
476 *__crop = rect; in mt9m032_set_pad_selection()
H A Dov5645.c975 struct v4l2_rect *__crop; in ov5645_set_format() local
979 __crop = __ov5645_get_pad_crop(ov5645, cfg, format->pad, in ov5645_set_format()
987 __crop->width = new_mode->width; in ov5645_set_format()
988 __crop->height = new_mode->height; in ov5645_set_format()
1006 __format->width = __crop->width; in ov5645_set_format()
1007 __format->height = __crop->height; in ov5645_set_format()