Lines Matching defs:format
93 * @format: pixel format, fixed UYVY
122 struct v4l2_pix_format format;
217 if (vip->format.field == V4L2_FIELD_INTERLACED)
218 offset = vip->format.width * 2;
262 sizes[0] = vip->format.sizeimage;
288 size = vip->format.sizeimage;
444 vip->format = formats_60[0];
446 vip->format = formats_50[0];
546 * vidioc_enum_fmt_vid_cap - return video capture format
549 * @f: returned format information
551 * returns name and format of video capture
568 * vidioc_try_fmt_vid_cap - set video capture format
571 * @f: new format
573 * new video format is set which includes width and
580 * -EINVAL, pixel or field format not supported
590 v4l2_warn(&vip->v4l2_dev, "Invalid format, only UYVY supported\n");
616 /* It is the only supported format */
631 * vidioc_s_fmt_vid_cap - set current video format parameters
634 * @f: returned format information
636 * set new capture format
653 /* Can't change format during acquisition */
657 vip->format = f->fmt.pix;
658 switch (vip->format.field) {
660 t_stop = ((vip->format.height / 2 - 1) << 16) |
661 (2 * vip->format.width - 1);
663 pitch = 4 * vip->format.width;
666 t_stop = ((vip->format.height - 1) << 16) |
667 (2 * vip->format.width - 1);
668 b_stop = (0 << 16) | (2 * vip->format.width - 1);
669 pitch = 2 * vip->format.width;
672 t_stop = (0 << 16) | (2 * vip->format.width - 1);
673 b_stop = (vip->format.height << 16) |
674 (2 * vip->format.width - 1);
675 pitch = 2 * vip->format.width;
678 v4l2_err(&vip->v4l2_dev, "unknown field format\n");
699 * vidioc_g_fmt_vid_cap - get current video format parameters
702 * @f: contains format information
704 * returns current video format parameters
713 f->fmt.pix = vip->format;
1020 vip->format = formats_50[0];