/Linux-v6.1/include/media/ |
D | v4l2-mediabus.h | 186 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format() 208 mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; in v4l2_fill_mbus_format() 229 pix_mp_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format_mplane() 249 mbus_fmt->ycbcr_enc = pix_mp_fmt->ycbcr_enc; in v4l2_fill_mbus_format_mplane()
|
D | v4l2-common.h | 580 static inline bool v4l2_is_ycbcr_enc_valid(__u8 ycbcr_enc) in v4l2_is_ycbcr_enc_valid() argument 582 return ycbcr_enc > V4L2_YCBCR_ENC_DEFAULT && in v4l2_is_ycbcr_enc_valid() 583 ycbcr_enc < V4L2_YCBCR_ENC_LAST; in v4l2_is_ycbcr_enc_valid()
|
/Linux-v6.1/drivers/media/platform/nxp/ |
D | imx-pxp.c | 162 enum v4l2_ycbcr_encoding ycbcr_enc; member 313 enum v4l2_ycbcr_encoding ycbcr_enc; in pxp_setup_csc() local 464 ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_setup_csc() 467 if (ycbcr_enc == V4L2_YCBCR_ENC_601) { in pxp_setup_csc() 472 } else if (ycbcr_enc == V4L2_YCBCR_ENC_709) { in pxp_setup_csc() 477 } else if (ycbcr_enc == V4L2_YCBCR_ENC_BT2020) { in pxp_setup_csc() 677 ycbcr_enc = ctx->q_data[V4L2_M2M_DST].ycbcr_enc; in pxp_setup_csc() 680 if (ycbcr_enc == V4L2_YCBCR_ENC_601) { in pxp_setup_csc() 685 } else if (ycbcr_enc == V4L2_YCBCR_ENC_709) { in pxp_setup_csc() 690 } else if (ycbcr_enc == V4L2_YCBCR_ENC_BT2020) { in pxp_setup_csc() [all …]
|
/Linux-v6.1/drivers/media/test-drivers/vimc/ |
D | vimc-common.c | 296 source_fmt.ycbcr_enc, in vimc_vdev_link_validate() 302 sink_fmt.ycbcr_enc); in vimc_vdev_link_validate() 332 if (source_fmt.ycbcr_enc != V4L2_YCBCR_ENC_DEFAULT && in vimc_vdev_link_validate() 333 sink_fmt.ycbcr_enc != V4L2_YCBCR_ENC_DEFAULT && in vimc_vdev_link_validate() 334 source_fmt.ycbcr_enc != sink_fmt.ycbcr_enc) in vimc_vdev_link_validate()
|
D | vimc-common.h | 59 (fmt)->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; \ 63 if ((fmt)->ycbcr_enc > V4L2_YCBCR_ENC_SMPTE240M) \ 64 (fmt)->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; \
|
D | vimc-sensor.c | 122 tpg_s_ycbcr_enc(&vsensor->tpg, vsensor->mbus_format.ycbcr_enc); in vimc_sensor_tpg_s_format() 174 mf->xfer_func, mf->ycbcr_enc, in vimc_sensor_set_fmt() 178 fmt->format.xfer_func, fmt->format.ycbcr_enc); in vimc_sensor_set_fmt()
|
/Linux-v6.1/drivers/gpu/ipu-v3/ |
D | ipu-dp.c | 129 enum drm_color_encoding ycbcr_enc, in ipu_dp_csc_init() argument 154 } else if (ycbcr_enc == DRM_COLOR_YCBCR_BT709) { in ipu_dp_csc_init() 182 enum drm_color_encoding ycbcr_enc, in ipu_dp_setup_channel() argument 202 ipu_dp_csc_init(flow, ycbcr_enc, range, in ipu_dp_setup_channel() 212 ipu_dp_csc_init(flow, ycbcr_enc, range, in ipu_dp_setup_channel() 216 ipu_dp_csc_init(flow, ycbcr_enc, range, in ipu_dp_setup_channel()
|
/Linux-v6.1/drivers/staging/media/imx/ |
D | imx-media-utils.c | 414 mbus->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(mbus->colorspace); in imx_media_init_mbus_fmt() 418 mbus->ycbcr_enc); in imx_media_init_mbus_fmt() 501 if (tryfmt->ycbcr_enc != V4L2_YCBCR_ENC_601 && in imx_media_try_colorimetry() 502 tryfmt->ycbcr_enc != V4L2_YCBCR_ENC_709) in imx_media_try_colorimetry() 503 tryfmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in imx_media_try_colorimetry() 505 if (tryfmt->ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) { in imx_media_try_colorimetry() 506 tryfmt->ycbcr_enc = in imx_media_try_colorimetry() 515 tryfmt->ycbcr_enc); in imx_media_try_colorimetry() 561 pix->ycbcr_enc = mbus->ycbcr_enc; in imx_media_mbus_fmt_to_pix_fmt()
|
D | imx-media-csc-scaler.c | 227 f->fmt.pix.ycbcr_enc = q_data->cur_fmt.ycbcr_enc; in ipu_csc_scaler_try_fmt() 232 f->fmt.pix.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in ipu_csc_scaler_try_fmt() 277 q_data->cur_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; in ipu_csc_scaler_s_fmt() 283 q_data->cur_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; in ipu_csc_scaler_s_fmt() 494 if (fmt->ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) in ipu_image_from_q_data() 495 im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); in ipu_image_from_q_data() 497 im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); in ipu_image_from_q_data()
|
/Linux-v6.1/drivers/media/platform/ti/vpe/ |
D | csc.c | 155 src_ycbcr_enc = mp->ycbcr_enc; in csc_set_coeff() 160 src_ycbcr_enc = pix->ycbcr_enc; in csc_set_coeff() 167 dst_ycbcr_enc = mp->ycbcr_enc; in csc_set_coeff() 172 dst_ycbcr_enc = pix->ycbcr_enc; in csc_set_coeff()
|
/Linux-v6.1/include/media/tpg/ |
D | v4l2-tpg.h | 163 u32 ycbcr_enc; member 367 static inline void tpg_s_ycbcr_enc(struct tpg_data *tpg, u32 ycbcr_enc) in tpg_s_ycbcr_enc() argument 369 if (tpg->ycbcr_enc == ycbcr_enc) in tpg_s_ycbcr_enc() 371 tpg->ycbcr_enc = ycbcr_enc; in tpg_s_ycbcr_enc() 377 return tpg->ycbcr_enc; in tpg_g_ycbcr_enc()
|
/Linux-v6.1/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-isp.c | 238 src_frm->ycbcr_enc); in rkisp1_config_isp() 447 sink_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in rkisp1_isp_init_config() 463 src_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in rkisp1_isp_init_config() 536 src_fmt->ycbcr_enc = sink_fmt->ycbcr_enc; in rkisp1_isp_set_src_fmt() 568 if (format->ycbcr_enc != V4L2_YCBCR_ENC_DEFAULT) in rkisp1_isp_set_src_fmt() 569 src_fmt->ycbcr_enc = format->ycbcr_enc; in rkisp1_isp_set_src_fmt() 691 sink_fmt->ycbcr_enc = format->ycbcr_enc ? : in rkisp1_isp_set_sink_fmt() 695 sink_fmt->ycbcr_enc); in rkisp1_isp_set_sink_fmt() 702 sink_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in rkisp1_isp_set_sink_fmt()
|
D | rkisp1-resizer.c | 416 sink_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in rkisp1_rsz_init_config() 554 sink_fmt->ycbcr_enc = format->ycbcr_enc ? : in rkisp1_rsz_set_sink_fmt() 558 sink_fmt->ycbcr_enc); in rkisp1_rsz_set_sink_fmt() 565 sink_fmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in rkisp1_rsz_set_sink_fmt() 575 src_fmt->ycbcr_enc = sink_fmt->ycbcr_enc; in rkisp1_rsz_set_sink_fmt()
|
/Linux-v6.1/drivers/media/v4l2-core/ |
D | v4l2-dv-timings.c | 939 c.ycbcr_enc = V4L2_YCBCR_ENC_601; in v4l2_hdmi_rx_colorimetry() 942 c.ycbcr_enc = V4L2_YCBCR_ENC_709; in v4l2_hdmi_rx_colorimetry() 948 c.ycbcr_enc = V4L2_YCBCR_ENC_601; in v4l2_hdmi_rx_colorimetry() 953 c.ycbcr_enc = V4L2_YCBCR_ENC_709; in v4l2_hdmi_rx_colorimetry() 960 c.ycbcr_enc = V4L2_YCBCR_ENC_XV709; in v4l2_hdmi_rx_colorimetry() 965 c.ycbcr_enc = V4L2_YCBCR_ENC_XV601; in v4l2_hdmi_rx_colorimetry() 970 c.ycbcr_enc = V4L2_YCBCR_ENC_601; in v4l2_hdmi_rx_colorimetry() 975 c.ycbcr_enc = V4L2_YCBCR_ENC_601; in v4l2_hdmi_rx_colorimetry() 980 c.ycbcr_enc = V4L2_YCBCR_ENC_BT2020; in v4l2_hdmi_rx_colorimetry() 985 c.ycbcr_enc = V4L2_YCBCR_ENC_BT2020_CONST_LUM; in v4l2_hdmi_rx_colorimetry() [all …]
|
/Linux-v6.1/drivers/media/platform/st/sti/delta/ |
D | delta-v4l2.c | 261 frameinfo->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in set_default_params() 271 streaminfo->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in set_default_params() 447 pix->ycbcr_enc = streaminfo->ycbcr_enc; in delta_g_fmt_stream() 480 frameinfo->ycbcr_enc = streaminfo->ycbcr_enc; in delta_g_fmt_frame() 485 pix->ycbcr_enc = frameinfo->ycbcr_enc; in delta_g_fmt_frame() 590 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in delta_try_fmt_frame() 635 ctx->streaminfo.ycbcr_enc = pix->ycbcr_enc; in delta_s_fmt_stream() 689 frameinfo.ycbcr_enc = pix->ycbcr_enc; in delta_s_fmt_frame() 715 pix->ycbcr_enc = frameinfo.ycbcr_enc; in delta_s_fmt_frame()
|
D | delta.h | 80 enum v4l2_ycbcr_encoding ycbcr_enc; member 145 enum v4l2_ycbcr_encoding ycbcr_enc; member
|
/Linux-v6.1/drivers/media/test-drivers/vicodec/ |
D | codec-v4l2-fwht.c | 276 p_hdr->ycbcr_enc = htonl(state->ycbcr_enc); in v4l2_fwht_encode() 331 state->ycbcr_enc = ntohl(state->header.ycbcr_enc); in v4l2_fwht_decode()
|
D | vicodec-core.c | 249 ctx->state.ycbcr_enc = ntohl(p_hdr->ycbcr_enc); in update_state_from_header() 542 ctx->state.ycbcr_enc = ntohl(p_hdr->ycbcr_enc); in update_capture_data_from_header() 789 pix->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_g_fmt() 808 pix_mp->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_g_fmt() 906 pix->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_try_fmt_vid_cap() 917 pix_mp->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_try_fmt_vid_cap() 1115 ctx->state.ycbcr_enc = pix->ycbcr_enc; in vidioc_s_fmt_vid_out() 1122 ctx->state.ycbcr_enc = pix_mp->ycbcr_enc; in vidioc_s_fmt_vid_out() 1773 p_hdr->ycbcr_enc = htonl(params->ycbcr_enc); in update_header_from_stateless_params()
|
D | codec-v4l2-fwht.h | 40 enum v4l2_ycbcr_encoding ycbcr_enc; member
|
D | codec-fwht.h | 74 __be32 ycbcr_enc; member
|
/Linux-v6.1/drivers/media/platform/st/stm32/dma2d/ |
D | dma2d.c | 374 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_g_fmt() 414 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_try_fmt() 449 ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; in vidioc_s_fmt()
|
/Linux-v6.1/drivers/media/platform/sunxi/sun4i-csi/ |
D | sun4i_v4l2.c | 105 pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt() 107 pix->ycbcr_enc); in _sun4i_csi_try_fmt() 264 .ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT,
|
/Linux-v6.1/drivers/media/i2c/ |
D | adv7511-v4l2.c | 106 u32 ycbcr_enc; member 1244 format->format.ycbcr_enc = fmt->ycbcr_enc; in adv7511_get_fmt() 1250 format->format.ycbcr_enc = state->ycbcr_enc; in adv7511_get_fmt() 1299 fmt->ycbcr_enc = format->format.ycbcr_enc; in adv7511_set_fmt() 1324 state->ycbcr_enc = format->format.ycbcr_enc; in adv7511_set_fmt() 1336 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV601) { in adv7511_set_fmt() 1343 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV709) { in adv7511_set_fmt() 1355 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_BT2020_CONST_LUM) in adv7511_set_fmt()
|
/Linux-v6.1/drivers/media/platform/st/sti/hva/ |
D | hva-v4l2.c | 113 ctx->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in set_default_params() 306 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in hva_g_fmt_stream() 325 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in hva_g_fmt_frame() 392 pix->ycbcr_enc = ctx->ycbcr_enc; in hva_try_fmt_stream() 439 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in hva_try_fmt_frame() 503 ctx->ycbcr_enc = pix->ycbcr_enc; in hva_s_fmt_frame()
|
/Linux-v6.1/drivers/media/platform/renesas/ |
D | rcar_fdp1.c | 969 if (src_q_data->format.ycbcr_enc == V4L2_YCBCR_ENC_709) in fdp1_configure_wpf() 1514 enum v4l2_ycbcr_encoding ycbcr_enc; in fdp1_try_fmt_capture() local 1530 ycbcr_enc = src_data->format.ycbcr_enc; in fdp1_try_fmt_capture() 1531 if (ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) in fdp1_try_fmt_capture() 1532 ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(colorspace); in fdp1_try_fmt_capture() 1537 ycbcr_enc); in fdp1_try_fmt_capture() 1539 allow_rgb = ycbcr_enc == V4L2_YCBCR_ENC_601 || in fdp1_try_fmt_capture() 1540 (ycbcr_enc == V4L2_YCBCR_ENC_709 && in fdp1_try_fmt_capture() 1564 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in fdp1_try_fmt_capture() 1567 pix->ycbcr_enc = src_data->format.ycbcr_enc; in fdp1_try_fmt_capture()
|