Lines Matching refs:fmt

29 static char *fourcc_to_str(u32 fmt)
33 code[0] = (unsigned char)(fmt & 0xff);
34 code[1] = (unsigned char)((fmt >> 8) & 0xff);
35 code[2] = (unsigned char)((fmt >> 16) & 0xff);
36 code[3] = (unsigned char)((fmt >> 24) & 0xff);
118 struct v4l2_mbus_framefmt *fmt)
131 *fmt = *mbus_fmt;
134 fmt->width, fmt->height, fmt->code);
140 struct v4l2_mbus_framefmt *fmt)
149 *mbus_fmt = *fmt;
156 fmt->width, fmt->height, fmt->code);
173 v4l_bound_align_image(&f->fmt.pix.width, 48, max_width, 2,
174 &f->fmt.pix.height, 32, CAL_MAX_HEIGHT_LINES,
177 bpl = (f->fmt.pix.width * ALIGN(fmtinfo->bpp, 8)) >> 3;
178 f->fmt.pix.bytesperline = ALIGN(bpl, 16);
180 f->fmt.pix.sizeimage = f->fmt.pix.height *
181 f->fmt.pix.bytesperline;
184 __func__, fourcc_to_str(f->fmt.pix.pixelformat),
185 f->fmt.pix.width, f->fmt.pix.height,
186 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage);
199 fmtinfo = find_format_by_pix(ctx, f->fmt.pix.pixelformat);
202 f->fmt.pix.pixelformat);
206 f->fmt.pix.pixelformat = fmtinfo->fourcc;
209 f->fmt.pix.field = ctx->v_fmt.fmt.pix.field;
223 if ((f->fmt.pix.width == fse.max_width) &&
224 (f->fmt.pix.height == fse.max_height)) {
227 } else if ((f->fmt.pix.width >= fse.min_width) &&
228 (f->fmt.pix.width <= fse.max_width) &&
229 (f->fmt.pix.height >= fse.min_height) &&
230 (f->fmt.pix.height <= fse.max_height)) {
238 f->fmt.pix.width = ctx->v_fmt.fmt.pix.width;
239 f->fmt.pix.height = ctx->v_fmt.fmt.pix.height;
246 f->fmt.pix.colorspace = ctx->v_fmt.fmt.pix.colorspace;
272 fmtinfo = find_format_by_pix(ctx, f->fmt.pix.pixelformat);
274 v4l2_fill_mbus_format(&sd_fmt.format, &f->fmt.pix, fmtinfo->code);
288 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &sd_fmt.format);
290 ctx->v_fmt.fmt.pix.pixelformat = fmtinfo->fourcc;
291 ctx->v_fmt.fmt.pix.field = sd_fmt.format.field;
467 struct v4l2_pix_format *format = &f->fmt.pix;
475 fmtinfo = cal_format_by_fourcc(f->fmt.pix.pixelformat);
507 format->colorspace = ctx->v_fmt.fmt.pix.colorspace;
605 unsigned int size = ctx->v_fmt.fmt.pix.sizeimage;
632 size = ctx->v_fmt.fmt.pix.sizeimage;
708 ctx->v_fmt.fmt.pix.height != format->height ||
709 ctx->v_fmt.fmt.pix.width != format->width ||
710 ctx->v_fmt.fmt.pix.field != format->field) {
897 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt);
899 ctx->v_fmt.fmt.pix.pixelformat = fmtinfo->fourcc;
909 struct v4l2_pix_format *pix_fmt = &ctx->v_fmt.fmt.pix;