Lines Matching refs:pix

93 	struct v4l2_pix_format *pix = &vv->video_fmt;  in saa7146_pgtable_build()  local
94 struct saa7146_format *sfmt = saa7146_format_by_fourcc(dev, pix->pixelformat); in saa7146_pgtable_build()
106 int size = pix->width * pix->height; in saa7146_pgtable_build()
345 f->fmt.pix = vv->video_fmt; in vidioc_g_fmt_vid_cap()
369 fmt = saa7146_format_by_fourcc(dev, f->fmt.pix.pixelformat); in vidioc_try_fmt_vid_cap()
373 field = f->fmt.pix.field; in vidioc_try_fmt_vid_cap()
378 field = (f->fmt.pix.height > maxh / 2) in vidioc_try_fmt_vid_cap()
393 f->fmt.pix.field = field; in vidioc_try_fmt_vid_cap()
394 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; in vidioc_try_fmt_vid_cap()
395 if (f->fmt.pix.width < 48) in vidioc_try_fmt_vid_cap()
396 f->fmt.pix.width = 48; in vidioc_try_fmt_vid_cap()
397 if (f->fmt.pix.height < 32) in vidioc_try_fmt_vid_cap()
398 f->fmt.pix.height = 32; in vidioc_try_fmt_vid_cap()
399 if (f->fmt.pix.width > maxw) in vidioc_try_fmt_vid_cap()
400 f->fmt.pix.width = maxw; in vidioc_try_fmt_vid_cap()
401 if (f->fmt.pix.height > maxh) in vidioc_try_fmt_vid_cap()
402 f->fmt.pix.height = maxh; in vidioc_try_fmt_vid_cap()
404 calc_bpl = (f->fmt.pix.width * fmt->depth) / 8; in vidioc_try_fmt_vid_cap()
406 if (f->fmt.pix.bytesperline < calc_bpl) in vidioc_try_fmt_vid_cap()
407 f->fmt.pix.bytesperline = calc_bpl; in vidioc_try_fmt_vid_cap()
409 if (f->fmt.pix.bytesperline > (2 * PAGE_SIZE * fmt->depth) / 8) /* arbitrary constraint */ in vidioc_try_fmt_vid_cap()
410 f->fmt.pix.bytesperline = calc_bpl; in vidioc_try_fmt_vid_cap()
412 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; in vidioc_try_fmt_vid_cap()
414 f->fmt.pix.width, f->fmt.pix.height, in vidioc_try_fmt_vid_cap()
415 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); in vidioc_try_fmt_vid_cap()
434 switch (f->fmt.pix.field) { in vidioc_s_fmt_vid_cap()
442 vv->video_fmt = f->fmt.pix; in vidioc_s_fmt_vid_cap()