Lines Matching refs:frame
230 struct gsc_frame *frame; in gsc_m2m_queue_setup() local
233 frame = ctx_get_frame(ctx, vq->type); in gsc_m2m_queue_setup()
234 if (IS_ERR(frame)) in gsc_m2m_queue_setup()
235 return PTR_ERR(frame); in gsc_m2m_queue_setup()
237 if (!frame->fmt) in gsc_m2m_queue_setup()
240 *num_planes = frame->fmt->num_planes; in gsc_m2m_queue_setup()
241 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_queue_setup()
242 sizes[i] = frame->payload[i]; in gsc_m2m_queue_setup()
249 struct gsc_frame *frame; in gsc_m2m_buf_prepare() local
252 frame = ctx_get_frame(ctx, vb->vb2_queue->type); in gsc_m2m_buf_prepare()
253 if (IS_ERR(frame)) in gsc_m2m_buf_prepare()
254 return PTR_ERR(frame); in gsc_m2m_buf_prepare()
257 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_buf_prepare()
258 vb2_set_plane_payload(vb, i, frame->payload[i]); in gsc_m2m_buf_prepare()
325 struct gsc_frame *frame; in gsc_m2m_s_fmt_mplane() local
341 frame = &ctx->s_frame; in gsc_m2m_s_fmt_mplane()
343 frame = &ctx->d_frame; in gsc_m2m_s_fmt_mplane()
346 frame->fmt = find_fmt(&pix->pixelformat, NULL, 0); in gsc_m2m_s_fmt_mplane()
347 frame->colorspace = pix->colorspace; in gsc_m2m_s_fmt_mplane()
348 if (!frame->fmt) in gsc_m2m_s_fmt_mplane()
351 for (i = 0; i < frame->fmt->num_planes; i++) in gsc_m2m_s_fmt_mplane()
352 frame->payload[i] = pix->plane_fmt[i].sizeimage; in gsc_m2m_s_fmt_mplane()
354 gsc_set_frame_size(frame, pix->width, pix->height); in gsc_m2m_s_fmt_mplane()
361 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
515 frame = &ctx->s_frame; in gsc_m2m_s_selection()
521 frame = &ctx->d_frame; in gsc_m2m_s_selection()
549 frame->crop = sel.r; in gsc_m2m_s_selection()