Lines Matching defs:format
1100 struct v4l2_format *format)
1103 int width = format->fmt.pix.width;
1104 int height = format->fmt.pix.height;
1110 if (format->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
1113 /* If they are demanding a format other than the one we support,
1115 if (format->fmt.pix.pixelformat != V4L2_PIX_FMT_UYVY)
1118 /* format->fmt.pix.width only support 720 and height 480 */
1124 format->fmt.pix.width = width;
1125 format->fmt.pix.height = height;
1126 format->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY;
1127 format->fmt.pix.bytesperline = width * 2;
1128 format->fmt.pix.sizeimage = width * height * 2;
1129 format->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
1130 format->fmt.pix.field = V4L2_FIELD_INTERLACED;
1135 /* maybe set new image format, driver current only support 720*480 */
1491 struct v4l2_format *format)
1496 format->fmt.vbi.samples_per_line = dev->vbi_width;
1497 format->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY;
1498 format->fmt.vbi.offset = 0;
1499 format->fmt.vbi.flags = 0;
1500 format->fmt.vbi.sampling_rate = 6750000 * 4 / 2;
1502 format->fmt.vbi.count[0] = dev->vbi_height;
1503 format->fmt.vbi.count[1] = dev->vbi_height;
1504 format->fmt.vbi.start[0] = 21;
1505 format->fmt.vbi.start[1] = 284;