Lines Matching defs:format
223 struct uvc_streaming *streaming, struct uvc_format *format,
237 format->type = buffer[2];
238 format->index = buffer[3];
239 format->frames = frames;
253 /* Find the format descriptor from its GUID. */
262 "Unknown video format %pUl\n", &buffer[5]);
266 format->fcc = fmtdesc->fcc;
267 format->bpp = buffer[21];
270 * Some devices report a format that doesn't match what they
274 if (format->fcc == V4L2_PIX_FMT_YUYV) {
275 format->fcc = V4L2_PIX_FMT_GREY;
276 format->bpp = 8;
281 /* Some devices report bpp that doesn't match the format. */
284 v4l2_format_info(format->fcc);
293 format->bpp = DIV_ROUND_UP(8 * n, div);
302 format->flags = UVC_FMT_FLAG_COMPRESSED;
315 format->fcc = V4L2_PIX_FMT_MJPEG;
316 format->flags = UVC_FMT_FLAG_COMPRESSED;
317 format->bpp = 0;
332 "device %d videostreaming interface %d: unknown DV format %u\n",
338 format->fcc = V4L2_PIX_FMT_DV;
339 format->flags = UVC_FMT_FLAG_COMPRESSED | UVC_FMT_FLAG_STREAM;
340 format->bpp = 0;
350 format->nframes = 1;
358 "device %d videostreaming interface %d unsupported format %u\n",
364 uvc_dbg(dev, DESCR, "Found format %p4cc", &format->fcc);
377 frame = &frames[format->nframes];
442 if (!(format->flags & UVC_FMT_FLAG_COMPRESSED))
443 frame->dwMaxVideoFrameBufferSize = format->bpp
473 format->nframes++;
496 format->colorspace = uvc_colorspace(buffer[3]);
497 format->xfer_func = uvc_xfer_func(buffer[4]);
498 format->ycbcr_enc = uvc_ycbcr_enc(buffer[5]);
503 format->colorspace = V4L2_COLORSPACE_SRGB;
513 struct uvc_format *format;
637 /* Count the format and frame descriptors. */
648 * DV format has no frame descriptor. We will create a
689 size = nformats * sizeof(*format) + nframes * sizeof(*frame)
691 format = kzalloc(size, GFP_KERNEL);
692 if (format == NULL) {
697 frame = (struct uvc_frame *)&format[nformats];
700 streaming->formats = format;
703 /* Parse the format descriptors. */
710 ret = uvc_parse_format(dev, streaming, format, frame,
718 frame += format->nframes;
719 format++;