Lines Matching defs:fmt

11 #define pr_fmt(fmt) "%s:%d " fmt, __func__, __LINE__
443 const struct camif_fmt *fmt = vp->out_fmt;
446 if (fmt == NULL)
449 size = (frame->f_width * frame->f_height * fmt->depth) / 8;
678 const struct camif_fmt *fmt;
680 fmt = s3c_camif_find_format(vp, NULL, f->index);
681 if (!fmt)
684 f->pixelformat = fmt->fourcc;
692 struct v4l2_pix_format *pix = &f->fmt.pix;
694 const struct camif_fmt *fmt = vp->out_fmt;
696 pix->bytesperline = frame->f_width * fmt->ybpp;
699 pix->pixelformat = fmt->fourcc;
716 const struct camif_fmt *fmt;
718 fmt = s3c_camif_find_format(vp, &pix->pixelformat, 0);
720 if (WARN_ON(fmt == NULL))
724 *ffmt = fmt;
728 pr_debug("fmt: %ux%u, crop: %ux%u, bytesperline: %u\n",
747 pix->bytesperline = pix->width * fmt->ybpp;
748 pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8;
749 pix->pixelformat = fmt->fourcc;
763 return __camif_video_try_format(vp, &f->fmt.pix, NULL);
769 struct v4l2_pix_format *pix = &f->fmt.pix;
772 const struct camif_fmt *fmt = NULL;
780 ret = __camif_video_try_format(vp, &f->fmt.pix, &fmt);
784 vp->out_fmt = fmt;
798 pr_debug("%ux%u. payload: %u. fmt: 0x%08x. %d %d. sizeimage: %d. bpl: %d\n",
800 fmt->fourcc, pix->width * pix->height * fmt->depth,
801 fmt->depth, pix->sizeimage, pix->bytesperline);
1212 struct v4l2_subdev_format *fmt)
1215 struct v4l2_mbus_framefmt *mf = &fmt->format;
1217 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
1218 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad);
1219 fmt->format = *mf;
1225 switch (fmt->pad) {
1280 struct v4l2_subdev_format *fmt)
1283 struct v4l2_mbus_framefmt *mf = &fmt->format;
1288 fmt->pad, mf->code, mf->width, mf->height);
1304 __camif_subdev_try_format(camif, mf, fmt->pad);
1306 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
1307 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad);
1308 *mf = fmt->format;
1313 switch (fmt->pad) {
1428 v4l2_dbg(1, debug, &camif->v4l2_dev, "crop: (%d,%d)/%dx%d, fmt: %ux%u\n",