Lines Matching refs:pix_mp

292 	struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp;  in mdp_map_ycbcr_prof_mplane()  local
297 switch (pix_mp->colorspace) { in mdp_map_ycbcr_prof_mplane()
302 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE) in mdp_map_ycbcr_prof_mplane()
306 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE) in mdp_map_ycbcr_prof_mplane()
310 if (pix_mp->quantization == V4L2_QUANTIZATION_FULL_RANGE) in mdp_map_ycbcr_prof_mplane()
374 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mdp_try_fmt_mplane() local
381 fmt = mdp_find_fmt(pix_mp->pixelformat, f->type); in mdp_try_fmt_mplane()
386 (pix_mp->pixelformat & 0xff), in mdp_try_fmt_mplane()
387 (pix_mp->pixelformat >> 8) & 0xff, in mdp_try_fmt_mplane()
388 (pix_mp->pixelformat >> 16) & 0xff, in mdp_try_fmt_mplane()
389 (pix_mp->pixelformat >> 24) & 0xff); in mdp_try_fmt_mplane()
394 pix_mp->field = V4L2_FIELD_NONE; in mdp_try_fmt_mplane()
395 pix_mp->flags = 0; in mdp_try_fmt_mplane()
396 pix_mp->pixelformat = fmt->pixelformat; in mdp_try_fmt_mplane()
398 pix_mp->colorspace = param->colorspace; in mdp_try_fmt_mplane()
399 pix_mp->xfer_func = param->xfer_func; in mdp_try_fmt_mplane()
400 pix_mp->ycbcr_enc = param->ycbcr_enc; in mdp_try_fmt_mplane()
401 pix_mp->quantization = param->quant; in mdp_try_fmt_mplane()
412 org_w = pix_mp->width; in mdp_try_fmt_mplane()
413 org_h = pix_mp->height; in mdp_try_fmt_mplane()
415 mdp_bound_align_image(&pix_mp->width, &pix_mp->height, &s, fmt->salign); in mdp_try_fmt_mplane()
416 if (org_w != pix_mp->width || org_h != pix_mp->height) in mdp_try_fmt_mplane()
418 org_w, org_h, pix_mp->width, pix_mp->height); in mdp_try_fmt_mplane()
420 if (pix_mp->num_planes && pix_mp->num_planes != fmt->num_planes) in mdp_try_fmt_mplane()
422 pix_mp->num_planes, fmt->num_planes); in mdp_try_fmt_mplane()
423 pix_mp->num_planes = fmt->num_planes; in mdp_try_fmt_mplane()
425 for (i = 0; i < pix_mp->num_planes; ++i) { in mdp_try_fmt_mplane()
426 u32 min_bpl = (pix_mp->width * fmt->row_depth[i]) >> 3; in mdp_try_fmt_mplane()
428 u32 bpl = pix_mp->plane_fmt[i].bytesperline; in mdp_try_fmt_mplane()
430 u32 si = pix_mp->plane_fmt[i].sizeimage; in mdp_try_fmt_mplane()
433 pix_mp->plane_fmt[i].bytesperline = bpl; in mdp_try_fmt_mplane()
435 min_si = (bpl * pix_mp->height * fmt->depth[i]) / in mdp_try_fmt_mplane()
441 pix_mp->plane_fmt[i].sizeimage = si; in mdp_try_fmt_mplane()
485 framew = frame->format.fmt.pix_mp.width; in mdp_try_crop()
486 frameh = frame->format.fmt.pix_mp.height; in mdp_try_crop()
606 struct v4l2_pix_format_mplane *pix_mp = &frame->format.fmt.pix_mp; in mdp_prepare_buffer() local
611 for (i = 0; i < pix_mp->num_planes; ++i) { in mdp_prepare_buffer()
613 pix_mp->plane_fmt[i].bytesperline, i); in mdp_prepare_buffer()
618 pix_mp->height, i); in mdp_prepare_buffer()
628 pix_mp->height, i); in mdp_prepare_buffer()
637 in->buffer.format.width = frame->format.fmt.pix_mp.width; in mdp_set_src_config()
638 in->buffer.format.height = frame->format.fmt.pix_mp.height; in mdp_set_src_config()
729 frame->crop.c.width = param->output.format.fmt.pix_mp.width; in mdp_frameparam_init()
730 frame->crop.c.height = param->output.format.fmt.pix_mp.height; in mdp_frameparam_init()
731 frame->compose.width = frame->format.fmt.pix_mp.width; in mdp_frameparam_init()
732 frame->compose.height = frame->format.fmt.pix_mp.height; in mdp_frameparam_init()