Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/media/i2c/
Dmt9t001.c372 struct v4l2_rect *__crop; in mt9t001_set_format() local
378 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, format->pad, in mt9t001_set_format()
383 max_t(unsigned int, __crop->width / 8, in mt9t001_set_format()
385 __crop->width); in mt9t001_set_format()
387 max_t(unsigned int, __crop->height / 8, in mt9t001_set_format()
389 __crop->height); in mt9t001_set_format()
391 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
392 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
396 __format->width = __crop->width / hratio; in mt9t001_set_format()
397 __format->height = __crop->height / vratio; in mt9t001_set_format()
[all …]
Dmt9v032.c520 struct v4l2_rect *__crop; in mt9v032_set_format() local
526 __crop = __mt9v032_get_pad_crop(mt9v032, cfg, format->pad, in mt9v032_set_format()
531 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format()
533 __crop->width); in mt9v032_set_format()
535 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format()
537 __crop->height); in mt9v032_set_format()
539 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
540 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
544 __format->width = __crop->width / hratio; in mt9v032_set_format()
545 __format->height = __crop->height / vratio; in mt9v032_set_format()
[all …]
Dmt9p031.c552 struct v4l2_rect *__crop; in mt9p031_set_format() local
558 __crop = __mt9p031_get_pad_crop(mt9p031, cfg, 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 …]
Dmt9m032.c447 struct v4l2_rect *__crop; in mt9m032_set_pad_selection() local
478 __crop = __mt9m032_get_pad_crop(sensor, cfg, sel->which); in mt9m032_set_pad_selection()
480 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection()
489 *__crop = rect; in mt9m032_set_pad_selection()