Lines Matching defs:uformat

30 static const struct uvc_format_desc *to_uvc_format(struct uvcg_format *uformat)
36 if (uformat->type == UVCG_UNCOMPRESSED) {
37 unc = to_uvcg_uncompressed(&uformat->group.cg_item);
51 static int uvc_v4l2_get_bytesperline(struct uvcg_format *uformat,
56 if (uformat->type == UVCG_UNCOMPRESSED) {
57 u = to_uvcg_uncompressed(&uformat->group.cg_item);
67 static int uvc_get_frame_size(struct uvcg_format *uformat,
70 unsigned int bpl = uvc_v4l2_get_bytesperline(uformat, uframe);
79 struct uvcg_format *uformat = NULL;
84 uformat = format->fmt;
90 return uformat;
94 struct uvcg_format *uformat,
102 if (format->fmt->type != uformat->type)
119 struct uvcg_format *uformat = NULL;
125 uformat = format->fmt;
130 return uformat;
134 struct uvcg_format *uformat,
150 if (format->fmt->type != uformat->type)
241 struct uvcg_format *uformat;
254 uformat = find_format_by_pix(uvc, fmt->fmt.pix.pixelformat);
255 if (!uformat)
258 uframe = find_closest_frame_by_size(uvc, uformat,
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;
302 struct uvcg_format *uformat = NULL;
306 uformat = find_format_by_pix(uvc, fival->pixel_format);
307 if (!uformat)
310 list_for_each_entry(frame, &uformat->frames, entry) {
341 struct uvcg_format *uformat = NULL;
344 uformat = find_format_by_pix(uvc, fsize->pixel_format);
345 if (!uformat)
348 if (fsize->index >= uformat->num_frames)
351 uframe = find_frame_by_index(uvc, uformat, fsize->index + 1);
368 struct uvcg_format *uformat;
373 uformat = find_format_by_index(uvc, f->index + 1);
374 if (!uformat)
377 fmtdesc = to_uvc_format(uformat);