Lines Matching defs:frame
195 const struct fimc_frame *frame;
198 frame = ctx_get_frame(ctx, vb->vb2_queue->type);
199 if (IS_ERR(frame))
200 return PTR_ERR(frame);
202 for (i = 0; i < frame->fmt->memplanes; i++)
203 vb2_set_plane_payload(vb, i, frame->payload[i]);
255 const struct fimc_frame *frame = ctx_get_frame(ctx, f->type);
257 if (IS_ERR(frame))
258 return PTR_ERR(frame);
260 __fimc_get_format(frame, f);
317 static void __set_frame_format(struct fimc_frame *frame,
324 frame->bytesperline[i] = pixm->plane_fmt[i].bytesperline;
325 frame->payload[i] = pixm->plane_fmt[i].sizeimage;
328 frame->f_width = pixm->width;
329 frame->f_height = pixm->height;
330 frame->o_width = pixm->width;
331 frame->o_height = pixm->height;
332 frame->width = pixm->width;
333 frame->height = pixm->height;
334 frame->offs_h = 0;
335 frame->offs_v = 0;
336 frame->fmt = fmt;
346 struct fimc_frame *frame;
361 frame = &ctx->s_frame;
363 frame = &ctx->d_frame;
370 __set_frame_format(frame, fmt, &f->fmt.pix_mp);
382 const struct fimc_frame *frame;
384 frame = ctx_get_frame(ctx, s->type);
385 if (IS_ERR(frame))
386 return PTR_ERR(frame);
408 s->r.left = frame->offs_h;
409 s->r.top = frame->offs_v;
410 s->r.width = frame->width;
411 s->r.height = frame->height;
419 s->r.width = frame->o_width;
420 s->r.height = frame->o_height;