Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/media/platform/ti/cal/
Dcal-video.c74 const struct cal_format_info *fmtinfo; in find_format_by_pix() local
78 fmtinfo = ctx->active_fmt[k]; in find_format_by_pix()
79 if (fmtinfo->fourcc == pixelformat) in find_format_by_pix()
80 return fmtinfo; in find_format_by_pix()
89 const struct cal_format_info *fmtinfo; in find_format_by_code() local
93 fmtinfo = ctx->active_fmt[k]; in find_format_by_code()
94 if (fmtinfo->code == code) in find_format_by_code()
95 return fmtinfo; in find_format_by_code()
105 const struct cal_format_info *fmtinfo; in cal_legacy_enum_fmt_vid_cap() local
110 fmtinfo = ctx->active_fmt[f->index]; in cal_legacy_enum_fmt_vid_cap()
[all …]
Dcal-camerarx.c52 const struct cal_format_info *fmtinfo; in cal_camerarx_get_ext_link_freq() local
62 fmtinfo = cal_format_by_code(fmt->code); in cal_camerarx_get_ext_link_freq()
63 if (!fmtinfo) in cal_camerarx_get_ext_link_freq()
66 bpp = fmtinfo->bpp; in cal_camerarx_get_ext_link_freq()
650 const struct cal_format_info *fmtinfo; in cal_camerarx_sd_enum_frame_size() local
669 fmtinfo = cal_format_by_code(fse->code); in cal_camerarx_sd_enum_frame_size()
670 if (!fmtinfo) in cal_camerarx_sd_enum_frame_size()
673 fse->min_width = CAL_MIN_WIDTH_BYTES * 8 / ALIGN(fmtinfo->bpp, 8); in cal_camerarx_sd_enum_frame_size()
674 fse->max_width = CAL_MAX_WIDTH_BYTES * 8 / ALIGN(fmtinfo->bpp, 8); in cal_camerarx_sd_enum_frame_size()
686 const struct cal_format_info *fmtinfo; in cal_camerarx_sd_set_fmt() local
[all …]
Dcal.h234 const struct cal_format_info *fmtinfo; member
Dcal.c330 switch (ctx->fmtinfo->bpp) { in cal_ctx_pix_proc_config()
359 __FILE__, __LINE__, __func__, ctx->fmtinfo->bpp); in cal_ctx_pix_proc_config()
493 ctx->use_pix_proc = !ctx->fmtinfo->meta; in cal_ctx_prepare()
/Linux-v6.6/drivers/media/platform/renesas/vsp1/
Dvsp1_rpf.c64 const struct vsp1_format_info *fmtinfo = rpf->fmtinfo; in rpf_configure_stream() local
99 | (fmtinfo->hwfmt << VI6_RPF_INFMT_RDFMT_SHIFT); in rpf_configure_stream()
101 if (fmtinfo->swap_yc) in rpf_configure_stream()
103 if (fmtinfo->swap_uv) in rpf_configure_stream()
110 vsp1_rpf_write(rpf, dlb, VI6_RPF_DSWAP, fmtinfo->swap); in rpf_configure_stream()
117 switch (fmtinfo->fourcc) { in rpf_configure_stream()
207 (fmtinfo->alpha ? VI6_RPF_ALPH_SEL_ASEL_PACKED in rpf_configure_stream()
213 if (fmtinfo->alpha) { in rpf_configure_stream()
301 const struct vsp1_format_info *fmtinfo = rpf->fmtinfo; in rpf_configure_partition() local
331 crop.height = round_down(crop.height / 2, fmtinfo->vsub); in rpf_configure_partition()
[all …]
Dvsp1_wpf.c281 const struct vsp1_format_info *fmtinfo = wpf->fmtinfo; in wpf_configure_stream() local
283 outfmt = fmtinfo->hwfmt << VI6_WPF_OUTFMT_WRFMT_SHIFT; in wpf_configure_stream()
288 if (fmtinfo->alpha) in wpf_configure_stream()
290 if (fmtinfo->swap_yc) in wpf_configure_stream()
292 if (fmtinfo->swap_uv) in wpf_configure_stream()
302 vsp1_wpf_write(wpf, dlb, VI6_WPF_DSWAP, fmtinfo->swap); in wpf_configure_stream()
401 const struct vsp1_format_info *fmtinfo = wpf->fmtinfo; in wpf_configure_partition() local
465 unsigned int hsub = i > 0 ? fmtinfo->hsub : 1; in wpf_configure_partition()
466 unsigned int vsub = i > 0 ? fmtinfo->vsub : 1; in wpf_configure_partition()
473 * fmtinfo->bpp[i] / 8; in wpf_configure_partition()
[all …]
Dvsp1_drm.c139 format.format.code = rpf->fmtinfo->mbus; in vsp1_du_pipeline_setup_rpf()
582 const struct vsp1_format_info *fmtinfo; in vsp1_du_pipeline_set_rwpf_format() local
585 fmtinfo = vsp1_get_format_info(vsp1, pixelformat); in vsp1_du_pipeline_set_rwpf_format()
586 if (!fmtinfo) { in vsp1_du_pipeline_set_rwpf_format()
598 chroma_hsub = (fmtinfo->planes == 3) ? fmtinfo->hsub : 1; in vsp1_du_pipeline_set_rwpf_format()
600 rwpf->fmtinfo = fmtinfo; in vsp1_du_pipeline_set_rwpf_format()
601 rwpf->format.num_planes = fmtinfo->planes; in vsp1_du_pipeline_set_rwpf_format()
Dvsp1_rwpf.h43 const struct vsp1_format_info *fmtinfo; member
Dvsp1_video.c79 if (video->rwpf->fmtinfo->mbus != fmt.format.code || in vsp1_video_verify_format()
89 const struct vsp1_format_info **fmtinfo) in __vsp1_video_try_format() argument
169 if (fmtinfo) in __vsp1_video_try_format()
170 *fmtinfo = info; in __vsp1_video_try_format()
814 uds->scale_alpha = rpf->fmtinfo->alpha; in vsp1_video_setup_pipeline()
1018 video->rwpf->fmtinfo = info; in vsp1_video_set_format()
1278 __vsp1_video_try_format(video, &rwpf->format, &rwpf->fmtinfo); in vsp1_video_create()
/Linux-v6.6/drivers/staging/media/tegra-video/
Dvi.c338 const struct tegra_video_format *fmtinfo; in tegra_channel_enum_framesizes() local
344 fmtinfo = tegra_get_format_by_fourcc(chan->vi, sizes->pixel_format); in tegra_channel_enum_framesizes()
345 if (!fmtinfo) in tegra_channel_enum_framesizes()
348 fse.code = fmtinfo->code; in tegra_channel_enum_framesizes()
368 const struct tegra_video_format *fmtinfo; in tegra_channel_enum_frameintervals() local
376 fmtinfo = tegra_get_format_by_fourcc(chan->vi, ivals->pixel_format); in tegra_channel_enum_frameintervals()
377 if (!fmtinfo) in tegra_channel_enum_frameintervals()
380 fie.code = fmtinfo->code; in tegra_channel_enum_frameintervals()
428 const struct tegra_video_format *fmtinfo; in __tegra_channel_try_format() local
460 fmtinfo = tegra_get_format_by_fourcc(chan->vi, pix->pixelformat); in __tegra_channel_try_format()
[all …]
Dtegra210.c265 u32 format = chan->fmtinfo->img_fmt; in tegra_channel_capture_setup()
266 u32 data_type = chan->fmtinfo->img_dt; in tegra_channel_capture_setup()
267 u32 word_count = (width * chan->fmtinfo->bit_width) / 8; in tegra_channel_capture_setup()
289 word_count = (width * chan->fmtinfo->bit_width) / 8; in tegra_channel_capture_setup()
398 if (chan->fmtinfo->fourcc != V4L2_PIX_FMT_NV16) in tegra_channel_vi_buffer_setup()
416 int gang_bpl = (chan->format.width >> 1) * chan->fmtinfo->bpp; in tegra_channel_capture_frame()
Dvi.h201 const struct tegra_video_format *fmtinfo; member
Dtegra20.c164 unsigned int input_mbus_code = chan->fmtinfo->code; in tegra20_vi_get_input_formats()
361 switch (chan->fmtinfo->fourcc) { in tegra20_channel_vi_buffer_setup()
/Linux-v6.6/drivers/media/platform/xilinx/
Dxilinx-dma.c73 if (dma->fmtinfo->code != fmt.format.code || in xvip_dma_verify_format()
351 dma->sgl[0].size = dma->format.width * dma->fmtinfo->bpp; in xvip_dma_buffer_queue()
520 const struct xvip_video_format **fmtinfo) in __xvip_dma_try_format() argument
563 if (fmtinfo) in __xvip_dma_try_format()
564 *fmtinfo = info; in __xvip_dma_try_format()
590 dma->fmtinfo = info; in xvip_dma_set_format()
644 dma->fmtinfo = xvip_get_format_by_fourcc(V4L2_PIX_FMT_YUYV); in xvip_dma_init()
645 dma->format.pixelformat = dma->fmtinfo->fourcc; in xvip_dma_init()
650 dma->format.bytesperline = dma->format.width * dma->fmtinfo->bpp; in xvip_dma_init()
Dxilinx-dma.h89 const struct xvip_video_format *fmtinfo; member
/Linux-v6.6/drivers/media/platform/renesas/
Drcar_jpu.c248 struct jpu_fmt *fmtinfo; member
761 static int __jpu_try_fmt(struct jpu_ctx *ctx, struct jpu_fmt **fmtinfo, in __jpu_try_fmt() argument
818 if (fmtinfo) in __jpu_try_fmt()
819 *fmtinfo = fmt; in __jpu_try_fmt()
839 struct jpu_fmt *fmtinfo; in jpu_s_fmt() local
852 ret = __jpu_try_fmt(ctx, &fmtinfo, &f->fmt.pix_mp, f->type); in jpu_s_fmt()
859 q_data->fmtinfo = fmtinfo; in jpu_s_fmt()
1089 __jpu_try_fmt(ctx, &adjust.fmtinfo, &adjust.format, in jpu_buf_queue()
1136 *(buffer + JPU_JPEG_SUBS_OFFSET) = q_data->fmtinfo->subsampling; in jpu_buf_finish()
1237 __jpu_try_fmt(ctx, &ctx->out_q.fmtinfo, &ctx->out_q.format, in jpu_open()
[all …]
Drcar_fdp1.c1453 const struct fdp1_fmt **fmtinfo, in fdp1_try_fmt_output() argument
1465 if (fmtinfo) in fdp1_try_fmt_output()
1466 *fmtinfo = fmt; in fdp1_try_fmt_output()
1509 const struct fdp1_fmt **fmtinfo, in fdp1_try_fmt_capture() argument
1547 if (fmtinfo) in fdp1_try_fmt_capture()
1548 *fmtinfo = fmt; in fdp1_try_fmt_capture()
1607 const struct fdp1_fmt *fmtinfo; in fdp1_set_format() local
1610 fdp1_try_fmt_output(ctx, &fmtinfo, pix); in fdp1_set_format()
1612 fdp1_try_fmt_capture(ctx, &fmtinfo, pix); in fdp1_set_format()
1614 q_data->fmt = fmtinfo; in fdp1_set_format()
/Linux-v6.6/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-video.c889 return mxc_isi_video_queue_setup(&video->pix, video->fmtinfo, in mxc_isi_vb2_queue_setup()
898 mxc_isi_video_buffer_init(vb2, buf->dma_addrs, video->fmtinfo, in mxc_isi_vb2_buffer_init()
909 video->fmtinfo, &video->pix); in mxc_isi_vb2_buffer_prepare()
934 mxc_isi_channel_set_output_format(pipe, video->fmtinfo, &video->pix); in mxc_isi_video_init_channel()
1141 video->fmtinfo = mxc_isi_format_try(video->pipe, pix, MXC_ISI_VIDEO_CAP); in mxc_isi_video_s_fmt()
1427 video->fmtinfo = mxc_isi_format_try(video->pipe, pix, MXC_ISI_VIDEO_CAP); in mxc_isi_video_register()
Dimx8-isi-core.h210 const struct mxc_isi_format_info *fmtinfo; member