Lines Matching defs:format
1132 struct v4l2_format *format)
1135 int width = format->fmt.pix.width;
1136 int height = format->fmt.pix.height;
1138 /* If they are demanding a format other than the one we support,
1140 if (format->fmt.pix.pixelformat != V4L2_PIX_FMT_UYVY)
1143 /* format->fmt.pix.width only support 720 and height 480 */
1149 format->fmt.pix.width = width;
1150 format->fmt.pix.height = height;
1151 format->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY;
1152 format->fmt.pix.bytesperline = width * 2;
1153 format->fmt.pix.sizeimage = width * height * 2;
1154 format->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M;
1155 format->fmt.pix.field = V4L2_FIELD_INTERLACED;
1160 /* maybe set new image format, driver current only support 720*480 */
1581 struct v4l2_format *format)
1588 format->fmt.vbi.samples_per_line = dev->vbi_width;
1589 format->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY;
1590 format->fmt.vbi.offset = 0;
1591 format->fmt.vbi.flags = 0;
1592 format->fmt.vbi.sampling_rate = 6750000 * 4 / 2;
1594 format->fmt.vbi.count[0] = dev->vbi_height;
1595 format->fmt.vbi.count[1] = dev->vbi_height;
1596 format->fmt.vbi.start[0] = 21;
1597 format->fmt.vbi.start[1] = 284;
1598 memset(format->fmt.vbi.reserved, 0, sizeof(format->fmt.vbi.reserved));