Lines Matching refs:frame
232 struct gsc_frame *frame; in gsc_m2m_queue_setup() local
235 frame = ctx_get_frame(ctx, vq->type); in gsc_m2m_queue_setup()
236 if (IS_ERR(frame)) in gsc_m2m_queue_setup()
237 return PTR_ERR(frame); in gsc_m2m_queue_setup()
239 if (!frame->fmt) in gsc_m2m_queue_setup()
242 *num_planes = frame->fmt->num_planes; in gsc_m2m_queue_setup()
243 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_queue_setup()
244 sizes[i] = frame->payload[i]; in gsc_m2m_queue_setup()
251 struct gsc_frame *frame; in gsc_m2m_buf_prepare() local
254 frame = ctx_get_frame(ctx, vb->vb2_queue->type); in gsc_m2m_buf_prepare()
255 if (IS_ERR(frame)) in gsc_m2m_buf_prepare()
256 return PTR_ERR(frame); in gsc_m2m_buf_prepare()
259 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_buf_prepare()
260 vb2_set_plane_payload(vb, i, frame->payload[i]); in gsc_m2m_buf_prepare()
327 struct gsc_frame *frame; in gsc_m2m_s_fmt_mplane() local
343 frame = &ctx->s_frame; in gsc_m2m_s_fmt_mplane()
345 frame = &ctx->d_frame; in gsc_m2m_s_fmt_mplane()
348 frame->fmt = find_fmt(&pix->pixelformat, NULL, 0); in gsc_m2m_s_fmt_mplane()
349 frame->colorspace = pix->colorspace; in gsc_m2m_s_fmt_mplane()
350 if (!frame->fmt) in gsc_m2m_s_fmt_mplane()
353 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_s_fmt_mplane()
354 frame->payload[i] = pix->plane_fmt[i].sizeimage; in gsc_m2m_s_fmt_mplane()
356 gsc_set_frame_size(frame, pix->width, pix->height); in gsc_m2m_s_fmt_mplane()
363 pr_debug("f_w: %d, f_h: %d", frame->f_width, frame->f_height); in gsc_m2m_s_fmt_mplane()
452 struct gsc_frame *frame; in gsc_m2m_g_selection() local
459 frame = ctx_get_frame(ctx, s->type); in gsc_m2m_g_selection()
460 if (IS_ERR(frame)) in gsc_m2m_g_selection()
461 return PTR_ERR(frame); in gsc_m2m_g_selection()
470 s->r.width = frame->f_width; in gsc_m2m_g_selection()
471 s->r.height = frame->f_height; in gsc_m2m_g_selection()
476 s->r.left = frame->crop.left; in gsc_m2m_g_selection()
477 s->r.top = frame->crop.top; in gsc_m2m_g_selection()
478 s->r.width = frame->crop.width; in gsc_m2m_g_selection()
479 s->r.height = frame->crop.height; in gsc_m2m_g_selection()
489 struct gsc_frame *frame; in gsc_m2m_s_selection() local
517 frame = &ctx->s_frame; in gsc_m2m_s_selection()
523 frame = &ctx->d_frame; in gsc_m2m_s_selection()
551 frame->crop = sel.r; in gsc_m2m_s_selection()