Lines Matching refs:f

173 	struct fimc_frame *f;  in fimc_queue_setup()  local
176 f = ctx_get_frame(ctx, vq->type); in fimc_queue_setup()
177 if (IS_ERR(f)) in fimc_queue_setup()
178 return PTR_ERR(f); in fimc_queue_setup()
183 if (!f->fmt) in fimc_queue_setup()
186 *num_planes = f->fmt->memplanes; in fimc_queue_setup()
187 for (i = 0; i < f->fmt->memplanes; i++) in fimc_queue_setup()
188 sizes[i] = f->payload[i]; in fimc_queue_setup()
238 struct v4l2_fmtdesc *f) in fimc_m2m_enum_fmt() argument
242 fmt = fimc_find_format(NULL, NULL, get_m2m_fmt_flags(f->type), in fimc_m2m_enum_fmt()
243 f->index); in fimc_m2m_enum_fmt()
247 f->pixelformat = fmt->fourcc; in fimc_m2m_enum_fmt()
252 struct v4l2_format *f) in fimc_m2m_g_fmt_mplane() argument
255 struct fimc_frame *frame = ctx_get_frame(ctx, f->type); in fimc_m2m_g_fmt_mplane()
260 __fimc_get_format(frame, f); in fimc_m2m_g_fmt_mplane()
264 static int fimc_try_fmt_mplane(struct fimc_ctx *ctx, struct v4l2_format *f) in fimc_try_fmt_mplane() argument
268 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in fimc_try_fmt_mplane()
272 if (!IS_M2M(f->type)) in fimc_try_fmt_mplane()
276 get_m2m_fmt_flags(f->type), 0); in fimc_try_fmt_mplane()
285 if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { in fimc_try_fmt_mplane()
306 fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); in fimc_try_fmt_mplane()
311 struct v4l2_format *f) in fimc_m2m_try_fmt_mplane() argument
314 return fimc_try_fmt_mplane(ctx, f); in fimc_m2m_try_fmt_mplane()
339 struct v4l2_format *f) in fimc_m2m_s_fmt_mplane() argument
348 ret = fimc_try_fmt_mplane(ctx, f); in fimc_m2m_s_fmt_mplane()
352 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in fimc_m2m_s_fmt_mplane()
355 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
359 if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) in fimc_m2m_s_fmt_mplane()
364 fmt = fimc_find_format(&f->fmt.pix_mp.pixelformat, NULL, in fimc_m2m_s_fmt_mplane()
365 get_m2m_fmt_flags(f->type), 0); in fimc_m2m_s_fmt_mplane()
369 __set_frame_format(frame, fmt, &f->fmt.pix_mp); in fimc_m2m_s_fmt_mplane()
431 struct fimc_frame *f; in fimc_m2m_try_selection() local
441 f = &ctx->d_frame; in fimc_m2m_try_selection()
445 f = &ctx->s_frame; in fimc_m2m_try_selection()
452 min_size = (f == &ctx->s_frame) ? in fimc_m2m_try_selection()
457 halign = fimc_fmt_is_rgb(f->fmt->color) ? 0 : 1; in fimc_m2m_try_selection()
461 for (i = 0; i < f->fmt->memplanes; i++) in fimc_m2m_try_selection()
462 depth += f->fmt->depth[i]; in fimc_m2m_try_selection()
464 v4l_bound_align_image(&s->r.width, min_size, f->o_width, in fimc_m2m_try_selection()
466 &s->r.height, min_size, f->o_height, in fimc_m2m_try_selection()
470 if (s->r.left + s->r.width > f->o_width) in fimc_m2m_try_selection()
471 s->r.left = f->o_width - s->r.width; in fimc_m2m_try_selection()
472 if (s->r.top + s->r.height > f->o_height) in fimc_m2m_try_selection()
473 s->r.top = f->o_height - s->r.height; in fimc_m2m_try_selection()
480 f->f_width, f->f_height); in fimc_m2m_try_selection()
490 struct fimc_frame *f; in fimc_m2m_s_selection() local
497 f = (s->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) ? in fimc_m2m_s_selection()
515 f->offs_h = s->r.left; in fimc_m2m_s_selection()
516 f->offs_v = s->r.top; in fimc_m2m_s_selection()
517 f->width = s->r.width; in fimc_m2m_s_selection()
518 f->height = s->r.height; in fimc_m2m_s_selection()