Lines Matching full:pix

173 	v4l_bound_align_image(&f->fmt.pix.width, 48, max_width, 2,  in cal_calc_format_size()
174 &f->fmt.pix.height, 32, CAL_MAX_HEIGHT_LINES, in cal_calc_format_size()
177 bpl = (f->fmt.pix.width * ALIGN(fmtinfo->bpp, 8)) >> 3; in cal_calc_format_size()
178 f->fmt.pix.bytesperline = ALIGN(bpl, 16); in cal_calc_format_size()
180 f->fmt.pix.sizeimage = f->fmt.pix.height * in cal_calc_format_size()
181 f->fmt.pix.bytesperline; in cal_calc_format_size()
184 __func__, fourcc_to_str(f->fmt.pix.pixelformat), in cal_calc_format_size()
185 f->fmt.pix.width, f->fmt.pix.height, in cal_calc_format_size()
186 f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); in cal_calc_format_size()
199 fmtinfo = find_format_by_pix(ctx, f->fmt.pix.pixelformat); in cal_legacy_try_fmt_vid_cap()
202 f->fmt.pix.pixelformat); in cal_legacy_try_fmt_vid_cap()
206 f->fmt.pix.pixelformat = fmtinfo->fourcc; in cal_legacy_try_fmt_vid_cap()
209 f->fmt.pix.field = ctx->v_fmt.fmt.pix.field; in cal_legacy_try_fmt_vid_cap()
223 if ((f->fmt.pix.width == fse.max_width) && in cal_legacy_try_fmt_vid_cap()
224 (f->fmt.pix.height == fse.max_height)) { in cal_legacy_try_fmt_vid_cap()
227 } else if ((f->fmt.pix.width >= fse.min_width) && in cal_legacy_try_fmt_vid_cap()
228 (f->fmt.pix.width <= fse.max_width) && in cal_legacy_try_fmt_vid_cap()
229 (f->fmt.pix.height >= fse.min_height) && in cal_legacy_try_fmt_vid_cap()
230 (f->fmt.pix.height <= fse.max_height)) { in cal_legacy_try_fmt_vid_cap()
238 f->fmt.pix.width = ctx->v_fmt.fmt.pix.width; in cal_legacy_try_fmt_vid_cap()
239 f->fmt.pix.height = ctx->v_fmt.fmt.pix.height; in cal_legacy_try_fmt_vid_cap()
246 f->fmt.pix.colorspace = ctx->v_fmt.fmt.pix.colorspace; in cal_legacy_try_fmt_vid_cap()
272 fmtinfo = find_format_by_pix(ctx, f->fmt.pix.pixelformat); in cal_legacy_s_fmt_vid_cap()
274 v4l2_fill_mbus_format(&sd_fmt.format, &f->fmt.pix, fmtinfo->code); in cal_legacy_s_fmt_vid_cap()
288 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &sd_fmt.format); in cal_legacy_s_fmt_vid_cap()
290 ctx->v_fmt.fmt.pix.pixelformat = fmtinfo->fourcc; in cal_legacy_s_fmt_vid_cap()
291 ctx->v_fmt.fmt.pix.field = sd_fmt.format.field; in cal_legacy_s_fmt_vid_cap()
467 struct v4l2_pix_format *format = &f->fmt.pix; in cal_mc_try_fmt()
475 fmtinfo = cal_format_by_fourcc(f->fmt.pix.pixelformat); in cal_mc_try_fmt()
507 format->colorspace = ctx->v_fmt.fmt.pix.colorspace; in cal_mc_try_fmt()
605 unsigned int size = ctx->v_fmt.fmt.pix.sizeimage; in cal_queue_setup()
632 size = ctx->v_fmt.fmt.pix.sizeimage; in cal_buffer_prepare()
708 ctx->v_fmt.fmt.pix.height != format->height || in cal_video_check_format()
709 ctx->v_fmt.fmt.pix.width != format->width || in cal_video_check_format()
710 ctx->v_fmt.fmt.pix.field != format->field) { in cal_video_check_format()
897 v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt); in cal_ctx_v4l2_init_formats()
899 ctx->v_fmt.fmt.pix.pixelformat = fmtinfo->fourcc; in cal_ctx_v4l2_init_formats()
909 struct v4l2_pix_format *pix_fmt = &ctx->v_fmt.fmt.pix; in cal_ctx_v4l2_init_mc_format()