Lines Matching full:formats
26 /* stream formats */
33 static const struct vivid_format formats[] = { variable
451 if (f->index >= ARRAY_SIZE(formats)) in vidioc_enum_fmt_sdr_cap()
453 f->pixelformat = formats[f->index].pixelformat; in vidioc_enum_fmt_sdr_cap()
475 for (i = 0; i < ARRAY_SIZE(formats); i++) { in vidioc_s_fmt_sdr_cap()
476 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_s_fmt_sdr_cap()
477 dev->sdr_pixelformat = formats[i].pixelformat; in vidioc_s_fmt_sdr_cap()
478 dev->sdr_buffersize = formats[i].buffersize; in vidioc_s_fmt_sdr_cap()
479 f->fmt.sdr.buffersize = formats[i].buffersize; in vidioc_s_fmt_sdr_cap()
483 dev->sdr_pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap()
484 dev->sdr_buffersize = formats[0].buffersize; in vidioc_s_fmt_sdr_cap()
485 f->fmt.sdr.pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap()
486 f->fmt.sdr.buffersize = formats[0].buffersize; in vidioc_s_fmt_sdr_cap()
494 for (i = 0; i < ARRAY_SIZE(formats); i++) { in vidioc_try_fmt_sdr_cap()
495 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_try_fmt_sdr_cap()
496 f->fmt.sdr.buffersize = formats[i].buffersize; in vidioc_try_fmt_sdr_cap()
500 f->fmt.sdr.pixelformat = formats[0].pixelformat; in vidioc_try_fmt_sdr_cap()
501 f->fmt.sdr.buffersize = formats[0].buffersize; in vidioc_try_fmt_sdr_cap()