• Home
  • Raw
  • Download

Lines Matching refs:fmt

101 	struct v4l2_format *fmt, struct uvc_streaming_control *probe,  in uvc_v4l2_try_format()  argument
113 if (fmt->type != video->streaming->type) in uvc_v4l2_try_format()
116 fcc = (__u8 *)&fmt->fmt.pix.pixelformat; in uvc_v4l2_try_format()
118 fmt->fmt.pix.pixelformat, in uvc_v4l2_try_format()
120 fmt->fmt.pix.width, fmt->fmt.pix.height); in uvc_v4l2_try_format()
125 if (format->fcc == fmt->fmt.pix.pixelformat) in uvc_v4l2_try_format()
129 if (format == NULL || format->fcc != fmt->fmt.pix.pixelformat) { in uvc_v4l2_try_format()
131 fmt->fmt.pix.pixelformat); in uvc_v4l2_try_format()
139 rw = fmt->fmt.pix.width; in uvc_v4l2_try_format()
140 rh = fmt->fmt.pix.height; in uvc_v4l2_try_format()
160 fmt->fmt.pix.width, fmt->fmt.pix.height); in uvc_v4l2_try_format()
196 fmt->fmt.pix.width = frame->wWidth; in uvc_v4l2_try_format()
197 fmt->fmt.pix.height = frame->wHeight; in uvc_v4l2_try_format()
198 fmt->fmt.pix.field = V4L2_FIELD_NONE; in uvc_v4l2_try_format()
199 fmt->fmt.pix.bytesperline = format->bpp * frame->wWidth / 8; in uvc_v4l2_try_format()
200 fmt->fmt.pix.sizeimage = probe->dwMaxVideoFrameSize; in uvc_v4l2_try_format()
201 fmt->fmt.pix.colorspace = format->colorspace; in uvc_v4l2_try_format()
202 fmt->fmt.pix.priv = 0; in uvc_v4l2_try_format()
214 struct v4l2_format *fmt) in uvc_v4l2_get_format() argument
219 if (fmt->type != video->streaming->type) in uvc_v4l2_get_format()
225 fmt->fmt.pix.pixelformat = format->fcc; in uvc_v4l2_get_format()
226 fmt->fmt.pix.width = frame->wWidth; in uvc_v4l2_get_format()
227 fmt->fmt.pix.height = frame->wHeight; in uvc_v4l2_get_format()
228 fmt->fmt.pix.field = V4L2_FIELD_NONE; in uvc_v4l2_get_format()
229 fmt->fmt.pix.bytesperline = format->bpp * frame->wWidth / 8; in uvc_v4l2_get_format()
230 fmt->fmt.pix.sizeimage = video->streaming->ctrl.dwMaxVideoFrameSize; in uvc_v4l2_get_format()
231 fmt->fmt.pix.colorspace = format->colorspace; in uvc_v4l2_get_format()
232 fmt->fmt.pix.priv = 0; in uvc_v4l2_get_format()
238 struct v4l2_format *fmt) in uvc_v4l2_set_format() argument
245 if (fmt->type != video->streaming->type) in uvc_v4l2_set_format()
251 ret = uvc_v4l2_try_format(video, fmt, &probe, &format, &frame); in uvc_v4l2_set_format()
674 struct v4l2_fmtdesc *fmt = arg; in uvc_v4l2_do_ioctl() local
677 if (fmt->type != video->streaming->type || in uvc_v4l2_do_ioctl()
678 fmt->index >= video->streaming->nformats) in uvc_v4l2_do_ioctl()
681 format = &video->streaming->format[fmt->index]; in uvc_v4l2_do_ioctl()
682 fmt->flags = 0; in uvc_v4l2_do_ioctl()
684 fmt->flags |= V4L2_FMT_FLAG_COMPRESSED; in uvc_v4l2_do_ioctl()
685 strncpy(fmt->description, format->name, in uvc_v4l2_do_ioctl()
686 sizeof fmt->description); in uvc_v4l2_do_ioctl()
687 fmt->description[sizeof fmt->description - 1] = 0; in uvc_v4l2_do_ioctl()
688 fmt->pixelformat = format->fcc; in uvc_v4l2_do_ioctl()