• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/uvc/

Lines Matching defs:format

19  * mmap capture method only, and doesn't do any image format conversion in
289 struct uvc_streaming *streaming, struct uvc_format *format,
301 format->type = buffer[2];
302 format->index = buffer[3];
316 /* Find the format descriptor from its GUID. */
320 strlcpy(format->name, fmtdesc->name,
321 sizeof format->name);
322 format->fcc = fmtdesc->fcc;
324 uvc_printk(KERN_INFO, "Unknown video format %pUl\n",
326 snprintf(format->name, sizeof(format->name), "%pUl\n",
328 format->fcc = 0;
331 format->bpp = buffer[21];
337 format->flags = UVC_FMT_FLAG_COMPRESSED;
350 strlcpy(format->name, "MJPEG", sizeof format->name);
351 format->fcc = V4L2_PIX_FMT_MJPEG;
352 format->flags = UVC_FMT_FLAG_COMPRESSED;
353 format->bpp = 0;
368 strlcpy(format->name, "SD-DV", sizeof format->name);
371 strlcpy(format->name, "SDL-DV", sizeof format->name);
374 strlcpy(format->name, "HD-DV", sizeof format->name);
378 "interface %d: unknown DV format %u\n",
384 strlcat(format->name, buffer[8] & (1 << 7) ? " 60Hz" : " 50Hz",
385 sizeof format->name);
387 format->fcc = V4L2_PIX_FMT_DV;
388 format->flags = UVC_FMT_FLAG_COMPRESSED | UVC_FMT_FLAG_STREAM;
389 format->bpp = 0;
393 frame = &format->frame[0];
394 memset(&format->frame[0], 0, sizeof format->frame[0]);
399 format->nframes = 1;
407 "interface %d unsupported format %u\n",
413 uvc_trace(UVC_TRACE_DESCR, "Found format %s.\n", format->name);
423 frame = &format->frame[format->nframes];
466 if (!(format->flags & UVC_FMT_FLAG_COMPRESSED))
467 frame->dwMaxVideoFrameBufferSize = format->bpp
500 format->nframes++;
521 format->colorspace = uvc_colorspace(buffer[3]);
534 struct uvc_format *format;
659 /* Count the format and frame descriptors. */
669 /* DV format has no frame descriptor. We will create a
710 size = nformats * sizeof *format + nframes * sizeof *frame
712 format = kzalloc(size, GFP_KERNEL);
713 if (format == NULL) {
718 frame = (struct uvc_frame *)&format[nformats];
721 streaming->format = format;
724 /* Parse the format descriptors. */
731 format->frame = frame;
732 ret = uvc_parse_format(dev, streaming, format,
737 frame += format->nframes;
738 format++;
778 kfree(streaming->format);
1590 kfree(streaming->format);