Lines Matching refs:pixm
672 struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; in fimc_lite_g_fmt_mplane() local
673 struct v4l2_plane_pix_format *plane_fmt = &pixm->plane_fmt[0]; in fimc_lite_g_fmt_mplane()
680 pixm->num_planes = fmt->memplanes; in fimc_lite_g_fmt_mplane()
681 pixm->pixelformat = fmt->fourcc; in fimc_lite_g_fmt_mplane()
682 pixm->width = frame->f_width; in fimc_lite_g_fmt_mplane()
683 pixm->height = frame->f_height; in fimc_lite_g_fmt_mplane()
684 pixm->field = V4L2_FIELD_NONE; in fimc_lite_g_fmt_mplane()
685 pixm->colorspace = fmt->colorspace; in fimc_lite_g_fmt_mplane()
690 struct v4l2_pix_format_mplane *pixm, in fimc_lite_try_fmt() argument
693 u32 bpl = pixm->plane_fmt[0].bytesperline; in fimc_lite_try_fmt()
706 fmt = fimc_lite_find_format(&pixm->pixelformat, NULL, in fimc_lite_try_fmt()
715 v4l_bound_align_image(&pixm->width, 8, dd->max_width, in fimc_lite_try_fmt()
717 &pixm->height, 0, dd->max_height, 0, 0); in fimc_lite_try_fmt()
719 if ((bpl == 0 || ((bpl * 8) / fmt->depth[0]) < pixm->width)) in fimc_lite_try_fmt()
720 pixm->plane_fmt[0].bytesperline = (pixm->width * in fimc_lite_try_fmt()
723 if (pixm->plane_fmt[0].sizeimage == 0) in fimc_lite_try_fmt()
724 pixm->plane_fmt[0].sizeimage = (pixm->width * pixm->height * in fimc_lite_try_fmt()
726 pixm->num_planes = fmt->memplanes; in fimc_lite_try_fmt()
727 pixm->pixelformat = fmt->fourcc; in fimc_lite_try_fmt()
728 pixm->colorspace = fmt->colorspace; in fimc_lite_try_fmt()
729 pixm->field = V4L2_FIELD_NONE; in fimc_lite_try_fmt()
743 struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; in fimc_lite_s_fmt_mplane() local
757 fimc->payload[0] = max((pixm->width * pixm->height * fmt->depth[0]) / 8, in fimc_lite_s_fmt_mplane()
758 pixm->plane_fmt[0].sizeimage); in fimc_lite_s_fmt_mplane()
759 frame->f_width = pixm->width; in fimc_lite_s_fmt_mplane()
760 frame->f_height = pixm->height; in fimc_lite_s_fmt_mplane()