Home
last modified time | relevance | path

Searched refs:fmtinfo (Results 1 – 9 of 9) sorted by relevance

/drivers/media/platform/vsp1/
Dvsp1_rpf.c55 const struct vsp1_format_info *fmtinfo = rpf->fmtinfo; in rpf_configure() local
112 + crop.left * fmtinfo->bpp[0] / 8; in rpf_configure()
118 + crop.left / fmtinfo->hsub in rpf_configure()
119 * fmtinfo->bpp[1] / 8; in rpf_configure()
129 fmtinfo->swap_uv) in rpf_configure()
156 | (fmtinfo->hwfmt << VI6_RPF_INFMT_RDFMT_SHIFT); in rpf_configure()
158 if (fmtinfo->swap_yc) in rpf_configure()
160 if (fmtinfo->swap_uv) in rpf_configure()
167 vsp1_rpf_write(rpf, dl, VI6_RPF_DSWAP, fmtinfo->swap); in rpf_configure()
209 (fmtinfo->alpha ? VI6_RPF_ALPH_SEL_ASEL_PACKED in rpf_configure()
[all …]
Dvsp1_wpf.c282 const struct vsp1_format_info *fmtinfo = wpf->fmtinfo; in wpf_configure() local
332 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure()
333 unsigned int vsub = i > 0 ? fmtinfo->vsub : 1; in wpf_configure()
340 * fmtinfo->bpp[i] / 8; in wpf_configure()
359 offset = (height / fmtinfo->vsub - 1) in wpf_configure()
374 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure()
377 * fmtinfo->bpp[i] / 8; in wpf_configure()
386 fmtinfo->swap_uv) in wpf_configure()
398 const struct vsp1_format_info *fmtinfo = wpf->fmtinfo; in wpf_configure() local
400 outfmt = fmtinfo->hwfmt << VI6_WPF_OUTFMT_WRFMT_SHIFT; in wpf_configure()
[all …]
Dvsp1_drm.c309 const struct vsp1_format_info *fmtinfo; in vsp1_du_atomic_update() local
342 fmtinfo = vsp1_get_format_info(vsp1, cfg->pixelformat); in vsp1_du_atomic_update()
343 if (!fmtinfo) { in vsp1_du_atomic_update()
349 rpf->fmtinfo = fmtinfo; in vsp1_du_atomic_update()
350 rpf->format.num_planes = fmtinfo->planes; in vsp1_du_atomic_update()
389 format.format.code = rpf->fmtinfo->mbus; in vsp1_du_setup_rpf_pipe()
Dvsp1_video.c84 if (video->rwpf->fmtinfo->mbus != fmt.format.code || in vsp1_video_verify_format()
94 const struct vsp1_format_info **fmtinfo) in __vsp1_video_try_format() argument
175 if (fmtinfo) in __vsp1_video_try_format()
176 *fmtinfo = info; in __vsp1_video_try_format()
837 uds->scale_alpha = rpf->fmtinfo->alpha; in vsp1_video_setup_pipeline()
1040 video->rwpf->fmtinfo = info; in vsp1_video_set_format()
1225 __vsp1_video_try_format(video, &rwpf->format, &rwpf->fmtinfo); in vsp1_video_create()
Dvsp1_rwpf.h49 const struct vsp1_format_info *fmtinfo; member
/drivers/media/platform/xilinx/
Dxilinx-dma.c76 if (dma->fmtinfo->code != fmt.format.code || in xvip_dma_verify_format()
370 dma->sgl[0].size = dma->format.width * dma->fmtinfo->bpp; in xvip_dma_buffer_queue()
528 strlcpy(f->description, dma->fmtinfo->description, in xvip_dma_enum_format()
547 const struct xvip_video_format **fmtinfo) in __xvip_dma_try_format() argument
592 if (fmtinfo) in __xvip_dma_try_format()
593 *fmtinfo = info; in __xvip_dma_try_format()
619 dma->fmtinfo = info; in xvip_dma_set_format()
673 dma->fmtinfo = xvip_get_format_by_fourcc(XVIP_DMA_DEF_FORMAT); in xvip_dma_init()
674 dma->format.pixelformat = dma->fmtinfo->fourcc; in xvip_dma_init()
679 dma->format.bytesperline = dma->format.width * dma->fmtinfo->bpp; in xvip_dma_init()
Dxilinx-dma.h87 const struct xvip_video_format *fmtinfo; member
/drivers/media/platform/
Drcar_jpu.c266 struct jpu_fmt *fmtinfo; member
775 static int __jpu_try_fmt(struct jpu_ctx *ctx, struct jpu_fmt **fmtinfo, in __jpu_try_fmt() argument
837 if (fmtinfo) in __jpu_try_fmt()
838 *fmtinfo = fmt; in __jpu_try_fmt()
858 struct jpu_fmt *fmtinfo; in jpu_s_fmt() local
871 ret = __jpu_try_fmt(ctx, &fmtinfo, &f->fmt.pix_mp, f->type); in jpu_s_fmt()
878 q_data->fmtinfo = fmtinfo; in jpu_s_fmt()
1108 __jpu_try_fmt(ctx, &adjust.fmtinfo, &adjust.format, in jpu_buf_queue()
1155 *(buffer + JPU_JPEG_SUBS_OFFSET) = q_data->fmtinfo->subsampling; in jpu_buf_finish()
1256 __jpu_try_fmt(ctx, &ctx->out_q.fmtinfo, &ctx->out_q.format, in jpu_open()
[all …]
Drcar_fdp1.c1461 const struct fdp1_fmt **fmtinfo, in fdp1_try_fmt_output() argument
1473 if (fmtinfo) in fdp1_try_fmt_output()
1474 *fmtinfo = fmt; in fdp1_try_fmt_output()
1517 const struct fdp1_fmt **fmtinfo, in fdp1_try_fmt_capture() argument
1555 if (fmtinfo) in fdp1_try_fmt_capture()
1556 *fmtinfo = fmt; in fdp1_try_fmt_capture()
1615 const struct fdp1_fmt *fmtinfo; in fdp1_set_format() local
1618 fdp1_try_fmt_output(ctx, &fmtinfo, pix); in fdp1_set_format()
1620 fdp1_try_fmt_capture(ctx, &fmtinfo, pix); in fdp1_set_format()
1622 q_data->fmt = fmtinfo; in fdp1_set_format()