Lines Matching refs:frame

208 	struct fimc_frame *frame;  in fimc_buf_prepare()  local
211 frame = ctx_get_frame(ctx, vb->vb2_queue->type); in fimc_buf_prepare()
212 if (IS_ERR(frame)) in fimc_buf_prepare()
213 return PTR_ERR(frame); in fimc_buf_prepare()
215 for (i = 0; i < frame->fmt->memplanes; i++) in fimc_buf_prepare()
216 vb2_set_plane_payload(vb, i, frame->payload[i]); in fimc_buf_prepare()
277 struct fimc_frame *frame = ctx_get_frame(ctx, f->type); in fimc_m2m_g_fmt_mplane() local
279 if (IS_ERR(frame)) in fimc_m2m_g_fmt_mplane()
280 return PTR_ERR(frame); in fimc_m2m_g_fmt_mplane()
282 __fimc_get_format(frame, f); in fimc_m2m_g_fmt_mplane()
339 static void __set_frame_format(struct fimc_frame *frame, struct fimc_fmt *fmt, in __set_frame_format() argument
345 frame->bytesperline[i] = pixm->plane_fmt[i].bytesperline; in __set_frame_format()
346 frame->payload[i] = pixm->plane_fmt[i].sizeimage; in __set_frame_format()
349 frame->f_width = pixm->width; in __set_frame_format()
350 frame->f_height = pixm->height; in __set_frame_format()
351 frame->o_width = pixm->width; in __set_frame_format()
352 frame->o_height = pixm->height; in __set_frame_format()
353 frame->width = pixm->width; in __set_frame_format()
354 frame->height = pixm->height; in __set_frame_format()
355 frame->offs_h = 0; in __set_frame_format()
356 frame->offs_v = 0; in __set_frame_format()
357 frame->fmt = fmt; in __set_frame_format()
367 struct fimc_frame *frame; in fimc_m2m_s_fmt_mplane() local
382 frame = &ctx->s_frame; in fimc_m2m_s_fmt_mplane()
384 frame = &ctx->d_frame; in fimc_m2m_s_fmt_mplane()
391 __set_frame_format(frame, fmt, &f->fmt.pix_mp); in fimc_m2m_s_fmt_mplane()
403 struct fimc_frame *frame; in fimc_m2m_cropcap() local
405 frame = ctx_get_frame(ctx, cr->type); in fimc_m2m_cropcap()
406 if (IS_ERR(frame)) in fimc_m2m_cropcap()
407 return PTR_ERR(frame); in fimc_m2m_cropcap()
411 cr->bounds.width = frame->o_width; in fimc_m2m_cropcap()
412 cr->bounds.height = frame->o_height; in fimc_m2m_cropcap()
421 struct fimc_frame *frame; in fimc_m2m_g_crop() local
423 frame = ctx_get_frame(ctx, cr->type); in fimc_m2m_g_crop()
424 if (IS_ERR(frame)) in fimc_m2m_g_crop()
425 return PTR_ERR(frame); in fimc_m2m_g_crop()
427 cr->c.left = frame->offs_h; in fimc_m2m_g_crop()
428 cr->c.top = frame->offs_v; in fimc_m2m_g_crop()
429 cr->c.width = frame->width; in fimc_m2m_g_crop()
430 cr->c.height = frame->height; in fimc_m2m_g_crop()