Home
last modified time | relevance | path

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

/drivers/media/common/saa7146/
Dsaa7146_video.c617 int maxw, maxh; in vidioc_try_fmt_vid_cap() local
628 maxh = vv->standard->v_max_out; in vidioc_try_fmt_vid_cap()
631 field = (f->fmt.pix.height > maxh / 2) in vidioc_try_fmt_vid_cap()
638 maxh = maxh / 2; in vidioc_try_fmt_vid_cap()
643 maxh = maxh / 2; in vidioc_try_fmt_vid_cap()
657 if (f->fmt.pix.height > maxh) in vidioc_try_fmt_vid_cap()
658 f->fmt.pix.height = maxh; in vidioc_try_fmt_vid_cap()
683 int maxw, maxh; in vidioc_try_fmt_vid_overlay() local
707 maxh = vv->standard->v_max_out; in vidioc_try_fmt_vid_overlay()
710 field = (win->w.height > maxh / 2) in vidioc_try_fmt_vid_overlay()
[all …]
/drivers/media/pci/tw68/
Dtw68-video.c594 unsigned int maxh; in tw68_try_fmt_vid_cap() local
601 maxh = (dev->tvnorm->id & V4L2_STD_525_60) ? 480 : 576; in tw68_try_fmt_vid_cap()
610 maxh = maxh * 2; in tw68_try_fmt_vid_cap()
613 field = (f->fmt.pix.height > maxh / 2) in tw68_try_fmt_vid_cap()
626 if (f->fmt.pix.height > maxh) in tw68_try_fmt_vid_cap()
627 f->fmt.pix.height = maxh; in tw68_try_fmt_vid_cap()
/drivers/media/platform/
Dfsl-viu.c601 unsigned int maxw, maxh; in vidioc_try_fmt_cap() local
611 maxh = norm_maxh(); in vidioc_try_fmt_cap()
616 if (f->fmt.pix.height > maxh) in vidioc_try_fmt_cap()
617 f->fmt.pix.height = maxh; in vidioc_try_fmt_cap()
662 int maxw, maxh; in verify_preview() local
673 maxh = dev->crop_current.height; in verify_preview()
676 field = (win->w.height > maxh/2) in verify_preview()
683 maxh = maxh / 2; in verify_preview()
694 if (win->w.height > maxh) in verify_preview()
695 win->w.height = maxh; in verify_preview()
/drivers/media/pci/saa7134/
Dsaa7134-video.c659 int maxw, maxh; in verify_preview() local
674 maxh = dev->crop_current.height; in verify_preview()
677 field = (win->w.height > maxh/2) in verify_preview()
684 maxh = maxh / 2; in verify_preview()
694 if (win->w.height > maxh) in verify_preview()
695 win->w.height = maxh; in verify_preview()
1301 unsigned int maxw, maxh; in saa7134_try_fmt_vid_cap() local
1309 maxh = min(dev->crop_current.height*4, dev->crop_bounds.height); in saa7134_try_fmt_vid_cap()
1312 field = (f->fmt.pix.height > maxh/2) in saa7134_try_fmt_vid_cap()
1319 maxh = maxh / 2; in saa7134_try_fmt_vid_cap()
[all …]
/drivers/media/pci/cx25821/
Dcx25821-video.c340 unsigned int maxh; in cx25821_vidioc_try_fmt_vid_cap() local
346 maxh = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_try_fmt_vid_cap()
353 f->fmt.pix.height = maxh / 4; in cx25821_vidioc_try_fmt_vid_cap()
356 f->fmt.pix.height = maxh / 2; in cx25821_vidioc_try_fmt_vid_cap()
359 f->fmt.pix.height = maxh; in cx25821_vidioc_try_fmt_vid_cap()
/drivers/media/usb/em28xx/
Dem28xx-video.c1390 unsigned int maxh = norm_maxh(dev); in size_to_scale() local
1396 *vscale = (((unsigned long)maxh) << 12) / height - 4096L; in size_to_scale()
1406 unsigned int maxh = norm_maxh(dev); in scale_to_size() local
1409 *height = (((unsigned long)maxh) << 12) / (vscale + 4096L); in scale_to_size()
1463 unsigned int maxh = norm_maxh(dev); in vidioc_try_fmt_vid_cap() local
1476 height = height > (3 * maxh / 4) ? maxh : maxh / 2; in vidioc_try_fmt_vid_cap()
1483 if (width == maxw && height == maxh) in vidioc_try_fmt_vid_cap()
1490 v4l_bound_align_image(&width, 48, maxw, 1, &height, 32, maxh, in vidioc_try_fmt_vid_cap()
2017 unsigned int maxh = norm_maxh(dev); in vidioc_enum_framesizes() local
2031 fsize->discrete.height = maxh / (1 + fsize->index); in vidioc_enum_framesizes()
[all …]
/drivers/media/pci/cx23885/
Dcx23885-video.c550 unsigned int maxw, maxh; in vidioc_try_fmt_vid_cap() local
558 maxh = norm_maxh(dev->tvnorm); in vidioc_try_fmt_vid_cap()
561 field = (f->fmt.pix.height > maxh/2) in vidioc_try_fmt_vid_cap()
569 maxh = maxh / 2; in vidioc_try_fmt_vid_cap()
582 &f->fmt.pix.height, 32, maxh, 0, 0); in vidioc_try_fmt_vid_cap()
/drivers/media/pci/cx88/
Dcx88-blackbird.c833 unsigned int maxw, maxh; in vidioc_try_fmt_vid_cap() local
842 maxh = norm_maxh(core->tvnorm); in vidioc_try_fmt_vid_cap()
854 field = (f->fmt.pix.height > maxh / 2) in vidioc_try_fmt_vid_cap()
860 maxh /= 2; in vidioc_try_fmt_vid_cap()
863 &f->fmt.pix.height, 32, maxh, 0, 0); in vidioc_try_fmt_vid_cap()
Dcx88-video.c731 unsigned int maxw, maxh; in vidioc_try_fmt_vid_cap() local
738 maxh = norm_maxh(core->tvnorm); in vidioc_try_fmt_vid_cap()
750 field = (f->fmt.pix.height > maxh / 2) in vidioc_try_fmt_vid_cap()
756 maxh /= 2; in vidioc_try_fmt_vid_cap()
759 &f->fmt.pix.height, 32, maxh, 0, 0); in vidioc_try_fmt_vid_cap()
/drivers/media/usb/cx231xx/
Dcx231xx-cards.c1403 unsigned int maxh, maxw; in cx231xx_init_dev() local
1467 maxh = norm_maxh(dev); in cx231xx_init_dev()
1471 dev->height = maxh; in cx231xx_init_dev()
Dcx231xx-video.c968 unsigned int maxh = norm_maxh(dev); in vidioc_try_fmt_vid_cap() local
980 v4l_bound_align_image(&width, 48, maxw, 1, &height, 32, maxh, 1, 0); in vidioc_try_fmt_vid_cap()