/linux-6.3-rc2/include/media/ |
A D | v4l2-mediabus.h | 187 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format() 209 mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; in v4l2_fill_mbus_format() 230 pix_mp_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format_mplane() 250 mbus_fmt->ycbcr_enc = pix_mp_fmt->ycbcr_enc; in v4l2_fill_mbus_format_mplane()
|
A 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-6.3-rc2/drivers/media/test-drivers/visl/ |
A D | visl-trace-fwht.h | 22 __field(u32, ycbcr_enc) 33 __entry->ycbcr_enc = p->ycbcr_enc; 51 __entry->colorspace, __entry->xfer_func, __entry->ycbcr_enc,
|
/linux-6.3-rc2/drivers/media/test-drivers/vimc/ |
A 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()
|
A 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; \
|
/linux-6.3-rc2/drivers/media/platform/nxp/ |
A D | imx-pxp.c | 171 enum v4l2_ycbcr_encoding ycbcr_enc; member 354 enum v4l2_ycbcr_encoding ycbcr_enc; in pxp_setup_csc() local 505 ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_setup_csc() 508 if (ycbcr_enc == V4L2_YCBCR_ENC_601) { in pxp_setup_csc() 718 ycbcr_enc = ctx->q_data[V4L2_M2M_DST].ycbcr_enc; in pxp_setup_csc() 1201 f->fmt.pix.ycbcr_enc = q_data->ycbcr_enc; in pxp_g_fmt() 1265 *ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_fixup_colorimetry_cap() 1271 *ycbcr_enc); in pxp_fixup_colorimetry_cap() 1297 &f->fmt.pix.ycbcr_enc, in pxp_try_fmt_vid_cap() 1372 ctx->q_data[V4L2_M2M_DST].ycbcr_enc = f->fmt.pix.ycbcr_enc; in pxp_s_fmt_vid_cap() [all …]
|
/linux-6.3-rc2/drivers/staging/media/imx/ |
A 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()
|
A 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-6.3-rc2/drivers/gpu/ipu-v3/ |
A 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-6.3-rc2/drivers/media/platform/ti/vpe/ |
A 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-6.3-rc2/include/media/tpg/ |
A 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-6.3-rc2/drivers/media/platform/rockchip/rkisp1/ |
A 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()
|
A 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-6.3-rc2/drivers/media/v4l2-core/ |
A 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-6.3-rc2/drivers/media/platform/renesas/rzg2l-cru/ |
A D | rzg2l-ip.c | 127 sink_format->ycbcr_enc = fmt->format.ycbcr_enc; in rzg2l_cru_ip_set_format() 181 fmt.format.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in rzg2l_cru_ip_init_config()
|
/linux-6.3-rc2/drivers/media/test-drivers/vicodec/ |
A 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()
|
A 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()
|
A D | codec-v4l2-fwht.h | 40 enum v4l2_ycbcr_encoding ycbcr_enc; member
|
/linux-6.3-rc2/drivers/media/platform/st/sti/delta/ |
A 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()
|
A D | delta.h | 80 enum v4l2_ycbcr_encoding ycbcr_enc; member 145 enum v4l2_ycbcr_encoding ycbcr_enc; member
|
/linux-6.3-rc2/drivers/media/platform/st/stm32/dma2d/ |
A 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-6.3-rc2/drivers/media/platform/sunxi/sun4i-csi/ |
A 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-6.3-rc2/drivers/media/i2c/ |
A 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-6.3-rc2/drivers/media/platform/st/sti/hva/ |
A 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-6.3-rc2/drivers/media/platform/renesas/ |
A 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()
|