Lines Matching refs:pix
161 v4l_bound_align_image(&f->fmt.pix.width, 48, max_width, 2,
162 &f->fmt.pix.height, 32, CAL_MAX_HEIGHT_LINES,
165 bpl = (f->fmt.pix.width * ALIGN(fmtinfo->bpp, 8)) >> 3;
166 f->fmt.pix.bytesperline = ALIGN(bpl, 16);
168 f->fmt.pix.sizeimage = f->fmt.pix.height *
169 f->fmt.pix.bytesperline;
172 __func__, &f->fmt.pix.pixelformat,
173 f->fmt.pix.width, f->fmt.pix.height,
174 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage);
188 fmtinfo = find_format_by_pix(ctx, f->fmt.pix.pixelformat);
191 f->fmt.pix.pixelformat);
195 f->fmt.pix.pixelformat = fmtinfo->fourcc;
198 f->fmt.pix.field = ctx->v_fmt.fmt.pix.field;
212 if ((f->fmt.pix.width == fse.max_width) &&
213 (f->fmt.pix.height == fse.max_height)) {
216 } else if ((f->fmt.pix.width >= fse.min_width) &&
217 (f->fmt.pix.width <= fse.max_width) &&
218 (f->fmt.pix.height >= fse.min_height) &&
219 (f->fmt.pix.height <= fse.max_height)) {
227 f->fmt.pix.width = ctx->v_fmt.fmt.pix.width;
228 f->fmt.pix.height = ctx->v_fmt.fmt.pix.height;
235 f->fmt.pix.colorspace = ctx->v_fmt.fmt.pix.colorspace;
262 fmtinfo = find_format_by_pix(ctx, f->fmt.pix.pixelformat);
264 v4l2_fill_mbus_format(&sd_fmt.format, &f->fmt.pix, fmtinfo->code);
278 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &sd_fmt.format);
280 ctx->v_fmt.fmt.pix.pixelformat = fmtinfo->fourcc;
281 ctx->v_fmt.fmt.pix.field = sd_fmt.format.field;
461 struct v4l2_pix_format *format = &f->fmt.pix;
469 fmtinfo = cal_format_by_fourcc(f->fmt.pix.pixelformat);
501 format->colorspace = ctx->v_fmt.fmt.pix.colorspace;
599 unsigned int size = ctx->v_fmt.fmt.pix.sizeimage;
626 size = ctx->v_fmt.fmt.pix.sizeimage;
702 ctx->v_fmt.fmt.pix.height != format->height ||
703 ctx->v_fmt.fmt.pix.width != format->width ||
704 ctx->v_fmt.fmt.pix.field != format->field) {
910 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt);
912 ctx->v_fmt.fmt.pix.pixelformat = fmtinfo->fourcc;
922 struct v4l2_pix_format *pix_fmt = &ctx->v_fmt.fmt.pix;