Home
last modified time | relevance | path

Searched refs:sink_fmt (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v5.10/drivers/media/test-drivers/vimc/
Dvimc-scaler.c31 struct v4l2_mbus_framefmt sink_fmt; member
63 vimc_sca_get_crop_bound_sink(const struct v4l2_mbus_framefmt *sink_fmt) in vimc_sca_get_crop_bound_sink() argument
69 .width = sink_fmt->width, in vimc_sca_get_crop_bound_sink()
70 .height = sink_fmt->height, in vimc_sca_get_crop_bound_sink()
76 const struct v4l2_mbus_framefmt *sink_fmt) in vimc_sca_adjust_sink_crop() argument
79 vimc_sca_get_crop_bound_sink(sink_fmt); in vimc_sca_adjust_sink_crop()
170 format->format = vsca->sink_fmt; in vimc_sca_get_fmt()
208 struct v4l2_mbus_framefmt *sink_fmt; in vimc_sca_set_fmt() local
216 sink_fmt = &vsca->sink_fmt; in vimc_sca_set_fmt()
219 sink_fmt = v4l2_subdev_get_try_format(sd, cfg, 0); in vimc_sca_set_fmt()
[all …]
Dvimc-common.c277 struct v4l2_pix_format source_fmt, sink_fmt; in vimc_vdev_link_validate() local
284 ret = vimc_get_pix_format(link->sink, &sink_fmt); in vimc_vdev_link_validate()
299 sink_fmt.width, sink_fmt.height, in vimc_vdev_link_validate()
300 sink_fmt.pixelformat, sink_fmt.colorspace, in vimc_vdev_link_validate()
301 sink_fmt.quantization, sink_fmt.xfer_func, in vimc_vdev_link_validate()
302 sink_fmt.ycbcr_enc); in vimc_vdev_link_validate()
305 if (source_fmt.width != sink_fmt.width || in vimc_vdev_link_validate()
306 source_fmt.height != sink_fmt.height || in vimc_vdev_link_validate()
307 source_fmt.pixelformat != sink_fmt.pixelformat) in vimc_vdev_link_validate()
315 if (source_fmt.field != sink_fmt.field && in vimc_vdev_link_validate()
[all …]
Dvimc-debayer.c33 struct v4l2_mbus_framefmt sink_fmt; member
224 vdeb->sink_fmt; in vimc_deb_get_fmt()
258 struct v4l2_mbus_framefmt *sink_fmt; in vimc_deb_set_fmt() local
266 sink_fmt = &vdeb->sink_fmt; in vimc_deb_set_fmt()
269 sink_fmt = v4l2_subdev_get_try_format(sd, cfg, 0); in vimc_deb_set_fmt()
280 fmt->format = *sink_fmt; in vimc_deb_set_fmt()
294 sink_fmt->width, sink_fmt->height, sink_fmt->code, in vimc_deb_set_fmt()
295 sink_fmt->colorspace, sink_fmt->quantization, in vimc_deb_set_fmt()
296 sink_fmt->xfer_func, sink_fmt->ycbcr_enc, in vimc_deb_set_fmt()
302 *sink_fmt = fmt->format; in vimc_deb_set_fmt()
[all …]
/Linux-v5.10/drivers/staging/media/rkisp1/
Drkisp1-isp.c270 const struct rkisp1_isp_mbus_info *src_fmt, *sink_fmt; in rkisp1_config_isp() local
276 sink_fmt = rkisp1->isp.sink_fmt; in rkisp1_config_isp()
285 if (sink_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp()
301 } else if (sink_fmt->pixel_enc == V4L2_PIXEL_ENC_YUV) { in rkisp1_config_isp()
331 rkisp1_write(rkisp1, signal | sink_fmt->yuv_seq | in rkisp1_config_isp()
332 RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT(sink_fmt->bayer_pat) | in rkisp1_config_isp()
362 rkisp1_params_configure(&rkisp1->params, sink_fmt->bayer_pat, in rkisp1_config_isp()
371 const struct rkisp1_isp_mbus_info *sink_fmt = rkisp1->isp.sink_fmt; in rkisp1_config_dvp() local
374 switch (sink_fmt->bus_width) { in rkisp1_config_dvp()
397 const struct rkisp1_isp_mbus_info *sink_fmt = rkisp1->isp.sink_fmt; in rkisp1_config_mipi() local
[all …]
Drkisp1-resizer.c226 struct v4l2_mbus_framefmt *sink_fmt; in rkisp1_dcrop_config() local
232 sink_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_dcrop_config()
235 if (sink_crop->width == sink_fmt->width && in rkisp1_dcrop_config()
236 sink_crop->height == sink_fmt->height && in rkisp1_dcrop_config()
253 sink_fmt->width, sink_fmt->height, in rkisp1_dcrop_config()
394 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; in rkisp1_rsz_config() local
402 sink_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_rsz_config()
404 sink_yuv_info = rkisp1_rsz_get_yuv_mbus_info(sink_fmt->code); in rkisp1_rsz_config()
495 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_rsz_init_config() local
498 sink_fmt = v4l2_subdev_get_try_format(sd, cfg, RKISP1_RSZ_PAD_SRC); in rkisp1_rsz_init_config()
[all …]
Drkisp1-common.h130 const struct rkisp1_isp_mbus_info *sink_fmt; member
Drkisp1-stats.c264 const struct rkisp1_isp_mbus_info *in_fmt = rkisp1->isp.sink_fmt; in rkisp1_stats_get_bls_meas()
/Linux-v5.10/drivers/media/i2c/adv748x/
Dadv748x-csi2.c195 const struct v4l2_mbus_framefmt *sink_fmt; in adv748x_csi2_set_format() local
197 sink_fmt = adv748x_csi2_get_pad_format(sd, cfg, in adv748x_csi2_set_format()
201 if (!sink_fmt) { in adv748x_csi2_set_format()
206 sdformat->format = *sink_fmt; in adv748x_csi2_set_format()
/Linux-v5.10/drivers/media/v4l2-core/
Dv4l2-subdev.c793 struct v4l2_subdev_format *sink_fmt) in v4l2_subdev_link_validate_default() argument
796 if (source_fmt->format.width != sink_fmt->format.width in v4l2_subdev_link_validate_default()
797 || source_fmt->format.height != sink_fmt->format.height in v4l2_subdev_link_validate_default()
798 || source_fmt->format.code != sink_fmt->format.code) in v4l2_subdev_link_validate_default()
805 if (source_fmt->format.field != sink_fmt->format.field && in v4l2_subdev_link_validate_default()
806 sink_fmt->format.field != V4L2_FIELD_NONE) in v4l2_subdev_link_validate_default()
836 struct v4l2_subdev_format sink_fmt, source_fmt; in v4l2_subdev_link_validate() local
845 link->sink, &sink_fmt); in v4l2_subdev_link_validate()
852 &source_fmt, &sink_fmt); in v4l2_subdev_link_validate()
857 sink, link, &source_fmt, &sink_fmt); in v4l2_subdev_link_validate()
/Linux-v5.10/drivers/media/platform/exynos4-is/
Dfimc-isp-video.c450 struct v4l2_subdev_format sink_fmt, src_fmt; in isp_video_pipeline_validate() local
459 sink_fmt.pad = pad->index; in isp_video_pipeline_validate()
460 sink_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in isp_video_pipeline_validate()
461 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sink_fmt); in isp_video_pipeline_validate()
477 if (src_fmt.format.width != sink_fmt.format.width || in isp_video_pipeline_validate()
478 src_fmt.format.height != sink_fmt.format.height || in isp_video_pipeline_validate()
479 src_fmt.format.code != sink_fmt.format.code) in isp_video_pipeline_validate()
Dfimc-isp.c139 *mf = isp->sink_fmt; in fimc_isp_subdev_get_fmt()
178 format = &isp->sink_fmt; in __isp_subdev_try_format()
230 isp->sink_fmt = *mf; in fimc_isp_subdev_set_fmt()
675 isp->sink_fmt.width = DEFAULT_PREVIEW_STILL_WIDTH + in __isp_subdev_set_default_format()
677 isp->sink_fmt.height = DEFAULT_PREVIEW_STILL_HEIGHT + in __isp_subdev_set_default_format()
679 isp->sink_fmt.code = MEDIA_BUS_FMT_SGRBG10_1X10; in __isp_subdev_set_default_format()
Dfimc-lite.c572 struct v4l2_mbus_framefmt *sink_fmt; in fimc_lite_subdev_try_fmt() local
576 sink_fmt = v4l2_subdev_get_try_format(&fimc->subdev, cfg, in fimc_lite_subdev_try_fmt()
579 mf->code = sink_fmt->code; in fimc_lite_subdev_try_fmt()
580 mf->colorspace = sink_fmt->colorspace; in fimc_lite_subdev_try_fmt()
769 struct v4l2_subdev_format sink_fmt, src_fmt; in fimc_pipeline_validate() local
781 sink_fmt.format.width = ff->f_width; in fimc_pipeline_validate()
782 sink_fmt.format.height = ff->f_height; in fimc_pipeline_validate()
783 sink_fmt.format.code = fimc->inp_frame.fmt->mbus_code; in fimc_pipeline_validate()
785 sink_fmt.pad = pad->index; in fimc_pipeline_validate()
786 sink_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in fimc_pipeline_validate()
[all …]
Dfimc-isp.h163 struct v4l2_mbus_framefmt sink_fmt; member
Dfimc-capture.c1100 struct v4l2_subdev_format sink_fmt, src_fmt; in fimc_pipeline_validate() local
1132 sink_fmt.format.width = ff->f_width; in fimc_pipeline_validate()
1133 sink_fmt.format.height = ff->f_height; in fimc_pipeline_validate()
1134 sink_fmt.format.code = ff->fmt ? ff->fmt->mbus_code : 0; in fimc_pipeline_validate()
1136 sink_fmt.pad = sink_pad->index; in fimc_pipeline_validate()
1137 sink_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in fimc_pipeline_validate()
1138 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sink_fmt); in fimc_pipeline_validate()
1151 if (src_fmt.format.width != sink_fmt.format.width || in fimc_pipeline_validate()
1152 src_fmt.format.height != sink_fmt.format.height || in fimc_pipeline_validate()
1153 src_fmt.format.code != sink_fmt.format.code) in fimc_pipeline_validate()
/Linux-v5.10/drivers/staging/media/omap4iss/
Diss_ipipe.c363 struct v4l2_subdev_format *sink_fmt) in ipipe_link_validate() argument
366 if (source_fmt->format.width != sink_fmt->format.width || in ipipe_link_validate()
367 source_fmt->format.height != sink_fmt->format.height) in ipipe_link_validate()
370 if (source_fmt->format.code != sink_fmt->format.code) in ipipe_link_validate()
Diss_ipipeif.c578 struct v4l2_subdev_format *sink_fmt) in ipipeif_link_validate() argument
581 if (source_fmt->format.width != sink_fmt->format.width || in ipipeif_link_validate()
582 source_fmt->format.height != sink_fmt->format.height) in ipipeif_link_validate()
585 if (source_fmt->format.code != sink_fmt->format.code) in ipipeif_link_validate()
Diss_resizer.c632 struct v4l2_subdev_format *sink_fmt) in resizer_link_validate() argument
635 if (source_fmt->format.width != sink_fmt->format.width || in resizer_link_validate()
636 source_fmt->format.height != sink_fmt->format.height) in resizer_link_validate()
639 if (source_fmt->format.code != sink_fmt->format.code) in resizer_link_validate()
Diss_csi2.c1019 struct v4l2_subdev_format *sink_fmt) in csi2_link_validate() argument
1031 sink_fmt); in csi2_link_validate()
/Linux-v5.10/drivers/media/i2c/smiapp/
Dsmiapp-core.c1644 r = &ssd->sink_fmt; in __smiapp_get_format()
1842 ssd->sink_fmt = *crops[ssd->sink_pad]; in smiapp_set_format()
2142 src_size = &ssd->sink_fmt; in smiapp_set_crop()
2196 struct v4l2_rect sink_fmt; in __smiapp_get_selection() local
2206 sink_fmt = ssd->sink_fmt; in __smiapp_get_selection()
2211 sink_fmt.left = 0; in __smiapp_get_selection()
2212 sink_fmt.top = 0; in __smiapp_get_selection()
2213 sink_fmt.width = fmt->width; in __smiapp_get_selection()
2214 sink_fmt.height = fmt->height; in __smiapp_get_selection()
2223 sel->r = sink_fmt; in __smiapp_get_selection()
[all …]
Dsmiapp.h195 struct v4l2_rect sink_fmt; member
/Linux-v5.10/drivers/staging/media/imx/
Dimx-ic-prp.c293 struct v4l2_subdev_format *sink_fmt) in prp_link_validate() argument
301 source_fmt, sink_fmt); in prp_link_validate()
Dimx-media-vdic.c761 struct v4l2_subdev_format *sink_fmt) in vdic_link_validate() argument
767 source_fmt, sink_fmt); in vdic_link_validate()
/Linux-v5.10/include/media/
Dv4l2-subdev.h721 struct v4l2_subdev_format *sink_fmt);
1080 struct v4l2_subdev_format *sink_fmt);
/Linux-v5.10/drivers/media/platform/qcom/camss/
Dcamss-csid.c863 struct v4l2_mbus_framefmt *sink_fmt; in csid_enum_mbus_code() local
865 sink_fmt = __csid_get_format(csid, cfg, in csid_enum_mbus_code()
869 code->code = csid_src_pad_code(csid, sink_fmt->code, in csid_enum_mbus_code()
/Linux-v5.10/drivers/media/platform/omap3isp/
Dispccdc.c2410 struct v4l2_subdev_format *sink_fmt) in ccdc_link_validate() argument
2416 if (source_fmt->format.width != sink_fmt->format.width || in ccdc_link_validate()
2417 source_fmt->format.height != sink_fmt->format.height) in ccdc_link_validate()
2433 sink_fmt->format.code, parallel_shift)) in ccdc_link_validate()

12