Home
last modified time | relevance | path

Searched refs:ycbcr_enc (Results 1 – 25 of 106) sorted by relevance

12345

/linux/include/media/
A Dv4l2-mediabus.h144 pix_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format()
166 mbus_fmt->ycbcr_enc = pix_fmt->ycbcr_enc; in v4l2_fill_mbus_format()
187 pix_mp_fmt->ycbcr_enc = mbus_fmt->ycbcr_enc; in v4l2_fill_pix_format_mplane()
207 mbus_fmt->ycbcr_enc = pix_mp_fmt->ycbcr_enc; in v4l2_fill_mbus_format_mplane()
A Dv4l2-common.h575 static inline bool v4l2_is_ycbcr_enc_valid(__u8 ycbcr_enc) in v4l2_is_ycbcr_enc_valid() argument
577 return ycbcr_enc > V4L2_YCBCR_ENC_DEFAULT && in v4l2_is_ycbcr_enc_valid()
578 ycbcr_enc <= V4L2_YCBCR_ENC_SMPTE240M; in v4l2_is_ycbcr_enc_valid()
/linux/drivers/media/platform/
A Dimx-pxp.c162 enum v4l2_ycbcr_encoding ycbcr_enc; member
312 enum v4l2_ycbcr_encoding ycbcr_enc; in pxp_setup_csc() local
463 ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_setup_csc()
466 if (ycbcr_enc == V4L2_YCBCR_ENC_601) { in pxp_setup_csc()
676 ycbcr_enc = ctx->q_data[V4L2_M2M_DST].ycbcr_enc; in pxp_setup_csc()
1097 f->fmt.pix.ycbcr_enc = q_data->ycbcr_enc; in pxp_g_fmt()
1161 *ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_fixup_colorimetry_cap()
1167 *ycbcr_enc); in pxp_fixup_colorimetry_cap()
1193 &f->fmt.pix.ycbcr_enc, in pxp_try_fmt_vid_cap()
1268 ctx->q_data[V4L2_M2M_DST].ycbcr_enc = f->fmt.pix.ycbcr_enc; in pxp_s_fmt_vid_cap()
[all …]
A Drcar_fdp1.c969 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()
/linux/drivers/staging/media/imx/
A Dimx-media-utils.c414 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()
607 mbus->ycbcr_enc = image->pix.ycbcr_enc; in imx_media_ipu_image_to_mbus_fmt()
A Dimx-media-csc-scaler.c227 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/drivers/media/test-drivers/vimc/
A Dvimc-common.c296 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 Dvimc-common.h52 (fmt)->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; \
56 if ((fmt)->ycbcr_enc > V4L2_YCBCR_ENC_SMPTE240M) \
57 (fmt)->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; \
A Dvimc-sensor.c122 tpg_s_ycbcr_enc(&vsen->tpg, vsen->mbus_format.ycbcr_enc); in vimc_sen_tpg_s_format()
174 mf->xfer_func, mf->ycbcr_enc, in vimc_sen_set_fmt()
178 fmt->format.xfer_func, fmt->format.ycbcr_enc); in vimc_sen_set_fmt()
/linux/drivers/gpu/ipu-v3/
A Dipu-dp.c129 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/drivers/media/platform/ti-vpe/
A Dcsc.c155 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/include/media/tpg/
A Dv4l2-tpg.h163 u32 ycbcr_enc; member
366 static inline void tpg_s_ycbcr_enc(struct tpg_data *tpg, u32 ycbcr_enc) in tpg_s_ycbcr_enc() argument
368 if (tpg->ycbcr_enc == ycbcr_enc) in tpg_s_ycbcr_enc()
370 tpg->ycbcr_enc = ycbcr_enc; in tpg_s_ycbcr_enc()
376 return tpg->ycbcr_enc; in tpg_g_ycbcr_enc()
/linux/drivers/media/v4l2-core/
A Dv4l2-dv-timings.c917 c.ycbcr_enc = V4L2_YCBCR_ENC_601; in v4l2_hdmi_rx_colorimetry()
920 c.ycbcr_enc = V4L2_YCBCR_ENC_709; in v4l2_hdmi_rx_colorimetry()
926 c.ycbcr_enc = V4L2_YCBCR_ENC_601; in v4l2_hdmi_rx_colorimetry()
931 c.ycbcr_enc = V4L2_YCBCR_ENC_709; in v4l2_hdmi_rx_colorimetry()
938 c.ycbcr_enc = V4L2_YCBCR_ENC_XV709; in v4l2_hdmi_rx_colorimetry()
943 c.ycbcr_enc = V4L2_YCBCR_ENC_XV601; 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_601; in v4l2_hdmi_rx_colorimetry()
958 c.ycbcr_enc = V4L2_YCBCR_ENC_BT2020; in v4l2_hdmi_rx_colorimetry()
963 c.ycbcr_enc = V4L2_YCBCR_ENC_BT2020_CONST_LUM; in v4l2_hdmi_rx_colorimetry()
[all …]
/linux/drivers/media/platform/sti/delta/
A Ddelta-v4l2.c261 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 Ddelta.h80 enum v4l2_ycbcr_encoding ycbcr_enc; member
145 enum v4l2_ycbcr_encoding ycbcr_enc; member
/linux/drivers/media/test-drivers/vicodec/
A Dvicodec-core.c249 ctx->state.ycbcr_enc = ntohl(p_hdr->ycbcr_enc); in update_state_from_header()
546 ctx->state.ycbcr_enc = ntohl(p_hdr->ycbcr_enc); in update_capture_data_from_header()
793 pix->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_g_fmt()
812 pix_mp->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_g_fmt()
910 pix->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_try_fmt_vid_cap()
921 pix_mp->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_try_fmt_vid_cap()
1119 ctx->state.ycbcr_enc = pix->ycbcr_enc; in vidioc_s_fmt_vid_out()
1126 ctx->state.ycbcr_enc = pix_mp->ycbcr_enc; in vidioc_s_fmt_vid_out()
1777 p_hdr->ycbcr_enc = htonl(params->ycbcr_enc); in update_header_from_stateless_params()
A Dcodec-v4l2-fwht.c276 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 Dcodec-v4l2-fwht.h40 enum v4l2_ycbcr_encoding ycbcr_enc; member
A Dcodec-fwht.h74 __be32 ycbcr_enc; member
/linux/drivers/media/i2c/
A Dadv7511-v4l2.c107 u32 ycbcr_enc; member
1267 format->format.ycbcr_enc = fmt->ycbcr_enc; in adv7511_get_fmt()
1273 format->format.ycbcr_enc = state->ycbcr_enc; in adv7511_get_fmt()
1322 fmt->ycbcr_enc = format->format.ycbcr_enc; in adv7511_set_fmt()
1347 state->ycbcr_enc = format->format.ycbcr_enc; in adv7511_set_fmt()
1359 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV601) { in adv7511_set_fmt()
1366 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV709) { in adv7511_set_fmt()
1378 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_BT2020_CONST_LUM) in adv7511_set_fmt()
/linux/drivers/media/platform/sti/hva/
A Dhva-v4l2.c113 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/drivers/staging/media/hantro/
A Dhantro_v4l2.c322 fmt->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in hantro_reset_fmt()
461 ctx->dst_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_out()
523 ctx->src_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_cap()
/linux/drivers/media/platform/sunxi/sun4i-csi/
A Dsun4i_v4l2.c109 pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt()
111 pix->ycbcr_enc); in _sun4i_csi_try_fmt()
268 .ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT,
/linux/drivers/media/platform/mtk-vcodec/
A Dmtk_vcodec_enc.c503 ctx->ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; in vidioc_venc_s_fmt_out()
545 pix->ycbcr_enc = ctx->ycbcr_enc; in vidioc_venc_g_fmt()
565 f->fmt.pix_mp.ycbcr_enc = ctx->ycbcr_enc; in vidioc_try_fmt_vid_cap_mplane()
586 f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in vidioc_try_fmt_vid_out_mplane()
1305 ctx->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in mtk_vcodec_enc_set_default_params()
/linux/drivers/media/test-drivers/
A Dvim2m.c222 enum v4l2_ycbcr_encoding ycbcr_enc; member
740 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_g_fmt()
804 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_try_fmt_vid_cap()
895 ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; in vidioc_s_fmt_vid_out()

Completed in 161 milliseconds

12345