• 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

136  * given frame format and size. This should be done by the device as part of
176 struct uvc_format *format = NULL;
189 uvc_trace(UVC_TRACE_FORMAT, "Trying format 0x%08x (%c%c%c%c): %ux%u.\n",
194 /* Check if the hardware supports the requested format. */
196 format = &stream->format[i];
197 if (format->fcc == fmt->fmt.pix.pixelformat)
201 if (format == NULL || format->fcc != fmt->fmt.pix.pixelformat) {
202 uvc_trace(UVC_TRACE_FORMAT, "Unsupported format 0x%08x.\n",
215 for (i = 0; i < format->nframes; ++i) {
216 __u16 w = format->frame[i].wWidth;
217 __u16 h = format->frame[i].wHeight;
223 frame = &format->frame[i];
242 /* Set the format index, frame index and frame interval. */
245 probe->bFormatIndex = format->index;
260 fmt->fmt.pix.bytesperline = format->bpp * frame->wWidth / 8;
262 fmt->fmt.pix.colorspace = format->colorspace;
266 *uvc_format = format;
277 struct uvc_format *format = stream->cur_format;
283 if (format == NULL || frame == NULL)
286 fmt->fmt.pix.pixelformat = format->fcc;
290 fmt->fmt.pix.bytesperline = format->bpp * frame->wWidth / 8;
292 fmt->fmt.pix.colorspace = format->colorspace;
302 struct uvc_format *format;
312 ret = uvc_v4l2_try_format(stream, fmt, &probe, &format, &frame);
317 stream->cur_format = format;
747 /* Try, Get, Set & Enum format */
751 struct uvc_format *format;
763 format = &stream->format[fmt->index];
765 if (format->flags & UVC_FMT_FLAG_COMPRESSED)
767 strlcpy(fmt->description, format->name,
770 fmt->pixelformat = format->fcc;
794 struct uvc_format *format = NULL;
798 /* Look for the given pixel format */
800 if (stream->format[i].fcc ==
802 format = &stream->format[i];
806 if (format == NULL)
809 if (fsize->index >= format->nframes)
812 frame = &format->frame[fsize->index];
823 struct uvc_format *format = NULL;
827 /* Look for the given pixel format and frame size */
829 if (stream->format[i].fcc ==
831 format = &stream->format[i];
835 if (format == NULL)
838 for (i = 0; i < format->nframes; i++) {
839 if (format->frame[i].wWidth == fival->width &&
840 format->frame[i].wHeight == fival->height) {
841 frame = &format->frame[i];