Home
last modified time | relevance | path

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

/linux/drivers/media/usb/stk1160/
A Dstk1160-v4l.c372 unsigned int base_width, base_height; in stk1160_try_fmt() local
377 base_width = 720; in stk1160_try_fmt()
382 base_width / 20, base_width); in stk1160_try_fmt()
391 f->fmt.pix.width = base_width; in stk1160_try_fmt()
396 if (width < base_width && width > base_width / 2) { in stk1160_try_fmt()
407 col_n = div_round_integer(width, base_width - width); in stk1160_try_fmt()
411 f->fmt.pix.width = (base_width * col_n) / (col_n + 1); in stk1160_try_fmt()
414 } else if (width <= base_width / 2) { in stk1160_try_fmt()
426 col_n = div_round_integer(base_width, width) - 1; in stk1160_try_fmt()
430 f->fmt.pix.width = base_width / (col_n + 1); in stk1160_try_fmt()

Completed in 4 milliseconds