Searched refs:__crop (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/drivers/media/i2c/ |
D | mt9t001.c | 383 struct v4l2_rect *__crop; in mt9t001_set_format() local 389 __crop = __mt9t001_get_pad_crop(mt9t001, cfg, format->pad, in mt9t001_set_format() 394 max_t(unsigned int, __crop->width / 8, in mt9t001_set_format() 396 __crop->width); in mt9t001_set_format() 398 max_t(unsigned int, __crop->height / 8, in mt9t001_set_format() 400 __crop->height); in mt9t001_set_format() 402 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format() 403 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format() 407 __format->width = __crop->width / hratio; in mt9t001_set_format() 408 __format->height = __crop->height / vratio; in mt9t001_set_format() [all …]
|
D | mt9p031.c | 552 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 …]
|
D | mt9v032.c | 497 struct v4l2_rect *__crop; in mt9v032_set_format() local 503 __crop = __mt9v032_get_pad_crop(mt9v032, cfg, format->pad, in mt9v032_set_format() 508 max_t(unsigned int, __crop->width / 4, in mt9v032_set_format() 510 __crop->width); in mt9v032_set_format() 512 max_t(unsigned int, __crop->height / 4, in mt9v032_set_format() 514 __crop->height); in mt9v032_set_format() 516 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format() 517 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format() 521 __format->width = __crop->width / hratio; in mt9v032_set_format() 522 __format->height = __crop->height / vratio; in mt9v032_set_format() [all …]
|
D | ov5645.c | 970 struct v4l2_rect *__crop; in ov5645_set_format() local 974 __crop = __ov5645_get_pad_crop(ov5645, cfg, format->pad, in ov5645_set_format() 982 __crop->width = new_mode->width; in ov5645_set_format() 983 __crop->height = new_mode->height; in ov5645_set_format() 1001 __format->width = __crop->width; in ov5645_set_format() 1002 __format->height = __crop->height; in ov5645_set_format()
|
D | mt9m032.c | 442 struct v4l2_rect *__crop; in mt9m032_set_pad_selection() local 473 __crop = __mt9m032_get_pad_crop(sensor, cfg, sel->which); in mt9m032_set_pad_selection() 475 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_selection() 484 *__crop = rect; in mt9m032_set_pad_selection()
|
D | ov7251.c | 1035 struct v4l2_rect *__crop; in ov7251_set_format() local 1041 __crop = __ov7251_get_pad_crop(ov7251, cfg, format->pad, format->which); in ov7251_set_format() 1048 __crop->width = new_mode->width; in ov7251_set_format() 1049 __crop->height = new_mode->height; in ov7251_set_format() 1082 __format->width = __crop->width; in ov7251_set_format() 1083 __format->height = __crop->height; in ov7251_set_format()
|