Searched refs:__crop (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/media/i2c/ |
| H A D | mt9v032.c | 510 struct v4l2_rect *__crop; in mt9v032_set_format() local 516 __crop = __mt9v032_get_pad_crop(mt9v032, sd_state, format->pad, in mt9v032_set_format() 521 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format() 523 __crop->width); in mt9v032_set_format() 525 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format() 527 __crop->height); in mt9v032_set_format() 529 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format() 530 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format() 534 __format->width = __crop->width / hratio; in mt9v032_set_format() 535 __format->height = __crop->height / vratio; in mt9v032_set_format() [all …]
|
| H A D | mt9p031.c | 588 struct v4l2_rect *__crop; in mt9p031_set_format() local 594 __crop = __mt9p031_get_pad_crop(mt9p031, sd_state, format->pad, in mt9p031_set_format() 599 max_t(unsigned int, __crop->width / 7, in mt9p031_set_format() 601 __crop->width); in mt9p031_set_format() 603 max_t(unsigned int, __crop->height / 8, in mt9p031_set_format() 605 __crop->height); in mt9p031_set_format() 607 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format() 608 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format() 612 __format->width = __crop->width / hratio; in mt9p031_set_format() 613 __format->height = __crop->height / vratio; in mt9p031_set_format() [all …]
|
| H A D | ov7251.c | 1222 struct v4l2_rect *__crop; in ov7251_set_format() local 1228 __crop = __ov7251_get_pad_crop(ov7251, sd_state, format->pad, in ov7251_set_format() 1236 __crop->width = new_mode->width; in ov7251_set_format() 1237 __crop->height = new_mode->height; in ov7251_set_format() 1268 __format->width = __crop->width; in ov7251_set_format() 1269 __format->height = __crop->height; in ov7251_set_format()
|