Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/usb/stk1160/
Dstk1160-v4l.c389 unsigned int base_width, base_height; in stk1160_try_fmt() local
395 base_height = (dev->norm & V4L2_STD_525_60) ? 480 : 576; in stk1160_try_fmt()
401 base_height / 20, base_height); in stk1160_try_fmt()
409 f->fmt.pix.height = base_height; in stk1160_try_fmt()
451 if (height < base_height && height > base_height / 2) { in stk1160_try_fmt()
452 row_n = div_round_integer(height, base_height - height); in stk1160_try_fmt()
456 f->fmt.pix.height = (base_height * row_n) / (row_n + 1); in stk1160_try_fmt()
459 } else if (height <= base_height / 2) { in stk1160_try_fmt()
460 row_n = div_round_integer(base_height, height) - 1; in stk1160_try_fmt()
464 f->fmt.pix.height = base_height / (row_n + 1); in stk1160_try_fmt()