• Home
  • Raw
  • Download

Lines Matching refs:fmt

40 #define vpfe_dbg(level, dev, fmt, arg...)	\  argument
41 v4l2_dbg(level, debug, &dev->v4l2_dev, fmt, ##arg)
42 #define vpfe_info(dev, fmt, arg...) \ argument
43 v4l2_info(&dev->v4l2_dev, fmt, ##arg)
44 #define vpfe_err(dev, fmt, arg...) \ argument
45 v4l2_err(&dev->v4l2_dev, fmt, ##arg)
106 struct v4l2_mbus_framefmt *fmt);
108 const struct vpfe_fmt *fmt,
114 struct vpfe_fmt *fmt; in find_format_by_code() local
118 fmt = vpfe->active_fmt[k]; in find_format_by_code()
119 if (fmt->code == code) in find_format_by_code()
120 return fmt; in find_format_by_code()
129 struct vpfe_fmt *fmt; in find_format_by_pix() local
133 fmt = vpfe->active_fmt[k]; in find_format_by_pix()
134 if (fmt->fourcc == pixelformat) in find_format_by_pix()
135 return fmt; in find_format_by_pix()
142 const struct vpfe_fmt *fmt) in __get_bytesperpixel() argument
149 clocksperpixel = DIV_ROUND_UP(fmt->bitsperpixel, bus_width); in __get_bytesperpixel()
156 static char *print_fourcc(u32 fmt) in print_fourcc() argument
160 code[0] = (unsigned char)(fmt & 0xff); in print_fourcc()
161 code[1] = (unsigned char)((fmt >> 8) & 0xff); in print_fourcc()
162 code[2] = (unsigned char)((fmt >> 16) & 0xff); in print_fourcc()
163 code[3] = (unsigned char)((fmt >> 24) & 0xff); in print_fourcc()
871 f->fmt.pix.width = image_win.width; in vpfe_get_ccdc_image_format()
872 f->fmt.pix.height = image_win.height; in vpfe_get_ccdc_image_format()
873 f->fmt.pix.bytesperline = vpfe_ccdc_get_line_length(&vpfe->ccdc); in vpfe_get_ccdc_image_format()
874 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * in vpfe_get_ccdc_image_format()
875 f->fmt.pix.height; in vpfe_get_ccdc_image_format()
877 f->fmt.pix.pixelformat = vpfe_ccdc_get_pixel_format(&vpfe->ccdc); in vpfe_get_ccdc_image_format()
881 f->fmt.pix.field = V4L2_FIELD_NONE; in vpfe_get_ccdc_image_format()
884 f->fmt.pix.field = V4L2_FIELD_INTERLACED; in vpfe_get_ccdc_image_format()
886 f->fmt.pix.field = V4L2_FIELD_SEQ_TB; in vpfe_get_ccdc_image_format()
905 print_fourcc(vpfe->fmt.fmt.pix.pixelformat)); in vpfe_config_ccdc_image_format()
908 vpfe->fmt.fmt.pix.pixelformat) < 0) { in vpfe_config_ccdc_image_format()
917 switch (vpfe->fmt.fmt.pix.field) { in vpfe_config_ccdc_image_format()
959 struct vpfe_fmt *fmt; in vpfe_config_image_format() local
986 fmt = find_format_by_code(vpfe, mbus_fmt.code); in vpfe_config_image_format()
987 if (!fmt) { in vpfe_config_image_format()
994 v4l2_fill_pix_format(&vpfe->fmt.fmt.pix, &mbus_fmt); in vpfe_config_image_format()
995 vpfe->fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in vpfe_config_image_format()
996 vpfe->fmt.fmt.pix.pixelformat = fmt->fourcc; in vpfe_config_image_format()
997 vpfe_calc_format_size(vpfe, fmt, &vpfe->fmt); in vpfe_config_image_format()
998 vpfe->current_vpfe_fmt = fmt; in vpfe_config_image_format()
1149 vpfe->cur_frm->vb.field = vpfe->fmt.fmt.pix.field; in vpfe_process_buffer_complete()
1218 enum v4l2_field field = vpfe->fmt.fmt.pix.field; in vpfe_isr()
1285 struct v4l2_mbus_framefmt *fmt) in __subdev_get_format() argument
1299 *fmt = *mbus_fmt; in __subdev_get_format()
1302 fmt->width, fmt->height, fmt->code); in __subdev_get_format()
1309 struct v4l2_mbus_framefmt *fmt) in __subdev_set_format() argument
1318 *mbus_fmt = *fmt; in __subdev_set_format()
1325 fmt->width, fmt->height, fmt->code); in __subdev_set_format()
1331 const struct vpfe_fmt *fmt, in vpfe_calc_format_size() argument
1336 if (!fmt) { in vpfe_calc_format_size()
1341 bpp = __get_bytesperpixel(vpfe, fmt); in vpfe_calc_format_size()
1344 f->fmt.pix.bytesperline = ALIGN(f->fmt.pix.width * bpp, 32); in vpfe_calc_format_size()
1345 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * in vpfe_calc_format_size()
1346 f->fmt.pix.height; in vpfe_calc_format_size()
1349 __func__, print_fourcc(f->fmt.pix.pixelformat), in vpfe_calc_format_size()
1350 f->fmt.pix.width, f->fmt.pix.height, in vpfe_calc_format_size()
1351 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); in vpfe_calc_format_size()
1357 struct v4l2_format *fmt) in vpfe_g_fmt() argument
1361 *fmt = vpfe->fmt; in vpfe_g_fmt()
1371 struct vpfe_fmt *fmt; in vpfe_enum_fmt() local
1380 fmt = vpfe->active_fmt[f->index]; in vpfe_enum_fmt()
1382 f->pixelformat = fmt->fourcc; in vpfe_enum_fmt()
1385 __func__, f->index, fmt->code, print_fourcc(fmt->fourcc)); in vpfe_enum_fmt()
1395 const struct vpfe_fmt *fmt; in vpfe_try_fmt() local
1399 fmt = find_format_by_pix(vpfe, f->fmt.pix.pixelformat); in vpfe_try_fmt()
1400 if (!fmt) { in vpfe_try_fmt()
1403 f->fmt.pix.pixelformat); in vpfe_try_fmt()
1404 fmt = vpfe->active_fmt[0]; in vpfe_try_fmt()
1405 f->fmt.pix.pixelformat = fmt->fourcc; in vpfe_try_fmt()
1408 f->fmt.pix.field = vpfe->fmt.fmt.pix.field; in vpfe_try_fmt()
1414 fse.code = fmt->code; in vpfe_try_fmt()
1422 if (f->fmt.pix.width == fse.max_width && in vpfe_try_fmt()
1423 f->fmt.pix.height == fse.max_height) { in vpfe_try_fmt()
1426 } else if (f->fmt.pix.width >= fse.min_width && in vpfe_try_fmt()
1427 f->fmt.pix.width <= fse.max_width && in vpfe_try_fmt()
1428 f->fmt.pix.height >= fse.min_height && in vpfe_try_fmt()
1429 f->fmt.pix.height <= fse.max_height) { in vpfe_try_fmt()
1437 f->fmt.pix.width = vpfe->fmt.fmt.pix.width; in vpfe_try_fmt()
1438 f->fmt.pix.height = vpfe->fmt.fmt.pix.height; in vpfe_try_fmt()
1445 f->fmt.pix.colorspace = vpfe->fmt.fmt.pix.colorspace; in vpfe_try_fmt()
1446 return vpfe_calc_format_size(vpfe, fmt, f); in vpfe_try_fmt()
1450 struct v4l2_format *fmt) in vpfe_s_fmt() argument
1463 ret = vpfe_try_fmt(file, priv, fmt); in vpfe_s_fmt()
1467 f = find_format_by_pix(vpfe, fmt->fmt.pix.pixelformat); in vpfe_s_fmt()
1469 v4l2_fill_mbus_format(&mbus_fmt, &fmt->fmt.pix, f->code); in vpfe_s_fmt()
1483 v4l2_fill_pix_format(&vpfe->fmt.fmt.pix, &mbus_fmt); in vpfe_s_fmt()
1484 vpfe->fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in vpfe_s_fmt()
1485 vpfe->fmt.fmt.pix.pixelformat = f->fourcc; in vpfe_s_fmt()
1486 vpfe_calc_format_size(vpfe, f, &vpfe->fmt); in vpfe_s_fmt()
1487 *fmt = vpfe->fmt; in vpfe_s_fmt()
1491 vpfe->crop.width = fmt->fmt.pix.width; in vpfe_s_fmt()
1492 vpfe->crop.height = fmt->fmt.pix.height; in vpfe_s_fmt()
1506 struct vpfe_fmt *fmt; in vpfe_enum_size() local
1510 fmt = find_format_by_pix(vpfe, fsize->pixel_format); in vpfe_enum_size()
1511 if (!fmt) { in vpfe_enum_size()
1521 fse.code = fmt->code; in vpfe_enum_size()
1775 unsigned size = vpfe->fmt.fmt.pix.sizeimage; in vpfe_queue_setup()
1811 vb2_set_plane_payload(vb, 0, vpfe->fmt.fmt.pix.sizeimage); in vpfe_buffer_prepare()
1816 vbuf->field = vpfe->fmt.fmt.pix.field; in vpfe_buffer_prepare()
2027 vpfe->fmt.fmt.pix.width = r.width; in vpfe_s_selection()
2028 vpfe->fmt.fmt.pix.height = r.height; in vpfe_s_selection()
2029 vpfe->fmt.fmt.pix.bytesperline = in vpfe_s_selection()
2031 vpfe->fmt.fmt.pix.sizeimage = vpfe->fmt.fmt.pix.bytesperline * in vpfe_s_selection()
2032 vpfe->fmt.fmt.pix.height; in vpfe_s_selection()
2066 &vpfe->fmt); in vpfe_ioctl_default()
2150 struct vpfe_fmt *fmt; in vpfe_async_bound() local
2190 fmt = &formats[k]; in vpfe_async_bound()
2191 if (mbus_code.code != fmt->code) in vpfe_async_bound()
2193 vpfe->active_fmt[i] = fmt; in vpfe_async_bound()
2196 print_fourcc(fmt->fourcc), mbus_code.code, i); in vpfe_async_bound()
2218 vpfe->fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in vpfe_probe_complete()