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()
278 struct fimc_frame *frame = ctx_get_frame(ctx, f->type); in fimc_m2m_g_fmt_mplane() local
280 if (IS_ERR(frame)) in fimc_m2m_g_fmt_mplane()
281 return PTR_ERR(frame); in fimc_m2m_g_fmt_mplane()
283 __fimc_get_format(frame, f); in fimc_m2m_g_fmt_mplane()
340 static void __set_frame_format(struct fimc_frame *frame, struct fimc_fmt *fmt, in __set_frame_format() argument
346 frame->bytesperline[i] = pixm->plane_fmt[i].bytesperline; in __set_frame_format()
347 frame->payload[i] = pixm->plane_fmt[i].sizeimage; in __set_frame_format()
350 frame->f_width = pixm->width; in __set_frame_format()
351 frame->f_height = pixm->height; in __set_frame_format()
352 frame->o_width = pixm->width; in __set_frame_format()
353 frame->o_height = pixm->height; in __set_frame_format()
354 frame->width = pixm->width; in __set_frame_format()
355 frame->height = pixm->height; in __set_frame_format()
356 frame->offs_h = 0; in __set_frame_format()
357 frame->offs_v = 0; in __set_frame_format()
358 frame->fmt = fmt; in __set_frame_format()
368 struct fimc_frame *frame; in fimc_m2m_s_fmt_mplane() local
383 frame = &ctx->s_frame; in fimc_m2m_s_fmt_mplane()
385 frame = &ctx->d_frame; in fimc_m2m_s_fmt_mplane()
392 __set_frame_format(frame, fmt, &f->fmt.pix_mp); in fimc_m2m_s_fmt_mplane()
404 struct fimc_frame *frame; in fimc_m2m_cropcap() local
406 frame = ctx_get_frame(ctx, cr->type); in fimc_m2m_cropcap()
407 if (IS_ERR(frame)) in fimc_m2m_cropcap()
408 return PTR_ERR(frame); in fimc_m2m_cropcap()
412 cr->bounds.width = frame->o_width; in fimc_m2m_cropcap()
413 cr->bounds.height = frame->o_height; in fimc_m2m_cropcap()
422 struct fimc_frame *frame; in fimc_m2m_g_crop() local
424 frame = ctx_get_frame(ctx, cr->type); in fimc_m2m_g_crop()
425 if (IS_ERR(frame)) in fimc_m2m_g_crop()
426 return PTR_ERR(frame); in fimc_m2m_g_crop()
428 cr->c.left = frame->offs_h; in fimc_m2m_g_crop()
429 cr->c.top = frame->offs_v; in fimc_m2m_g_crop()
430 cr->c.width = frame->width; in fimc_m2m_g_crop()
431 cr->c.height = frame->height; in fimc_m2m_g_crop()