Lines Matching refs:pixm

673 	struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp;  in fimc_lite_g_fmt_mplane()  local
674 struct v4l2_plane_pix_format *plane_fmt = &pixm->plane_fmt[0]; in fimc_lite_g_fmt_mplane()
681 pixm->num_planes = fmt->memplanes; in fimc_lite_g_fmt_mplane()
682 pixm->pixelformat = fmt->fourcc; in fimc_lite_g_fmt_mplane()
683 pixm->width = frame->f_width; in fimc_lite_g_fmt_mplane()
684 pixm->height = frame->f_height; in fimc_lite_g_fmt_mplane()
685 pixm->field = V4L2_FIELD_NONE; in fimc_lite_g_fmt_mplane()
686 pixm->colorspace = fmt->colorspace; in fimc_lite_g_fmt_mplane()
691 struct v4l2_pix_format_mplane *pixm, in fimc_lite_try_fmt() argument
694 u32 bpl = pixm->plane_fmt[0].bytesperline; in fimc_lite_try_fmt()
707 fmt = fimc_lite_find_format(&pixm->pixelformat, NULL, in fimc_lite_try_fmt()
716 v4l_bound_align_image(&pixm->width, 8, dd->max_width, in fimc_lite_try_fmt()
718 &pixm->height, 0, dd->max_height, 0, 0); in fimc_lite_try_fmt()
720 if ((bpl == 0 || ((bpl * 8) / fmt->depth[0]) < pixm->width)) in fimc_lite_try_fmt()
721 pixm->plane_fmt[0].bytesperline = (pixm->width * in fimc_lite_try_fmt()
724 if (pixm->plane_fmt[0].sizeimage == 0) in fimc_lite_try_fmt()
725 pixm->plane_fmt[0].sizeimage = (pixm->width * pixm->height * in fimc_lite_try_fmt()
727 pixm->num_planes = fmt->memplanes; in fimc_lite_try_fmt()
728 pixm->pixelformat = fmt->fourcc; in fimc_lite_try_fmt()
729 pixm->colorspace = fmt->colorspace; in fimc_lite_try_fmt()
730 pixm->field = V4L2_FIELD_NONE; in fimc_lite_try_fmt()
744 struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; in fimc_lite_s_fmt_mplane() local
758 fimc->payload[0] = max((pixm->width * pixm->height * fmt->depth[0]) / 8, in fimc_lite_s_fmt_mplane()
759 pixm->plane_fmt[0].sizeimage); in fimc_lite_s_fmt_mplane()
760 frame->f_width = pixm->width; in fimc_lite_s_fmt_mplane()
761 frame->f_height = pixm->height; in fimc_lite_s_fmt_mplane()