Lines Matching refs:fmt

84 			uformat = format->fmt;
102 if (format->fmt->type != uformat->type)
104 list_for_each_entry(frame, &format->fmt->frames, entry) {
122 const struct uvc_format_desc *fmtdesc = to_uvc_format(format->fmt);
125 uformat = format->fmt;
150 if (format->fmt->type != uformat->type)
153 list_for_each_entry(frame, &format->fmt->frames, entry) {
217 uvc_v4l2_get_format(struct file *file, void *fh, struct v4l2_format *fmt)
223 fmt->fmt.pix.pixelformat = video->fcc;
224 fmt->fmt.pix.width = video->width;
225 fmt->fmt.pix.height = video->height;
226 fmt->fmt.pix.field = V4L2_FIELD_NONE;
227 fmt->fmt.pix.bytesperline = video->bpp * video->width / 8;
228 fmt->fmt.pix.sizeimage = video->imagesize;
229 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB;
230 fmt->fmt.pix.priv = 0;
236 uvc_v4l2_try_format(struct file *file, void *fh, struct v4l2_format *fmt)
245 if (fmt->type != video->queue.queue.type)
248 fcc = (u8 *)&fmt->fmt.pix.pixelformat;
250 fmt->fmt.pix.pixelformat,
252 fmt->fmt.pix.width, fmt->fmt.pix.height);
254 uformat = find_format_by_pix(uvc, fmt->fmt.pix.pixelformat);
259 fmt->fmt.pix.width, fmt->fmt.pix.height);
263 fmt->fmt.pix.width = uframe->frame.w_width;
264 fmt->fmt.pix.height = uframe->frame.w_height;
265 fmt->fmt.pix.field = V4L2_FIELD_NONE;
266 fmt->fmt.pix.bytesperline = uvc_v4l2_get_bytesperline(uformat, uframe);
267 fmt->fmt.pix.sizeimage = uvc_get_frame_size(uformat, uframe);
268 fmt->fmt.pix.pixelformat = to_uvc_format(uformat)->fcc;
269 fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB;
270 fmt->fmt.pix.priv = 0;
276 uvc_v4l2_set_format(struct file *file, void *fh, struct v4l2_format *fmt)
283 ret = uvc_v4l2_try_format(file, fh, fmt);
287 video->fcc = fmt->fmt.pix.pixelformat;
288 video->bpp = fmt->fmt.pix.bytesperline * 8 / video->width;
289 video->width = fmt->fmt.pix.width;
290 video->height = fmt->fmt.pix.height;
291 video->imagesize = fmt->fmt.pix.sizeimage;