Lines Matching refs:frame
220 struct gsc_frame *frame; in gsc_m2m_queue_setup() local
223 frame = ctx_get_frame(ctx, vq->type); in gsc_m2m_queue_setup()
224 if (IS_ERR(frame)) in gsc_m2m_queue_setup()
225 return PTR_ERR(frame); in gsc_m2m_queue_setup()
227 if (!frame->fmt) in gsc_m2m_queue_setup()
230 *num_planes = frame->fmt->num_planes; in gsc_m2m_queue_setup()
231 for (i = 0; i < frame->fmt->num_planes; i++) { in gsc_m2m_queue_setup()
232 sizes[i] = frame->payload[i]; in gsc_m2m_queue_setup()
241 struct gsc_frame *frame; in gsc_m2m_buf_prepare() local
244 frame = ctx_get_frame(ctx, vb->vb2_queue->type); in gsc_m2m_buf_prepare()
245 if (IS_ERR(frame)) in gsc_m2m_buf_prepare()
246 return PTR_ERR(frame); in gsc_m2m_buf_prepare()
249 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_buf_prepare()
250 vb2_set_plane_payload(vb, i, frame->payload[i]); in gsc_m2m_buf_prepare()
319 struct gsc_frame *frame; in gsc_m2m_s_fmt_mplane() local
335 frame = &ctx->s_frame; in gsc_m2m_s_fmt_mplane()
337 frame = &ctx->d_frame; in gsc_m2m_s_fmt_mplane()
340 frame->fmt = find_fmt(&pix->pixelformat, NULL, 0); in gsc_m2m_s_fmt_mplane()
341 frame->colorspace = pix->colorspace; in gsc_m2m_s_fmt_mplane()
342 if (!frame->fmt) in gsc_m2m_s_fmt_mplane()
345 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_s_fmt_mplane()
346 frame->payload[i] = pix->plane_fmt[i].sizeimage; in gsc_m2m_s_fmt_mplane()
348 gsc_set_frame_size(frame, pix->width, pix->height); in gsc_m2m_s_fmt_mplane()
355 pr_debug("f_w: %d, f_h: %d", frame->f_width, frame->f_height); in gsc_m2m_s_fmt_mplane()
450 struct gsc_frame *frame; in gsc_m2m_g_selection() local
457 frame = ctx_get_frame(ctx, s->type); in gsc_m2m_g_selection()
458 if (IS_ERR(frame)) in gsc_m2m_g_selection()
459 return PTR_ERR(frame); in gsc_m2m_g_selection()
468 s->r.width = frame->f_width; in gsc_m2m_g_selection()
469 s->r.height = frame->f_height; in gsc_m2m_g_selection()
474 s->r.left = frame->crop.left; in gsc_m2m_g_selection()
475 s->r.top = frame->crop.top; in gsc_m2m_g_selection()
476 s->r.width = frame->crop.width; in gsc_m2m_g_selection()
477 s->r.height = frame->crop.height; in gsc_m2m_g_selection()
487 struct gsc_frame *frame; in gsc_m2m_s_selection() local
518 frame = &ctx->s_frame; in gsc_m2m_s_selection()
524 frame = &ctx->d_frame; in gsc_m2m_s_selection()
552 frame->crop = cr.c; in gsc_m2m_s_selection()