*/
if (mp->num_planes != planes)
return -EINVAL;
- vfmt = get_format(dev, mp->pixelformat);
+ vfmt = vivid_get_format(dev, mp->pixelformat);
for (p = 0; p < planes; p++) {
sizes[p] = mp->plane_fmt[p].sizeimage;
if (sizes[0] < tpg_g_bytesperline(&dev->tpg, 0) * h +
unsigned w, h;
unsigned p;
- fmt = get_format(dev, mp->pixelformat);
+ fmt = vivid_get_format(dev, mp->pixelformat);
if (!fmt) {
dprintk(dev, 1, "Fourcc format (0x%08x) unknown.\n",
mp->pixelformat);
mp->pixelformat = V4L2_PIX_FMT_YUYV;
- fmt = get_format(dev, mp->pixelformat);
+ fmt = vivid_get_format(dev, mp->pixelformat);
}
mp->field = vivid_field_cap(dev, mp->field);
return -EBUSY;
}
- dev->fmt_cap = get_format(dev, mp->pixelformat);
+ dev->fmt_cap = vivid_get_format(dev, mp->pixelformat);
if (V4L2_FIELD_HAS_T_OR_B(mp->field))
factor = 2;
if (a->fmt.width < 48 || a->fmt.height < 32)
return -EINVAL;
- fmt = get_format(dev, a->fmt.pixelformat);
+ fmt = vivid_get_format(dev, a->fmt.pixelformat);
if (!fmt || !fmt->can_do_overlay)
return -EINVAL;
if (a->fmt.bytesperline < (a->fmt.width * fmt->depth) / 8)
if (!vivid_is_webcam(dev) && !dev->has_scaler_cap)
return -EINVAL;
- if (get_format(dev, fsize->pixel_format) == NULL)
+ if (vivid_get_format(dev, fsize->pixel_format) == NULL)
return -EINVAL;
if (vivid_is_webcam(dev)) {
if (fsize->index >= ARRAY_SIZE(webcam_sizes))
const struct vivid_fmt *fmt;
int i;
- fmt = get_format(dev, fival->pixel_format);
+ fmt = vivid_get_format(dev, fival->pixel_format);
if (!fmt)
return -EINVAL;
unsigned w, h;
unsigned p;
- fmt = get_format(dev, mp->pixelformat);
+ fmt = vivid_get_format(dev, mp->pixelformat);
if (!fmt) {
dprintk(dev, 1, "Fourcc format (0x%08x) unknown.\n",
mp->pixelformat);
mp->pixelformat = V4L2_PIX_FMT_YUYV;
- fmt = get_format(dev, mp->pixelformat);
+ fmt = vivid_get_format(dev, mp->pixelformat);
}
mp->field = vivid_field_out(dev, mp->field);
if (vb2_is_busy(q))
goto set_colorspace;
- dev->fmt_out = get_format(dev, mp->pixelformat);
+ dev->fmt_out = vivid_get_format(dev, mp->pixelformat);
if (V4L2_FIELD_HAS_T_OR_B(mp->field))
factor = 2;