Lines Matching defs:fmt

239 	const struct s2255_fmt	*fmt;
351 #define s2255_dev_err(dev, fmt, arg...) \
352 dev_err(dev, S2255_DRIVER_NAME " - " fmt, ##arg)
354 #define dprintk(dev, level, fmt, arg...) \
355 v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ## arg)
441 int fmt)
452 out[i] = (fmt == V4L2_PIX_FMT_YUYV) ? *pY++ : *pCr++;
453 out[i + 1] = (fmt == V4L2_PIX_FMT_YUYV) ? *pCr++ : *pY++;
454 out[i + 2] = (fmt == V4L2_PIX_FMT_YUYV) ? *pY++ : *pCb++;
455 out[i + 3] = (fmt == V4L2_PIX_FMT_YUYV) ? *pCb++ : *pY++;
607 switch (vc->fmt->fourcc) {
613 vc->fmt->fourcc);
652 sizes[0] = vc->width * vc->height * (vc->fmt->depth >> 3);
666 if (vc->fmt == NULL)
676 size = w * h * (vc->fmt->depth >> 3);
743 f->fmt.pix.width = vc->width;
744 f->fmt.pix.height = vc->height;
745 if (f->fmt.pix.height >=
747 f->fmt.pix.field = V4L2_FIELD_INTERLACED;
749 f->fmt.pix.field = V4L2_FIELD_TOP;
750 f->fmt.pix.pixelformat = vc->fmt->fourcc;
751 f->fmt.pix.bytesperline = f->fmt.pix.width * (vc->fmt->depth >> 3);
752 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline;
753 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
760 const struct s2255_fmt *fmt;
765 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
767 if (fmt == NULL)
771 __func__, is_ntsc, f->fmt.pix.width, f->fmt.pix.height);
774 if (f->fmt.pix.height >= NUM_LINES_1CIFS_NTSC * 2) {
775 f->fmt.pix.height = NUM_LINES_1CIFS_NTSC * 2;
778 f->fmt.pix.height = NUM_LINES_1CIFS_NTSC;
781 if (f->fmt.pix.width >= LINE_SZ_4CIFS_NTSC)
782 f->fmt.pix.width = LINE_SZ_4CIFS_NTSC;
784 f->fmt.pix.width = LINE_SZ_1CIFS_NTSC;
787 if (f->fmt.pix.height >= NUM_LINES_1CIFS_PAL * 2) {
788 f->fmt.pix.height = NUM_LINES_1CIFS_PAL * 2;
791 f->fmt.pix.height = NUM_LINES_1CIFS_PAL;
794 if (f->fmt.pix.width >= LINE_SZ_4CIFS_PAL)
795 f->fmt.pix.width = LINE_SZ_4CIFS_PAL;
797 f->fmt.pix.width = LINE_SZ_1CIFS_PAL;
799 f->fmt.pix.field = field;
800 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3;
801 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline;
802 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
804 f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.field);
812 const struct s2255_fmt *fmt;
822 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
824 if (fmt == NULL)
833 vc->fmt = fmt;
834 vc->width = f->fmt.pix.width;
835 vc->height = f->fmt.pix.height;
836 vc->field = f->fmt.pix.field;
851 switch (vc->fmt->fourcc) {
1354 const struct s2255_fmt *fmt;
1359 fmt = format_by_fourcc(fe->pixel_format);
1360 if (fmt == NULL)
1371 const struct s2255_fmt *fmt;
1381 fmt = format_by_fourcc(fe->pixel_format);
1382 if (fmt == NULL)
1477 vc->fmt = &formats[0];
2003 vc->fmt = &formats[0];