Lines Matching defs:format

94  * @format: pixel format, fixed UYVY
123 struct v4l2_pix_format format;
218 if (vip->format.field == V4L2_FIELD_INTERLACED)
219 offset = vip->format.width * 2;
263 sizes[0] = vip->format.sizeimage;
289 size = vip->format.sizeimage;
441 vip->format = formats_60[0];
443 vip->format = formats_50[0];
543 * vidioc_enum_fmt_vid_cap - return video capture format
546 * @f: returned format information
548 * returns name and format of video capture
565 * vidioc_try_fmt_vid_cap - set video capture format
568 * @f: new format
570 * new video format is set which includes width and
577 * -EINVAL, pixel or field format not supported
587 v4l2_warn(&vip->v4l2_dev, "Invalid format, only UYVY supported\n");
613 /* It is the only supported format */
628 * vidioc_s_fmt_vid_cap - set current video format parameters
631 * @f: returned format information
633 * set new capture format
650 /* Can't change format during acquisition */
654 vip->format = f->fmt.pix;
655 switch (vip->format.field) {
657 t_stop = ((vip->format.height / 2 - 1) << 16) |
658 (2 * vip->format.width - 1);
660 pitch = 4 * vip->format.width;
663 t_stop = ((vip->format.height - 1) << 16) |
664 (2 * vip->format.width - 1);
665 b_stop = (0 << 16) | (2 * vip->format.width - 1);
666 pitch = 2 * vip->format.width;
669 t_stop = (0 << 16) | (2 * vip->format.width - 1);
670 b_stop = (vip->format.height << 16) |
671 (2 * vip->format.width - 1);
672 pitch = 2 * vip->format.width;
675 v4l2_err(&vip->v4l2_dev, "unknown field format\n");
696 * vidioc_g_fmt_vid_cap - get current video format parameters
699 * @f: contains format information
701 * returns current video format parameters
710 f->fmt.pix = vip->format;
1020 vip->format = formats_50[0];