Lines Matching refs:height

277 				    u16 width, u16 height)  in em28xx_capture_area_set()  argument
280 u8 cheight = height >> 2; in em28xx_capture_area_set()
281 u8 overflow = (height >> 9 & 0x02) | (width >> 10 & 0x01); in em28xx_capture_area_set()
299 em28xx_write_reg(dev, 0x35, height >> 4); in em28xx_capture_area_set()
332 int height = norm_maxh(dev); in em28xx_resolution_set() local
343 em28xx_accumulator_set(dev, 1, (width - 4) >> 2, 1, (height - 4) >> 2); in em28xx_resolution_set()
353 em28xx_capture_area_set(dev, 0, 2, width, height); in em28xx_resolution_set()
355 em28xx_capture_area_set(dev, 0, 0, width, height); in em28xx_resolution_set()
383 if (v4l2->width * 2 * v4l2->height > 720 * 240 * 2) in em28xx_set_alternate()
887 (v4l2->width * v4l2->height * v4l2->format->depth + 7) >> 3; in queue_setup()
911 size = (v4l2->width * v4l2->height * v4l2->format->depth + 7) >> 3; in buffer_prepare()
1208 unsigned int width, unsigned int height, in size_to_scale() argument
1218 *vscale = (((unsigned long)maxh) << 12) / height - 4096L; in size_to_scale()
1225 unsigned int *width, unsigned int *height) in scale_to_size() argument
1231 *height = (((unsigned long)maxh) << 12) / (vscale + 4096L); in scale_to_size()
1245 f->fmt.pix.height = v4l2->height; in vidioc_g_fmt_vid_cap()
1248 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * v4l2->height; in vidioc_g_fmt_vid_cap()
1277 unsigned int height = f->fmt.pix.height; in vidioc_try_fmt_vid_cap() local
1292 height = height > (3 * maxh / 4) ? maxh : maxh / 2; in vidioc_try_fmt_vid_cap()
1299 if (width == maxw && height == maxh) in vidioc_try_fmt_vid_cap()
1304 v4l_bound_align_image(&width, 48, maxw, 1, &height, 32, maxh, in vidioc_try_fmt_vid_cap()
1308 size_to_scale(dev, width, height, &hscale, &vscale); in vidioc_try_fmt_vid_cap()
1309 scale_to_size(dev, hscale, vscale, &width, &height); in vidioc_try_fmt_vid_cap()
1312 f->fmt.pix.height = height; in vidioc_try_fmt_vid_cap()
1315 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * height; in vidioc_try_fmt_vid_cap()
1328 unsigned width, unsigned height) in em28xx_set_video_format() argument
1339 v4l2->height = height; in em28xx_set_video_format()
1342 size_to_scale(dev, v4l2->width, v4l2->height, in em28xx_set_video_format()
1362 f->fmt.pix.width, f->fmt.pix.height); in vidioc_s_fmt_vid_cap()
1399 f.fmt.pix.height = (norm & V4L2_STD_525_60) ? 480 : 576; in vidioc_s_std()
1404 v4l2->height = f.fmt.pix.height; in vidioc_s_std()
1405 size_to_scale(dev, v4l2->width, v4l2->height, in vidioc_s_std()
1772 fsize->discrete.height = maxh / (1 + fsize->index); in vidioc_enum_framesizes()