Lines Matching refs:pix_mp
99 if (*num_planes != f->fmt.pix_mp.num_planes) in tegra_queue_setup()
102 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) { in tegra_queue_setup()
103 if (sizes[i] < f->fmt.pix_mp.plane_fmt[i].sizeimage) in tegra_queue_setup()
107 *num_planes = f->fmt.pix_mp.num_planes; in tegra_queue_setup()
109 for (i = 0; i < f->fmt.pix_mp.num_planes; i++) in tegra_queue_setup()
110 sizes[i] = f->fmt.pix_mp.plane_fmt[i].sizeimage; in tegra_queue_setup()
229 pixfmt = &ctx->coded_fmt.fmt.pix_mp; in tegra_buf_prepare()
232 pixfmt = &ctx->decoded_fmt.fmt.pix_mp; in tegra_buf_prepare()
411 f->fmt.pix_mp.pixelformat = fourcc; in tegra_reset_fmt()
412 f->fmt.pix_mp.field = V4L2_FIELD_NONE; in tegra_reset_fmt()
413 f->fmt.pix_mp.xfer_func = V4L2_XFER_FUNC_DEFAULT; in tegra_reset_fmt()
414 f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in tegra_reset_fmt()
415 f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_REC709; in tegra_reset_fmt()
416 f->fmt.pix_mp.quantization = V4L2_QUANTIZATION_DEFAULT; in tegra_reset_fmt()
428 f->fmt.pix_mp.width = ctx->coded_fmt_desc->frmsize.min_width; in tegra_reset_coded_fmt()
429 f->fmt.pix_mp.height = ctx->coded_fmt_desc->frmsize.min_height; in tegra_reset_coded_fmt()
473 tegra_fill_pixfmt_mp(&f->fmt.pix_mp, in tegra_reset_decoded_fmt()
475 ctx->coded_fmt.fmt.pix_mp.width, in tegra_reset_decoded_fmt()
476 ctx->coded_fmt.fmt.pix_mp.height); in tegra_reset_decoded_fmt()
536 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in tegra_try_decoded_fmt() local
554 if (coded_desc->decoded_fmts[i] == pix_mp->pixelformat) in tegra_try_decoded_fmt()
559 pix_mp->pixelformat = coded_desc->decoded_fmts[0]; in tegra_try_decoded_fmt()
562 v4l2_apply_frmsize_constraints(&pix_mp->width, in tegra_try_decoded_fmt()
563 &pix_mp->height, in tegra_try_decoded_fmt()
566 tegra_fill_pixfmt_mp(pix_mp, pix_mp->pixelformat, in tegra_try_decoded_fmt()
567 pix_mp->width, pix_mp->height); in tegra_try_decoded_fmt()
568 pix_mp->field = V4L2_FIELD_NONE; in tegra_try_decoded_fmt()
635 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in tegra_try_coded_fmt() local
638 int size = pix_mp->plane_fmt[0].sizeimage; in tegra_try_coded_fmt()
641 desc = tegra_find_coded_fmt_desc(ctx, pix_mp->pixelformat); in tegra_try_coded_fmt()
643 pix_mp->pixelformat = soc->coded_fmts[0].fourcc; in tegra_try_coded_fmt()
647 v4l2_apply_frmsize_constraints(&pix_mp->width, in tegra_try_coded_fmt()
648 &pix_mp->height, in tegra_try_coded_fmt()
651 pix_mp->plane_fmt[0].sizeimage = max(ALIGN(size, SXE_BUFFER), SZ_2M); in tegra_try_coded_fmt()
652 pix_mp->field = V4L2_FIELD_NONE; in tegra_try_coded_fmt()
653 pix_mp->num_planes = 1; in tegra_try_coded_fmt()
676 f->fmt.pix_mp.pixelformat != ctx->coded_fmt.fmt.pix_mp.pixelformat)) in tegra_s_coded_fmt()
692 desc = tegra_find_coded_fmt_desc(ctx, f->fmt.pix_mp.pixelformat); in tegra_s_coded_fmt()
712 cap_fmt->fmt.pix_mp.xfer_func = f->fmt.pix_mp.xfer_func; in tegra_s_coded_fmt()
713 cap_fmt->fmt.pix_mp.ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; in tegra_s_coded_fmt()
714 cap_fmt->fmt.pix_mp.colorspace = f->fmt.pix_mp.colorspace; in tegra_s_coded_fmt()
715 cap_fmt->fmt.pix_mp.quantization = f->fmt.pix_mp.quantization; in tegra_s_coded_fmt()