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