Home
last modified time | relevance | path

Searched refs:pix_mp (Results 1 – 25 of 50) sorted by relevance

12

/linux/drivers/staging/media/hantro/
A Dhantro_v4l2.c214 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt_out_mplane() local
219 *pix_mp = ctx->src_fmt; in vidioc_g_fmt_out_mplane()
227 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt_cap_mplane() local
232 *pix_mp = ctx->dst_fmt; in vidioc_g_fmt_cap_mplane()
276 v4l2_apply_frmsize_constraints(&pix_mp->width, &pix_mp->height, in hantro_try_fmt()
281 v4l2_fill_pixfmt_mp(pix_mp, fmt->fourcc, pix_mp->width, in hantro_try_fmt()
282 pix_mp->height); in hantro_try_fmt()
295 pix_mp->width * pix_mp->height * fmt->max_depth; in hantro_try_fmt()
445 ctx->src_fmt = *pix_mp; in hantro_set_fmt_out()
469 pix_mp->width, pix_mp->height); in hantro_set_fmt_out()
[all …]
/linux/drivers/media/platform/mtk-jpeg/
A Dmtk_jpeg_core.c310 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mtk_jpeg_g_fmt_vid_mplane() local
321 pix_mp->width = q_data->pix_mp.width; in mtk_jpeg_g_fmt_vid_mplane()
322 pix_mp->height = q_data->pix_mp.height; in mtk_jpeg_g_fmt_vid_mplane()
326 pix_mp->colorspace = q_data->pix_mp.colorspace; in mtk_jpeg_g_fmt_vid_mplane()
327 pix_mp->ycbcr_enc = q_data->pix_mp.ycbcr_enc; in mtk_jpeg_g_fmt_vid_mplane()
328 pix_mp->xfer_func = q_data->pix_mp.xfer_func; in mtk_jpeg_g_fmt_vid_mplane()
329 pix_mp->quantization = q_data->pix_mp.quantization; in mtk_jpeg_g_fmt_vid_mplane()
337 pix_mp->width, pix_mp->height); in mtk_jpeg_g_fmt_vid_mplane()
435 q_data->pix_mp.width = pix_mp->width; in mtk_jpeg_s_fmt_mplane()
436 q_data->pix_mp.height = pix_mp->height; in mtk_jpeg_s_fmt_mplane()
[all …]
A Dmtk_jpeg_core.h137 struct v4l2_pix_format_mplane pix_mp; member
/linux/drivers/staging/media/rkvdec/
A Drkvdec.c213 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in rkvdec_try_capture_fmt() local
237 &pix_mp->height, in rkvdec_try_capture_fmt()
240 v4l2_fill_pixfmt_mp(pix_mp, pix_mp->pixelformat, in rkvdec_try_capture_fmt()
241 pix_mp->width, pix_mp->height); in rkvdec_try_capture_fmt()
254 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in rkvdec_try_output_fmt() local
270 pix_mp->num_planes = 1; in rkvdec_try_output_fmt()
322 f->fmt.pix_mp.pixelformat != ctx->coded_fmt.fmt.pix_mp.pixelformat)) in rkvdec_s_output_fmt()
357 cap_fmt->fmt.pix_mp.colorspace = f->fmt.pix_mp.colorspace; in rkvdec_s_output_fmt()
358 cap_fmt->fmt.pix_mp.xfer_func = f->fmt.pix_mp.xfer_func; in rkvdec_s_output_fmt()
359 cap_fmt->fmt.pix_mp.ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; in rkvdec_s_output_fmt()
[all …]
/linux/drivers/media/platform/mtk-mdp/
A Dmtk_mdp_m2m.c178 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mtk_mdp_try_fmt_mplane() local
190 pix_mp->pixelformat); in mtk_mdp_try_fmt_mplane()
224 ctx->id, f->type, pix_mp->width, pix_mp->height, in mtk_mdp_try_fmt_mplane()
230 org_w = pix_mp->width; in mtk_mdp_try_fmt_mplane()
236 if (org_w != pix_mp->width || org_h != pix_mp->height) in mtk_mdp_try_fmt_mplane()
238 org_w, org_h, pix_mp->width, pix_mp->height); in mtk_mdp_try_fmt_mplane()
243 int sizeimage = (pix_mp->width * pix_mp->height * in mtk_mdp_try_fmt_mplane()
640 pix_mp = &f->fmt.pix_mp; in mtk_mdp_m2m_g_fmt_mplane()
652 pix_mp->width, pix_mp->height); in mtk_mdp_m2m_g_fmt_mplane()
704 pix_mp = &f->fmt.pix_mp; in mtk_mdp_m2m_s_fmt_mplane()
[all …]
/linux/drivers/media/platform/qcom/camss/
A Dcamss-video.c694 pix_mp = &f->fmt.pix_mp; in __video_try_fmt()
698 p = &pix_mp->plane_fmt[i]; 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()
728 pix_mp->plane_fmt[i].sizeimage = pix_mp->height / 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()
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()
[all …]
/linux/drivers/media/platform/mtk-vcodec/
A Dmtk_vcodec_dec.c410 pix_mp = &f->fmt.pix_mp; in vidioc_vdec_s_fmt()
451 q_data->coded_width = pix_mp->width; in vidioc_vdec_s_fmt()
455 ctx->ycbcr_enc = pix_mp->ycbcr_enc; in vidioc_vdec_s_fmt()
457 ctx->xfer_func = pix_mp->xfer_func; in vidioc_vdec_s_fmt()
476 ctx->picinfo.pic_w = pix_mp->width; in vidioc_vdec_s_fmt()
477 ctx->picinfo.pic_h = pix_mp->height; in vidioc_vdec_s_fmt()
601 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in vidioc_vdec_g_fmt() local
613 pix_mp->field = V4L2_FIELD_NONE; in vidioc_vdec_g_fmt()
614 pix_mp->colorspace = ctx->colorspace; in vidioc_vdec_g_fmt()
615 pix_mp->ycbcr_enc = ctx->ycbcr_enc; in vidioc_vdec_g_fmt()
[all …]
A Dmtk_vcodec_enc.c433 q_data->coded_width = f->fmt.pix_mp.width; in vidioc_venc_s_fmt_cap()
435 q_data->field = f->fmt.pix_mp.field; in vidioc_venc_s_fmt_cap()
440 plane_fmt = &f->fmt.pix_mp.plane_fmt[i]; in vidioc_venc_s_fmt_cap()
498 q_data->coded_width = f->fmt.pix_mp.width; in vidioc_venc_s_fmt_out()
501 q_data->field = f->fmt.pix_mp.field; in vidioc_venc_s_fmt_out()
503 ctx->ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; in vidioc_venc_s_fmt_out()
505 ctx->xfer_func = f->fmt.pix_mp.xfer_func; in vidioc_venc_s_fmt_out()
510 plane_fmt = &f->fmt.pix_mp.plane_fmt[i]; in vidioc_venc_s_fmt_out()
565 f->fmt.pix_mp.ycbcr_enc = ctx->ycbcr_enc; in vidioc_try_fmt_vid_cap_mplane()
567 f->fmt.pix_mp.xfer_func = ctx->xfer_func; in vidioc_try_fmt_vid_cap_mplane()
[all …]
/linux/drivers/media/test-drivers/vicodec/
A Dvicodec-core.c801 pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt()
865 pix_mp = &f->fmt.pix_mp; in vidioc_try_fmt()
872 pix_mp->width = clamp(pix_mp->width, MIN_WIDTH, MAX_WIDTH); in vidioc_try_fmt()
873 pix_mp->width = vic_round_dim(pix_mp->width, info->width_div); in vidioc_try_fmt()
876 pix_mp->height = vic_round_dim(pix_mp->height, in vidioc_try_fmt()
882 plane->sizeimage = pix_mp->width * pix_mp->height * in vidioc_try_fmt()
916 pix_mp = &f->fmt.pix_mp; in vidioc_try_fmt_vid_cap()
955 pix_mp = &f->fmt.pix_mp; in vidioc_try_fmt_vid_out()
957 pix_mp->pixelformat = find_fmt(pix_mp->pixelformat)->id; in vidioc_try_fmt_vid_out()
1014 pix_mp = &f->fmt.pix_mp; in vidioc_s_fmt()
[all …]
/linux/drivers/media/platform/exynos-gsc/
A Dgsc-core.c394 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in gsc_try_fmt_mplane() local
400 pr_debug("user put w: %d, h: %d", pix_mp->width, pix_mp->height); in gsc_try_fmt_mplane()
405 pix_mp->pixelformat); in gsc_try_fmt_mplane()
439 tmp_w = pix_mp->width; in gsc_try_fmt_mplane()
440 tmp_h = pix_mp->height; in gsc_try_fmt_mplane()
444 if (tmp_w != pix_mp->width || tmp_h != pix_mp->height) in gsc_try_fmt_mplane()
446 tmp_w, tmp_h, pix_mp->width, pix_mp->height); in gsc_try_fmt_mplane()
463 bpl = pix_mp->width; in gsc_try_fmt_mplane()
469 plane_fmt->sizeimage = max(pix_mp->width * pix_mp->height * in gsc_try_fmt_mplane()
489 pix_mp = &f->fmt.pix_mp; in gsc_g_fmt_mplane()
[all …]
/linux/drivers/media/platform/s5p-mfc/
A Ds5p_mfc_dec.c322 pix_mp = &f->fmt.pix_mp; in vidioc_g_fmt()
339 pix_mp->width = ctx->buf_width; in vidioc_g_fmt()
340 pix_mp->height = ctx->buf_height; in vidioc_g_fmt()
341 pix_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt()
342 pix_mp->num_planes = 2; in vidioc_g_fmt()
354 pix_mp->width = 0; in vidioc_g_fmt()
355 pix_mp->height = 0; in vidioc_g_fmt()
356 pix_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt()
417 pix_mp = &f->fmt.pix_mp; in vidioc_s_fmt()
435 pix_mp->height = 0; in vidioc_s_fmt()
[all …]
/linux/drivers/media/platform/imx-jpeg/
A Dmxc-jpeg.c1571 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mxc_jpeg_try_fmt() local
1580 memset(pix_mp->reserved, 0, sizeof(pix_mp->reserved)); in mxc_jpeg_try_fmt()
1581 pix_mp->field = V4L2_FIELD_NONE; in mxc_jpeg_try_fmt()
1607 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
1618 pfmt = &pix_mp->plane_fmt[i]; in mxc_jpeg_try_fmt()
1705 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mxc_jpeg_s_fmt() local
1721 q_data->w = pix_mp->width; in mxc_jpeg_s_fmt()
1722 q_data->h = pix_mp->height; in mxc_jpeg_s_fmt()
1794 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in mxc_jpeg_g_fmt_vid() local
1804 pix_mp->width = q_data->w; in mxc_jpeg_g_fmt_vid()
[all …]
/linux/drivers/staging/media/ipu3/
A Dipu3-v4l2.c32 imgu_pipe->nodes[IMGU_NODE_IN].vdev_fmt.fmt.pix_mp.width; in imgu_subdev_open()
34 imgu_pipe->nodes[IMGU_NODE_IN].vdev_fmt.fmt.pix_mp.height; in imgu_subdev_open()
91 &imgu_pipe->nodes[node].vdev_fmt.fmt.pix_mp : NULL; in imgu_subdev_s_stream()
397 size = fmt->fmt.pix_mp.plane_fmt[0].sizeimage; in imgu_vb2_queue_setup()
706 fmts[i] = &f->fmt.pix_mp; in imgu_fmt()
757 imgu_pipe->nodes[node].vdev_fmt.fmt.pix_mp = f->fmt.pix_mp; in imgu_fmt()
792 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in imgu_vidioc_try_fmt() local
796 pix_mp->width, pix_mp->height, node->id); in imgu_vidioc_try_fmt()
810 struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; in imgu_vidioc_s_fmt() local
814 pix_mp->width, pix_mp->height, node->id); in imgu_vidioc_s_fmt()
[all …]
/linux/drivers/staging/media/meson/vdec/
A Dvdec.c626 format.fmt.pix_mp.pixelformat = pixfmt_out; in vdec_s_fmt()
627 format.fmt.pix_mp.width = orig_pixmp.width; in vdec_s_fmt()
628 format.fmt.pix_mp.height = orig_pixmp.height; in vdec_s_fmt()
632 sess->width = format.fmt.pix_mp.width; in vdec_s_fmt()
633 sess->height = format.fmt.pix_mp.height; in vdec_s_fmt()
644 format.fmt.pix_mp.pixelformat = pixfmt_cap; in vdec_s_fmt()
645 format.fmt.pix_mp.width = orig_pixmp.width; in vdec_s_fmt()
646 format.fmt.pix_mp.height = orig_pixmp.height; in vdec_s_fmt()
649 sess->width = format.fmt.pix_mp.width; in vdec_s_fmt()
650 sess->height = format.fmt.pix_mp.height; in vdec_s_fmt()
[all …]
/linux/drivers/media/platform/qcom/venus/
A Dvdec.c303 format.fmt.pix_mp.pixelformat = pixfmt_out; in vdec_s_fmt()
304 format.fmt.pix_mp.width = orig_pixmp.width; in vdec_s_fmt()
305 format.fmt.pix_mp.height = orig_pixmp.height; in vdec_s_fmt()
309 inst->out_width = format.fmt.pix_mp.width; in vdec_s_fmt()
321 format.fmt.pix_mp.pixelformat = pixfmt_cap; in vdec_s_fmt()
322 format.fmt.pix_mp.width = orig_pixmp.width; in vdec_s_fmt()
326 inst->width = format.fmt.pix_mp.width; in vdec_s_fmt()
327 inst->height = format.fmt.pix_mp.height; in vdec_s_fmt()
1404 format.fmt.pix_mp.width = ev_data->width; in vdec_event_change()
1409 inst->width = format.fmt.pix_mp.width; in vdec_event_change()
[all …]
A Dvenc.c169 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_try_fmt_common()
264 format.fmt.pix_mp.pixelformat = pixfmt_out; in venc_s_fmt()
265 format.fmt.pix_mp.width = orig_pixmp.width; in venc_s_fmt()
266 format.fmt.pix_mp.height = orig_pixmp.height; in venc_s_fmt()
270 inst->out_width = format.fmt.pix_mp.width; in venc_s_fmt()
271 inst->out_height = format.fmt.pix_mp.height; in venc_s_fmt()
281 format.fmt.pix_mp.pixelformat = pixfmt_cap; in venc_s_fmt()
282 format.fmt.pix_mp.width = orig_pixmp.width; in venc_s_fmt()
283 format.fmt.pix_mp.height = orig_pixmp.height; in venc_s_fmt()
286 inst->width = format.fmt.pix_mp.width; in venc_s_fmt()
[all …]
/linux/drivers/media/platform/sunxi/sun4i-csi/
A Dsun4i_v4l2.c140 _sun4i_csi_try_fmt(csi, &f->fmt.pix_mp); in sun4i_csi_try_fmt_vid_cap()
150 _sun4i_csi_try_fmt(csi, &f->fmt.pix_mp); in sun4i_csi_s_fmt_vid_cap()
151 csi->fmt = f->fmt.pix_mp; in sun4i_csi_s_fmt_vid_cap()
161 f->fmt.pix_mp = csi->fmt; in sun4i_csi_g_fmt_vid_cap()
/linux/drivers/media/platform/
A Drcar_fdp1.c1416 f->fmt.pix_mp = q_data->format; in fdp1_g_fmt()
1590 fdp1_try_fmt_output(ctx, NULL, &f->fmt.pix_mp); in fdp1_try_fmt()
1592 fdp1_try_fmt_capture(ctx, NULL, &f->fmt.pix_mp); in fdp1_try_fmt()
1596 (char *)&f->fmt.pix_mp.pixelformat, f->fmt.pix_mp.pixelformat, in fdp1_try_fmt()
1597 f->fmt.pix_mp.width, f->fmt.pix_mp.height, f->fmt.pix_mp.field); in fdp1_try_fmt()
1667 fdp1_set_format(ctx, &f->fmt.pix_mp, f->type); in fdp1_s_fmt()
1671 (char *)&f->fmt.pix_mp.pixelformat, f->fmt.pix_mp.pixelformat, in fdp1_s_fmt()
1672 f->fmt.pix_mp.width, f->fmt.pix_mp.height, f->fmt.pix_mp.field); in fdp1_s_fmt()
A Drenesas-ceu.c794 struct v4l2_pix_format_mplane *pix = &v4l2_fmt->fmt.pix_mp; in __ceu_try_fmt()
914 v4l2_fill_mbus_format_mplane(&format.format, &v4l2_fmt->fmt.pix_mp); in ceu_set_fmt()
919 ceudev->v4l2_pix = v4l2_fmt->fmt.pix_mp; in ceu_set_fmt()
935 .fmt.pix_mp = { in ceu_set_default_fmt()
958 ceudev->v4l2_pix = v4l2_fmt.fmt.pix_mp; in ceu_set_default_fmt()
1187 f->fmt.pix_mp = ceudev->v4l2_pix; in ceu_g_fmt_vid_cap()
/linux/drivers/media/platform/ti-vpe/
A Dvpe.c873 spix = &s_q_data->format.fmt.pix_mp; in set_srcdst_params()
1034 pix = &q_data->format.fmt.pix_mp; in add_out_dtd()
1041 pix = &q_data->format.fmt.pix_mp; in add_out_dtd()
1098 pix = &q_data->format.fmt.pix_mp; in add_in_dtd()
1585 spix = &s_q_data->format.fmt.pix_mp; in vpe_g_fmt()
1751 qpix = &q_data->format.fmt.pix_mp; in __vpe_s_fmt()
1818 pix = &q_data->format.fmt.pix_mp; in __vpe_try_selection()
1887 pix = &q_data->format.fmt.pix_mp; in vpe_g_selection()
2037 pix = &q_data->format.fmt.pix_mp; in vpe_queue_setup()
2065 pix = &q_data->format.fmt.pix_mp; in vpe_buf_prepare()
[all …]
A Dcsc.c153 mp = &src_fmt->fmt.pix_mp; in csc_set_coeff()
165 mp = &dst_fmt->fmt.pix_mp; in csc_set_coeff()
/linux/drivers/media/v4l2-core/
A Dv4l2-compat-ioctl32.c111 struct v4l2_pix_format_mplane pix_mp; member
157 return copy_from_user(&p64->fmt.pix_mp, &p32->fmt.pix_mp, in get_v4l2_format32()
158 sizeof(p64->fmt.pix_mp)) ? -EFAULT : 0; in get_v4l2_format32()
204 return copy_to_user(&p32->fmt.pix_mp, &p64->fmt.pix_mp, in put_v4l2_format32()
205 sizeof(p64->fmt.pix_mp)) ? -EFAULT : 0; in put_v4l2_format32()
A Dv4l2-ioctl.c301 mp = &p->fmt.pix_mp; in v4l_print_format()
1014 fmt->fmt.pix_mp.num_planes = min_t(u32, fmt->fmt.pix_mp.num_planes, in v4l_sanitize_format()
1657 CLEAR_AFTER_FIELD(p, fmt.pix_mp.xfer_func); in v4l_s_fmt()
1658 for (i = 0; i < p->fmt.pix_mp.num_planes; i++) in v4l_s_fmt()
1659 CLEAR_AFTER_FIELD(&p->fmt.pix_mp.plane_fmt[i], in v4l_s_fmt()
1688 CLEAR_AFTER_FIELD(p, fmt.pix_mp.xfer_func); in v4l_s_fmt()
1689 for (i = 0; i < p->fmt.pix_mp.num_planes; i++) in v4l_s_fmt()
1759 CLEAR_AFTER_FIELD(p, fmt.pix_mp.xfer_func); in v4l_try_fmt()
1760 for (i = 0; i < p->fmt.pix_mp.num_planes; i++) in v4l_try_fmt()
1790 CLEAR_AFTER_FIELD(p, fmt.pix_mp.xfer_func); in v4l_try_fmt()
[all …]
/linux/drivers/media/platform/exynos4-is/
A Dfimc-m2m.c268 struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; in fimc_try_fmt_mplane()
306 fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); in fimc_try_fmt_mplane()
364 fmt = fimc_find_format(&f->fmt.pix_mp.pixelformat, NULL, in fimc_m2m_s_fmt_mplane()
369 __set_frame_format(frame, fmt, &f->fmt.pix_mp); in fimc_m2m_s_fmt_mplane()
A Dfimc-isp-video.c378 f->fmt.pix_mp = isp->video_capture.pixfmt; in isp_video_g_fmt_mplane()
412 __isp_video_try_fmt(isp, &f->fmt.pix_mp, NULL); in isp_video_try_fmt_mplane()
421 struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; in isp_video_s_fmt_mplane()

Completed in 86 milliseconds

12