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)
770 field = f->fmt.pix.field;
773 __func__, is_ntsc, f->fmt.pix.width, f->fmt.pix.height);
776 if (f->fmt.pix.height >= NUM_LINES_1CIFS_NTSC * 2) {
777 f->fmt.pix.height = NUM_LINES_1CIFS_NTSC * 2;
780 f->fmt.pix.height = NUM_LINES_1CIFS_NTSC;
783 if (f->fmt.pix.width >= LINE_SZ_4CIFS_NTSC)
784 f->fmt.pix.width = LINE_SZ_4CIFS_NTSC;
786 f->fmt.pix.width = LINE_SZ_1CIFS_NTSC;
789 if (f->fmt.pix.height >= NUM_LINES_1CIFS_PAL * 2) {
790 f->fmt.pix.height = NUM_LINES_1CIFS_PAL * 2;
793 f->fmt.pix.height = NUM_LINES_1CIFS_PAL;
796 if (f->fmt.pix.width >= LINE_SZ_4CIFS_PAL)
797 f->fmt.pix.width = LINE_SZ_4CIFS_PAL;
799 f->fmt.pix.width = LINE_SZ_1CIFS_PAL;
801 f->fmt.pix.field = field;
802 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3;
803 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline;
804 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
806 f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.field);
814 const struct s2255_fmt *fmt;
824 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
826 if (fmt == NULL)
835 vc->fmt = fmt;
836 vc->width = f->fmt.pix.width;
837 vc->height = f->fmt.pix.height;
838 vc->field = f->fmt.pix.field;
853 switch (vc->fmt->fourcc) {
1356 const struct s2255_fmt *fmt;
1361 fmt = format_by_fourcc(fe->pixel_format);
1362 if (fmt == NULL)
1373 const struct s2255_fmt *fmt;
1383 fmt = format_by_fourcc(fe->pixel_format);
1384 if (fmt == NULL)
1479 vc->fmt = &formats[0];
2005 vc->fmt = &formats[0];