Lines Matching defs:formats
383 /* image formats. */
384 /* JPEG formats must be defined last to support jpeg_enable parameter */
385 static const struct s2255_fmt formats[] = {
572 for (i = 0; i < ARRAY_SIZE(formats); i++) {
573 if (-1 == formats[i].fourcc)
575 if (!jpeg_enable && ((formats[i].fourcc == V4L2_PIX_FMT_JPEG) ||
576 (formats[i].fourcc == V4L2_PIX_FMT_MJPEG)))
578 if (formats[i].fourcc == fourcc)
579 return formats + i;
728 if (index >= ARRAY_SIZE(formats))
730 if (!jpeg_enable && ((formats[index].fourcc == V4L2_PIX_FMT_JPEG) ||
731 (formats[index].fourcc == V4L2_PIX_FMT_MJPEG)))
733 f->pixelformat = formats[index].fourcc;
1477 vc->fmt = &formats[0];
2003 vc->fmt = &formats[0];