Lines Matching refs:format
86 struct v4l2_format *fmt1 = &ctx->format;
127 ctx->format.type = ctx->type;
134 ctx->format.fmt.pix_mp.height = ctx->height;
135 ctx->format.fmt.pix_mp.width = ctx->width;
137 ctx->format.fmt.pix_mp.pixelformat = fmt->v4l2_fmt;
140 ctx->format.fmt.pix_mp.plane_fmt[0].sizeimage =
144 ctx->format.fmt.pix.height = ctx->height;
145 ctx->format.fmt.pix.width = ctx->width;
147 ctx->format.fmt.pix.pixelformat = fmt->v4l2_fmt;
150 ctx->format.fmt.pix.sizeimage =
179 struct v4l2_format cap_fmt = s->capture.format;
464 struct v4l2_format *fmt = &ctx->format;
527 /* translate to a valid v4l2 format */
532 /* check if the driver supports this format */
675 /* format has been tried already */
686 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_TRY_FMT, &ctx->format);
691 return ioctl(ctx_to_m2mctx(ctx)->fd, VIDIOC_S_FMT, &ctx->format);
719 ret = ioctl(s->fd, VIDIOC_G_FMT, &ctx->format);
750 V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ? av_fourcc2str(ctx->format.fmt.pix_mp.pixelformat) : av_fourcc2str(ctx->format.fmt.pix.pixelformat),
752 v4l2_get_width(&ctx->format),
753 v4l2_get_height(&ctx->format),
754 V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ? ctx->format.fmt.pix_mp.plane_fmt[0].sizeimage : ctx->format.fmt.pix.sizeimage,
755 V4L2_TYPE_IS_MULTIPLANAR(ctx->type) ? ctx->format.fmt.pix_mp.plane_fmt[0].bytesperline : ctx->format.fmt.pix.bytesperline);