/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-resizer.c | 171 struct v4l2_mbus_framefmt *sink_fmt; in rkisp1_dcrop_config() local 177 sink_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_dcrop_config() 180 if (sink_crop->width == sink_fmt->width && in rkisp1_dcrop_config() 181 sink_crop->height == sink_fmt->height && in rkisp1_dcrop_config() 198 sink_fmt->width, sink_fmt->height, in rkisp1_dcrop_config() 303 struct v4l2_mbus_framefmt *src_fmt, *sink_fmt; in rkisp1_rsz_config() local 311 sink_fmt = rkisp1_rsz_get_pad_fmt(rsz, NULL, RKISP1_RSZ_PAD_SINK, in rkisp1_rsz_config() 313 sink_yuv_info = rkisp1_rsz_get_yuv_mbus_info(sink_fmt->code); in rkisp1_rsz_config() 405 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_rsz_init_config() local 408 sink_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_rsz_init_config() [all …]
|
D | rkisp1-isp.c | 132 const struct rkisp1_mbus_info *sink_fmt = isp->sink_fmt; in rkisp1_config_isp() local 144 if (sink_fmt->pixel_enc == V4L2_PIXEL_ENC_BAYER) { in rkisp1_config_isp() 160 } else if (sink_fmt->pixel_enc == V4L2_PIXEL_ENC_YUV) { in rkisp1_config_isp() 179 switch (sink_fmt->bus_width) { in rkisp1_config_isp() 191 sink_fmt->bus_width); in rkisp1_config_isp() 206 acq_prop | sink_fmt->yuv_seq | in rkisp1_config_isp() 207 RKISP1_CIF_ISP_ACQ_PROP_BAYER_PAT(sink_fmt->bayer_pat) | in rkisp1_config_isp() 236 rkisp1_params_pre_configure(&rkisp1->params, sink_fmt->bayer_pat, in rkisp1_config_isp() 449 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_isp_init_config() local 453 sink_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_isp_init_config() [all …]
|
D | rkisp1-csi.c | 101 RKISP1_CIF_MIPI_DATA_SEL_DT(csi->sink_fmt->mipi_dt) | in rkisp1_csi_config() 184 phy_mipi_dphy_get_default_config(pixel_clock, csi->sink_fmt->bus_width, in rkisp1_csi_start() 268 const struct v4l2_mbus_framefmt *sink_fmt; in rkisp1_csi_enum_mbus_code() local 275 sink_fmt = rkisp1_csi_get_pad_fmt(csi, sd_state, in rkisp1_csi_enum_mbus_code() 278 code->code = sink_fmt->code; in rkisp1_csi_enum_mbus_code() 309 struct v4l2_mbus_framefmt *sink_fmt, *src_fmt; in rkisp1_csi_init_config() local 311 sink_fmt = v4l2_subdev_get_try_format(sd, sd_state, in rkisp1_csi_init_config() 316 sink_fmt->width = RKISP1_DEFAULT_WIDTH; in rkisp1_csi_init_config() 317 sink_fmt->height = RKISP1_DEFAULT_HEIGHT; in rkisp1_csi_init_config() 318 sink_fmt->field = V4L2_FIELD_NONE; in rkisp1_csi_init_config() [all …]
|
D | rkisp1-common.h | 190 const struct rkisp1_mbus_info *sink_fmt; member 212 const struct rkisp1_mbus_info *sink_fmt; member
|
/drivers/media/test-drivers/vimc/ |
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 225 vdebayer->sink_fmt; in vimc_debayer_get_fmt() 259 struct v4l2_mbus_framefmt *sink_fmt; in vimc_debayer_set_fmt() local 267 sink_fmt = &vdebayer->sink_fmt; in vimc_debayer_set_fmt() 270 sink_fmt = v4l2_subdev_get_try_format(sd, sd_state, 0); in vimc_debayer_set_fmt() 281 fmt->format = *sink_fmt; in vimc_debayer_set_fmt() 295 sink_fmt->width, sink_fmt->height, sink_fmt->code, in vimc_debayer_set_fmt() 296 sink_fmt->colorspace, sink_fmt->quantization, in vimc_debayer_set_fmt() 297 sink_fmt->xfer_func, sink_fmt->ycbcr_enc, in vimc_debayer_set_fmt() 303 *sink_fmt = fmt->format; in vimc_debayer_set_fmt() [all …]
|
D | vimc-scaler.c | 61 vimc_scaler_get_crop_bound_sink(const struct v4l2_mbus_framefmt *sink_fmt) in vimc_scaler_get_crop_bound_sink() argument 67 .width = sink_fmt->width, in vimc_scaler_get_crop_bound_sink() 68 .height = sink_fmt->height, in vimc_scaler_get_crop_bound_sink() 239 struct v4l2_mbus_framefmt *sink_fmt; in vimc_scaler_get_selection() local 249 sink_fmt = vimc_scaler_pad_format(vscaler, sd_state, VIMC_SCALER_SINK, in vimc_scaler_get_selection() 251 sel->r = vimc_scaler_get_crop_bound_sink(sink_fmt); in vimc_scaler_get_selection() 261 const struct v4l2_mbus_framefmt *sink_fmt) in vimc_scaler_adjust_sink_crop() argument 264 vimc_scaler_get_crop_bound_sink(sink_fmt); in vimc_scaler_adjust_sink_crop() 276 struct v4l2_mbus_framefmt *sink_fmt; in vimc_scaler_set_selection() local 287 sink_fmt = vimc_scaler_pad_format(vscaler, sd_state, VIMC_SCALER_SINK, in vimc_scaler_set_selection() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-subdev.c | 858 struct v4l2_subdev_format *sink_fmt) in v4l2_subdev_link_validate_default() argument 863 if (source_fmt->format.width != sink_fmt->format.width) { in v4l2_subdev_link_validate_default() 867 source_fmt->format.width, sink_fmt->format.width); in v4l2_subdev_link_validate_default() 871 if (source_fmt->format.height != sink_fmt->format.height) { in v4l2_subdev_link_validate_default() 875 source_fmt->format.height, sink_fmt->format.height); in v4l2_subdev_link_validate_default() 879 if (source_fmt->format.code != sink_fmt->format.code) { in v4l2_subdev_link_validate_default() 883 source_fmt->format.code, sink_fmt->format.code); in v4l2_subdev_link_validate_default() 891 if (source_fmt->format.field != sink_fmt->format.field && in v4l2_subdev_link_validate_default() 892 sink_fmt->format.field != V4L2_FIELD_NONE) { in v4l2_subdev_link_validate_default() 896 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/samsung/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() 768 struct v4l2_subdev_format sink_fmt, src_fmt; in fimc_pipeline_validate() local 780 sink_fmt.format.width = ff->f_width; in fimc_pipeline_validate() 781 sink_fmt.format.height = ff->f_height; in fimc_pipeline_validate() 782 sink_fmt.format.code = fimc->inp_frame.fmt->mbus_code; in fimc_pipeline_validate() 784 sink_fmt.pad = pad->index; in fimc_pipeline_validate() 785 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 | 2061 r = &ssd->sink_fmt; in __ccs_get_format() 2256 ssd->sink_fmt = *crops[ssd->sink_pad]; in ccs_set_format() 2549 src_size = &ssd->sink_fmt; in ccs_set_crop() 2605 struct v4l2_rect sink_fmt; in __ccs_get_selection() local 2615 sink_fmt = ssd->sink_fmt; in __ccs_get_selection() 2621 sink_fmt.left = 0; in __ccs_get_selection() 2622 sink_fmt.top = 0; in __ccs_get_selection() 2623 sink_fmt.width = fmt->width; in __ccs_get_selection() 2624 sink_fmt.height = fmt->height; in __ccs_get_selection() 2633 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()
|
/drivers/media/platform/qcom/camss/ |
D | camss-csid.c | 372 struct v4l2_mbus_framefmt *sink_fmt; in csid_enum_mbus_code() local 374 sink_fmt = __csid_get_format(csid, sd_state, in csid_enum_mbus_code() 378 code->code = csid->ops->src_pad_code(csid, sink_fmt->code, in csid_enum_mbus_code()
|
D | camss-vfe.c | 983 struct v4l2_mbus_framefmt *sink_fmt; in vfe_enum_mbus_code() local 985 sink_fmt = __vfe_get_format(line, sd_state, MSM_VFE_PAD_SINK, in vfe_enum_mbus_code() 988 code->code = vfe_src_pad_code(line, sink_fmt->code, in vfe_enum_mbus_code()
|
/drivers/media/platform/ti/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()
|