/drivers/media/test-drivers/vimc/ |
D | vimc-scaler.c | 31 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, sd_state, 0); in vimc_sca_set_fmt() [all …]
|
D | vimc-common.c | 277 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 …]
|
D | vimc-debayer.c | 33 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, sd_state, 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 …]
|
/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-resizer.c | 232 struct v4l2_mbus_framefmt *sink_fmt; in rkisp1_dcrop_config() local 238 sink_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_dcrop_config() 241 if (sink_crop->width == sink_fmt->width && in rkisp1_dcrop_config() 242 sink_crop->height == sink_fmt->height && in rkisp1_dcrop_config() 259 sink_fmt->width, sink_fmt->height, in rkisp1_dcrop_config() 400 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; in rkisp1_rsz_config() local 408 sink_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_rsz_config() 410 sink_yuv_info = rkisp1_rsz_get_yuv_mbus_info(sink_fmt->code); in rkisp1_rsz_config() 504 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_rsz_init_config() local 507 sink_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_rsz_init_config() [all …]
|
D | rkisp1-isp.c | 276 const struct rkisp1_isp_mbus_info *src_fmt, *sink_fmt; in rkisp1_config_isp() local 282 sink_fmt = rkisp1->isp.sink_fmt; in rkisp1_config_isp() 291 if (sink_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp() 307 } else if (sink_fmt->pixel_enc == V4L2_PIXEL_ENC_YUV) { in rkisp1_config_isp() 337 rkisp1_write(rkisp1, signal | sink_fmt->yuv_seq | in rkisp1_config_isp() 338 RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT(sink_fmt->bayer_pat) | in rkisp1_config_isp() 368 rkisp1_params_configure(&rkisp1->params, sink_fmt->bayer_pat, in rkisp1_config_isp() 377 const struct rkisp1_isp_mbus_info *sink_fmt = rkisp1->isp.sink_fmt; in rkisp1_config_dvp() local 380 switch (sink_fmt->bus_width) { in rkisp1_config_dvp() 403 const struct rkisp1_isp_mbus_info *sink_fmt = rkisp1->isp.sink_fmt; in rkisp1_config_mipi() local [all …]
|
D | rkisp1-common.h | 130 const struct rkisp1_isp_mbus_info *sink_fmt; member
|
/drivers/media/v4l2-core/ |
D | v4l2-subdev.c | 771 struct v4l2_subdev_format *sink_fmt) in v4l2_subdev_link_validate_default() argument 776 if (source_fmt->format.width != sink_fmt->format.width) { in v4l2_subdev_link_validate_default() 780 source_fmt->format.width, sink_fmt->format.width); in v4l2_subdev_link_validate_default() 784 if (source_fmt->format.height != sink_fmt->format.height) { in v4l2_subdev_link_validate_default() 788 source_fmt->format.height, sink_fmt->format.height); in v4l2_subdev_link_validate_default() 792 if (source_fmt->format.code != sink_fmt->format.code) { in v4l2_subdev_link_validate_default() 796 source_fmt->format.code, sink_fmt->format.code); in v4l2_subdev_link_validate_default() 804 if (source_fmt->format.field != sink_fmt->format.field && in v4l2_subdev_link_validate_default() 805 sink_fmt->format.field != V4L2_FIELD_NONE) { in v4l2_subdev_link_validate_default() 809 source_fmt->format.field, sink_fmt->format.field); in v4l2_subdev_link_validate_default() [all …]
|
/drivers/media/i2c/adv748x/ |
D | adv748x-csi2.c | 194 const struct v4l2_mbus_framefmt *sink_fmt; in adv748x_csi2_set_format() local 196 sink_fmt = adv748x_csi2_get_pad_format(sd, sd_state, in adv748x_csi2_set_format() 200 if (!sink_fmt) { in adv748x_csi2_set_format() 205 sdformat->format = *sink_fmt; in adv748x_csi2_set_format()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-isp-video.c | 452 struct v4l2_subdev_format sink_fmt, src_fmt; in isp_video_pipeline_validate() local 461 sink_fmt.pad = pad->index; in isp_video_pipeline_validate() 462 sink_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in isp_video_pipeline_validate() 463 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sink_fmt); in isp_video_pipeline_validate() 479 if (src_fmt.format.width != sink_fmt.format.width || in isp_video_pipeline_validate() 480 src_fmt.format.height != sink_fmt.format.height || in isp_video_pipeline_validate() 481 src_fmt.format.code != sink_fmt.format.code) in isp_video_pipeline_validate()
|
D | fimc-lite.c | 573 struct v4l2_mbus_framefmt *sink_fmt; in fimc_lite_subdev_try_fmt() local 577 sink_fmt = v4l2_subdev_get_try_format(&fimc->subdev, in fimc_lite_subdev_try_fmt() 581 mf->code = sink_fmt->code; in fimc_lite_subdev_try_fmt() 582 mf->colorspace = sink_fmt->colorspace; in fimc_lite_subdev_try_fmt() 772 struct v4l2_subdev_format sink_fmt, src_fmt; in fimc_pipeline_validate() local 784 sink_fmt.format.width = ff->f_width; in fimc_pipeline_validate() 785 sink_fmt.format.height = ff->f_height; in fimc_pipeline_validate() 786 sink_fmt.format.code = fimc->inp_frame.fmt->mbus_code; in fimc_pipeline_validate() 788 sink_fmt.pad = pad->index; in fimc_pipeline_validate() 789 sink_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in fimc_pipeline_validate() [all …]
|
D | fimc-isp.c | 139 *mf = isp->sink_fmt; in fimc_isp_subdev_get_fmt() 179 format = &isp->sink_fmt; in __isp_subdev_try_format() 233 isp->sink_fmt = *mf; in fimc_isp_subdev_set_fmt() 681 isp->sink_fmt.width = DEFAULT_PREVIEW_STILL_WIDTH + in __isp_subdev_set_default_format() 683 isp->sink_fmt.height = DEFAULT_PREVIEW_STILL_HEIGHT + in __isp_subdev_set_default_format() 685 isp->sink_fmt.code = MEDIA_BUS_FMT_SGRBG10_1X10; in __isp_subdev_set_default_format()
|
D | fimc-capture.c | 1099 struct v4l2_subdev_format sink_fmt, src_fmt; in fimc_pipeline_validate() local 1131 sink_fmt.format.width = ff->f_width; in fimc_pipeline_validate() 1132 sink_fmt.format.height = ff->f_height; in fimc_pipeline_validate() 1133 sink_fmt.format.code = ff->fmt ? ff->fmt->mbus_code : 0; in fimc_pipeline_validate() 1135 sink_fmt.pad = sink_pad->index; in fimc_pipeline_validate() 1136 sink_fmt.which = V4L2_SUBDEV_FORMAT_ACTIVE; in fimc_pipeline_validate() 1137 ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &sink_fmt); in fimc_pipeline_validate() 1150 if (src_fmt.format.width != sink_fmt.format.width || in fimc_pipeline_validate() 1151 src_fmt.format.height != sink_fmt.format.height || in fimc_pipeline_validate() 1152 src_fmt.format.code != sink_fmt.format.code) in fimc_pipeline_validate()
|
D | fimc-isp.h | 170 struct v4l2_mbus_framefmt sink_fmt; member
|
/drivers/staging/media/omap4iss/ |
D | iss_ipipe.c | 366 struct v4l2_subdev_format *sink_fmt) in ipipe_link_validate() argument 369 if (source_fmt->format.width != sink_fmt->format.width || in ipipe_link_validate() 370 source_fmt->format.height != sink_fmt->format.height) in ipipe_link_validate() 373 if (source_fmt->format.code != sink_fmt->format.code) in ipipe_link_validate()
|
D | iss_ipipeif.c | 585 struct v4l2_subdev_format *sink_fmt) in ipipeif_link_validate() argument 588 if (source_fmt->format.width != sink_fmt->format.width || in ipipeif_link_validate() 589 source_fmt->format.height != sink_fmt->format.height) in ipipeif_link_validate() 592 if (source_fmt->format.code != sink_fmt->format.code) in ipipeif_link_validate()
|
D | iss_resizer.c | 637 struct v4l2_subdev_format *sink_fmt) in resizer_link_validate() argument 640 if (source_fmt->format.width != sink_fmt->format.width || in resizer_link_validate() 641 source_fmt->format.height != sink_fmt->format.height) in resizer_link_validate() 644 if (source_fmt->format.code != sink_fmt->format.code) in resizer_link_validate()
|
D | iss_csi2.c | 1022 struct v4l2_subdev_format *sink_fmt) in csi2_link_validate() argument 1034 sink_fmt); in csi2_link_validate()
|
/drivers/media/i2c/ccs/ |
D | ccs-core.c | 2062 r = &ssd->sink_fmt; in __ccs_get_format() 2257 ssd->sink_fmt = *crops[ssd->sink_pad]; in ccs_set_format() 2550 src_size = &ssd->sink_fmt; in ccs_set_crop() 2606 struct v4l2_rect sink_fmt; in __ccs_get_selection() local 2616 sink_fmt = ssd->sink_fmt; in __ccs_get_selection() 2622 sink_fmt.left = 0; in __ccs_get_selection() 2623 sink_fmt.top = 0; in __ccs_get_selection() 2624 sink_fmt.width = fmt->width; in __ccs_get_selection() 2625 sink_fmt.height = fmt->height; in __ccs_get_selection() 2634 sel->r = sink_fmt; in __ccs_get_selection() [all …]
|
D | ccs.h | 198 struct v4l2_rect sink_fmt; member
|
/drivers/staging/media/imx/ |
D | imx-ic-prp.c | 294 struct v4l2_subdev_format *sink_fmt) in prp_link_validate() argument 302 source_fmt, sink_fmt); in prp_link_validate()
|
D | imx-media-vdic.c | 761 struct v4l2_subdev_format *sink_fmt) in vdic_link_validate() argument 767 source_fmt, sink_fmt); in vdic_link_validate()
|
D | imx7-media-csi.c | 928 struct v4l2_subdev_format *sink_fmt) in imx7_csi_pad_link_validate() argument 943 ret = v4l2_subdev_link_validate_default(sd, link, source_fmt, sink_fmt); in imx7_csi_pad_link_validate()
|
/drivers/media/platform/qcom/camss/ |
D | camss-csid.c | 352 struct v4l2_mbus_framefmt *sink_fmt; in csid_enum_mbus_code() local 354 sink_fmt = __csid_get_format(csid, sd_state, in csid_enum_mbus_code() 358 code->code = csid->ops->src_pad_code(csid, sink_fmt->code, in csid_enum_mbus_code()
|
D | camss-vfe.c | 981 struct v4l2_mbus_framefmt *sink_fmt; in vfe_enum_mbus_code() local 983 sink_fmt = __vfe_get_format(line, sd_state, MSM_VFE_PAD_SINK, in vfe_enum_mbus_code() 986 code->code = vfe_src_pad_code(line, sink_fmt->code, in vfe_enum_mbus_code()
|
/drivers/media/platform/omap3isp/ |
D | ispccdc.c | 2424 struct v4l2_subdev_format *sink_fmt) in ccdc_link_validate() argument 2430 if (source_fmt->format.width != sink_fmt->format.width || in ccdc_link_validate() 2431 source_fmt->format.height != sink_fmt->format.height) in ccdc_link_validate() 2447 sink_fmt->format.code, parallel_shift)) in ccdc_link_validate()
|