Lines Matching defs:fmt

52 #define em28xx_videodbg(fmt, arg...) do {				\
55 "video: %s: " fmt, __func__, ## arg); \
58 #define em28xx_isocdbg(fmt, arg...) do {\
61 "isoc: %s: " fmt, __func__, ## arg); \
205 u8 fmt, vinctrl;
208 fmt = v4l2->format->reg;
210 fmt |= 0x20;
220 ret = em28xx_write_reg(dev, EM28XX_R27_OUTFMT, fmt);
1418 f->fmt.pix.width = v4l2->width;
1419 f->fmt.pix.height = v4l2->height;
1420 f->fmt.pix.pixelformat = v4l2->format->fourcc;
1421 f->fmt.pix.bytesperline = (v4l2->width * v4l2->format->depth + 7) >> 3;
1422 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * v4l2->height;
1423 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
1427 f->fmt.pix.field = V4L2_FIELD_NONE;
1429 f->fmt.pix.field = v4l2->interlaced_fieldmode ?
1450 unsigned int width = f->fmt.pix.width;
1451 unsigned int height = f->fmt.pix.height;
1455 struct em28xx_fmt *fmt;
1457 fmt = format_by_fourcc(f->fmt.pix.pixelformat);
1458 if (!fmt) {
1459 fmt = &format[0];
1461 f->fmt.pix.pixelformat, fmt->fourcc);
1492 f->fmt.pix.width = width;
1493 f->fmt.pix.height = height;
1494 f->fmt.pix.pixelformat = fmt->fourcc;
1495 f->fmt.pix.bytesperline = (width * fmt->depth + 7) >> 3;
1496 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * height;
1497 f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
1499 f->fmt.pix.field = V4L2_FIELD_NONE;
1501 f->fmt.pix.field = v4l2->interlaced_fieldmode ?
1510 struct em28xx_fmt *fmt;
1513 fmt = format_by_fourcc(fourcc);
1514 if (!fmt)
1517 v4l2->format = fmt;
1541 return em28xx_set_video_format(dev, f->fmt.pix.pixelformat,
1542 f->fmt.pix.width, f->fmt.pix.height);
1578 f.fmt.pix.width = 720;
1579 f.fmt.pix.height = (norm & V4L2_STD_525_60) ? 480 : 576;
1583 v4l2->width = f.fmt.pix.width;
1584 v4l2->height = f.fmt.pix.height;
2005 struct em28xx_fmt *fmt;
2009 fmt = format_by_fourcc(fsize->pixel_format);
2010 if (!fmt) {
2051 format->fmt.vbi.samples_per_line = v4l2->vbi_width;
2052 format->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY;
2053 format->fmt.vbi.offset = 0;
2054 format->fmt.vbi.flags = 0;
2055 format->fmt.vbi.sampling_rate = 6750000 * 4 / 2;
2056 format->fmt.vbi.count[0] = v4l2->vbi_height;
2057 format->fmt.vbi.count[1] = v4l2->vbi_height;
2058 memset(format->fmt.vbi.reserved, 0, sizeof(format->fmt.vbi.reserved));
2063 format->fmt.vbi.start[0] = 10;
2064 format->fmt.vbi.start[1] = 273;
2067 format->fmt.vbi.start[0] = 6;
2068 format->fmt.vbi.start[1] = 318;