Lines Matching full:frame

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