Lines Matching refs:frame

232 		 const struct v4l2_selection *s, struct mdp_frame *frame)
246 framew = frame->format.fmt.pix_mp.width;
247 frameh = frame->format.fmt.pix_mp.height;
253 walign = frame->mdp_fmt->walign;
254 halign = frame->mdp_fmt->halign;
307 bool mdp_check_pp_enable(struct mdp_dev *mdp, struct mdp_frame *frame)
311 if (!mdp || !frame)
319 r1 = frame->crop.c.width * frame->crop.c.height;
320 r2 = frame->compose.width * frame->compose.height;
383 struct mdp_frame *frame, struct vb2_buffer *vb)
385 struct v4l2_pix_format_mplane *pix_mp = &frame->format.fmt.pix_mp;
388 b->format.colorformat = frame->mdp_fmt->mdp_color;
389 b->format.ycbcr_prof = frame->ycbcr_prof;
391 u32 stride = mdp_fmt_get_stride(frame->mdp_fmt,
396 mdp_fmt_get_plane_size(frame->mdp_fmt, stride,
401 u32 stride = mdp_fmt_get_stride_contig(frame->mdp_fmt,
406 mdp_fmt_get_plane_size(frame->mdp_fmt, stride,
410 b->usage = frame->usage;
414 struct mdp_frame *frame, struct vb2_buffer *vb)
416 in->buffer.format.width = frame->format.fmt.pix_mp.width;
417 in->buffer.format.height = frame->format.fmt.pix_mp.height;
418 mdp_prepare_buffer(&in->buffer, frame, vb);
472 struct mdp_frame *frame, struct vb2_buffer *vb)
474 out->buffer.format.width = frame->compose.width;
475 out->buffer.format.height = frame->compose.height;
476 mdp_prepare_buffer(&out->buffer, frame, vb);
477 mdp_set_src_crop(&out->crop, &frame->crop);
478 mdp_set_orientation(out, frame->rotation, frame->hflip, frame->vflip);
483 struct mdp_frame *frame;
492 frame = &param->output;
493 frame->format.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
494 frame->mdp_fmt = mdp_try_fmt_mplane(mdp, &frame->format, param, 0);
495 frame->ycbcr_prof =
496 mdp_map_ycbcr_prof_mplane(&frame->format,
497 frame->mdp_fmt->mdp_color);
498 frame->usage = MDP_BUFFER_USAGE_HW_READ;
501 frame = &param->captures[0];
502 frame->format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
503 frame->mdp_fmt = mdp_try_fmt_mplane(mdp, &frame->format, param, 0);
504 frame->ycbcr_prof =
505 mdp_map_ycbcr_prof_mplane(&frame->format,
506 frame->mdp_fmt->mdp_color);
507 frame->usage = MDP_BUFFER_USAGE_MDP;
508 frame->crop.c.width = param->output.format.fmt.pix_mp.width;
509 frame->crop.c.height = param->output.format.fmt.pix_mp.height;
510 frame->compose.width = frame->format.fmt.pix_mp.width;
511 frame->compose.height = frame->format.fmt.pix_mp.height;