Lines Matching refs:pix_mp
360 format->fmt.pix_mp.pixelformat, in video_get_subdev_format()
367 return video_mbus_to_pix_mp(&fmt.format, &format->fmt.pix_mp, in video_get_subdev_format()
381 &video->active_fmt.fmt.pix_mp; in video_queue_setup()
410 &video->active_fmt.fmt.pix_mp; in video_buf_init()
438 &video->active_fmt.fmt.pix_mp; in video_buf_prepare()
465 struct v4l2_pix_format_mplane *pix = &video->active_fmt.fmt.pix_mp; in video_check_format()
467 struct v4l2_pix_format_mplane *sd_pix = &format.fmt.pix_mp; in video_check_format()
479 pix->field != format.fmt.pix_mp.field) in video_check_format()
685 struct v4l2_pix_format_mplane *pix_mp; in __video_try_fmt() local
694 pix_mp = &f->fmt.pix_mp; in __video_try_fmt()
697 for (i = 0; i < pix_mp->num_planes && i < 3; i++) { in __video_try_fmt()
698 p = &pix_mp->plane_fmt[i]; in __video_try_fmt()
707 if (pix_mp->pixelformat == video->formats[j].pixelformat) in __video_try_fmt()
714 width = pix_mp->width; in __video_try_fmt()
715 height = pix_mp->height; in __video_try_fmt()
717 memset(pix_mp, 0, sizeof(*pix_mp)); in __video_try_fmt()
719 pix_mp->pixelformat = fi->pixelformat; in __video_try_fmt()
720 pix_mp->width = clamp_t(u32, width, 1, CAMSS_FRAME_MAX_WIDTH); in __video_try_fmt()
721 pix_mp->height = clamp_t(u32, height, 1, CAMSS_FRAME_MAX_HEIGHT_RDI); in __video_try_fmt()
722 pix_mp->num_planes = fi->planes; in __video_try_fmt()
723 for (i = 0; i < pix_mp->num_planes; i++) { in __video_try_fmt()
724 bpl = pix_mp->width / fi->hsub[i].numerator * in __video_try_fmt()
727 pix_mp->plane_fmt[i].bytesperline = bpl; in __video_try_fmt()
728 pix_mp->plane_fmt[i].sizeimage = pix_mp->height / in __video_try_fmt()
732 pix_mp->field = V4L2_FIELD_NONE; in __video_try_fmt()
733 pix_mp->colorspace = V4L2_COLORSPACE_SRGB; in __video_try_fmt()
734 pix_mp->flags = 0; in __video_try_fmt()
735 pix_mp->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix_mp->colorspace); in __video_try_fmt()
736 pix_mp->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, in __video_try_fmt()
737 pix_mp->colorspace, pix_mp->ycbcr_enc); in __video_try_fmt()
738 pix_mp->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix_mp->colorspace); in __video_try_fmt()
741 for (i = 0; i < pix_mp->num_planes; i++) { in __video_try_fmt()
742 p = &pix_mp->plane_fmt[i]; in __video_try_fmt()
929 .fmt.pix_mp = { in msm_video_init_format()