Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/include/media/
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()
Dfwht-ctrls.h26 __u32 ycbcr_enc; member
Dv4l2-common.h555 static inline bool v4l2_is_ycbcr_enc_valid(__u8 ycbcr_enc) in v4l2_is_ycbcr_enc_valid() argument
557 return ycbcr_enc > V4L2_YCBCR_ENC_DEFAULT && in v4l2_is_ycbcr_enc_valid()
558 ycbcr_enc <= V4L2_YCBCR_ENC_SMPTE240M; in v4l2_is_ycbcr_enc_valid()
Dv4l2-dv-timings.h235 enum v4l2_ycbcr_encoding ycbcr_enc; member
/kernel/linux/linux-5.10/drivers/media/platform/
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()
471 } else if (ycbcr_enc == V4L2_YCBCR_ENC_709) { in pxp_setup_csc()
476 } else if (ycbcr_enc == V4L2_YCBCR_ENC_BT2020) { in pxp_setup_csc()
676 ycbcr_enc = ctx->q_data[V4L2_M2M_DST].ycbcr_enc; in pxp_setup_csc()
679 if (ycbcr_enc == V4L2_YCBCR_ENC_601) { in pxp_setup_csc()
684 } else if (ycbcr_enc == V4L2_YCBCR_ENC_709) { in pxp_setup_csc()
689 } else if (ycbcr_enc == V4L2_YCBCR_ENC_BT2020) { in pxp_setup_csc()
[all …]
Drcar_fdp1.c969 if (src_q_data->format.ycbcr_enc == V4L2_YCBCR_ENC_709) in fdp1_configure_wpf()
1518 enum v4l2_ycbcr_encoding ycbcr_enc; in fdp1_try_fmt_capture() local
1534 ycbcr_enc = src_data->format.ycbcr_enc; in fdp1_try_fmt_capture()
1535 if (ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) in fdp1_try_fmt_capture()
1536 ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(colorspace); in fdp1_try_fmt_capture()
1541 ycbcr_enc); in fdp1_try_fmt_capture()
1543 allow_rgb = ycbcr_enc == V4L2_YCBCR_ENC_601 || in fdp1_try_fmt_capture()
1544 (ycbcr_enc == V4L2_YCBCR_ENC_709 && in fdp1_try_fmt_capture()
1568 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in fdp1_try_fmt_capture()
1571 pix->ycbcr_enc = src_data->format.ycbcr_enc; in fdp1_try_fmt_capture()
/kernel/linux/linux-5.10/drivers/staging/media/imx/
Dimx-media-utils.c393 mbus->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(mbus->colorspace); in imx_media_init_mbus_fmt()
397 mbus->ycbcr_enc); in imx_media_init_mbus_fmt()
480 if (tryfmt->ycbcr_enc != V4L2_YCBCR_ENC_601 && in imx_media_try_colorimetry()
481 tryfmt->ycbcr_enc != V4L2_YCBCR_ENC_709) in imx_media_try_colorimetry()
482 tryfmt->ycbcr_enc = V4L2_YCBCR_ENC_601; in imx_media_try_colorimetry()
484 if (tryfmt->ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) { in imx_media_try_colorimetry()
485 tryfmt->ycbcr_enc = in imx_media_try_colorimetry()
494 tryfmt->ycbcr_enc); in imx_media_try_colorimetry()
540 pix->ycbcr_enc = mbus->ycbcr_enc; in imx_media_mbus_fmt_to_pix_fmt()
586 mbus->ycbcr_enc = image->pix.ycbcr_enc; in imx_media_ipu_image_to_mbus_fmt()
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()
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/
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()
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; \
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()
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
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()
/kernel/linux/linux-5.10/include/media/tpg/
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()
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-dv-timings.c939 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 …]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vicodec/
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()
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()
915 pix->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_try_fmt_vid_cap()
926 pix_mp->ycbcr_enc = ctx->state.ycbcr_enc; in vidioc_try_fmt_vid_cap()
1124 ctx->state.ycbcr_enc = pix->ycbcr_enc; in vidioc_s_fmt_vid_out()
1131 ctx->state.ycbcr_enc = pix_mp->ycbcr_enc; in vidioc_s_fmt_vid_out()
1782 p_hdr->ycbcr_enc = htonl(params->ycbcr_enc); in update_header_from_stateless_params()
Dcodec-v4l2-fwht.h40 enum v4l2_ycbcr_encoding ycbcr_enc; member
Dcodec-fwht.h106 __be32 ycbcr_enc; member
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/
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()
Ddelta.h80 enum v4l2_ycbcr_encoding ycbcr_enc; member
145 enum v4l2_ycbcr_encoding ycbcr_enc; member
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun4i-csi/
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()
270 .ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT,
/kernel/linux/linux-5.10/drivers/media/i2c/
Dadv7511-v4l2.c107 u32 ycbcr_enc; member
1278 format->format.ycbcr_enc = fmt->ycbcr_enc; in adv7511_get_fmt()
1284 format->format.ycbcr_enc = state->ycbcr_enc; in adv7511_get_fmt()
1333 fmt->ycbcr_enc = format->format.ycbcr_enc; in adv7511_set_fmt()
1358 state->ycbcr_enc = format->format.ycbcr_enc; in adv7511_set_fmt()
1370 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV601) { in adv7511_set_fmt()
1377 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_XV709) { in adv7511_set_fmt()
1389 if (y && format->format.ycbcr_enc == V4L2_YCBCR_ENC_BT2020_CONST_LUM) in adv7511_set_fmt()
/kernel/linux/linux-5.10/drivers/staging/media/hantro/
Dhantro_v4l2.c320 fmt->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in hantro_reset_fmt()
458 ctx->dst_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_out()
520 ctx->src_fmt.ycbcr_enc = pix_mp->ycbcr_enc; in hantro_set_fmt_cap()
/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/
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()
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_enc.c497 ctx->ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; in vidioc_venc_s_fmt_out()
541 pix->ycbcr_enc = ctx->ycbcr_enc; in vidioc_venc_g_fmt()
561 f->fmt.pix_mp.ycbcr_enc = ctx->ycbcr_enc; in vidioc_try_fmt_vid_cap_mplane()
582 f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in vidioc_try_fmt_vid_out_mplane()
1160 ctx->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in mtk_vcodec_enc_set_default_params()

12345