Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/media/video/
Dmt9v032.c374 struct v4l2_rect *__crop; in mt9v032_set_format() local
380 __crop = __mt9v032_get_pad_crop(mt9v032, fh, format->pad, in mt9v032_set_format()
385 max(__crop->width / 8, MT9V032_WINDOW_WIDTH_MIN), in mt9v032_set_format()
386 __crop->width); in mt9v032_set_format()
388 max(__crop->height / 8, MT9V032_WINDOW_HEIGHT_MIN), in mt9v032_set_format()
389 __crop->height); in mt9v032_set_format()
391 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9v032_set_format()
392 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9v032_set_format()
396 __format->width = __crop->width / hratio; in mt9v032_set_format()
397 __format->height = __crop->height / vratio; in mt9v032_set_format()
[all …]
Dmt9t001.c283 struct v4l2_rect *__crop; in mt9t001_set_format() local
289 __crop = __mt9t001_get_pad_crop(mt9t001, fh, format->pad, in mt9t001_set_format()
294 max(__crop->width / 8, MT9T001_WINDOW_HEIGHT_MIN + 1), in mt9t001_set_format()
295 __crop->width); in mt9t001_set_format()
297 max(__crop->height / 8, MT9T001_WINDOW_HEIGHT_MIN + 1), in mt9t001_set_format()
298 __crop->height); in mt9t001_set_format()
300 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
301 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
305 __format->width = __crop->width / hratio; in mt9t001_set_format()
306 __format->height = __crop->height / vratio; in mt9t001_set_format()
[all …]
Dmt9p031.c470 struct v4l2_rect *__crop; in mt9p031_set_format() local
476 __crop = __mt9p031_get_pad_crop(mt9p031, fh, format->pad, in mt9p031_set_format()
481 max(__crop->width / 7, MT9P031_WINDOW_WIDTH_MIN), in mt9p031_set_format()
482 __crop->width); in mt9p031_set_format()
484 max(__crop->height / 8, MT9P031_WINDOW_HEIGHT_MIN), in mt9p031_set_format()
485 __crop->height); in mt9p031_set_format()
487 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
488 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format()
492 __format->width = __crop->width / hratio; in mt9p031_set_format()
493 __format->height = __crop->height / vratio; in mt9p031_set_format()
[all …]
Dmt9m032.c422 struct v4l2_rect *__crop; in mt9m032_set_pad_crop() local
448 __crop = __mt9m032_get_pad_crop(sensor, fh, crop->which); in mt9m032_set_pad_crop()
450 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_crop()
459 *__crop = rect; in mt9m032_set_pad_crop()