Home
last modified time | relevance | path

Searched refs:tryfmt (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/staging/media/imx/
H A Dimx-media-utils.c467 void imx_media_try_colorimetry(struct v4l2_mbus_framefmt *tryfmt, in imx_media_try_colorimetry() argument
473 cc = imx_media_find_mbus_format(tryfmt->code, PIXFMT_SEL_ANY); in imx_media_try_colorimetry()
475 cc = imx_media_find_ipu_format(tryfmt->code, in imx_media_try_colorimetry()
481 switch (tryfmt->colorspace) { in imx_media_try_colorimetry()
492 tryfmt->colorspace = V4L2_COLORSPACE_SRGB; in imx_media_try_colorimetry()
496 if (tryfmt->xfer_func == V4L2_XFER_FUNC_DEFAULT) in imx_media_try_colorimetry()
497 tryfmt->xfer_func = in imx_media_try_colorimetry()
498 V4L2_MAP_XFER_FUNC_DEFAULT(tryfmt->colorspace); in imx_media_try_colorimetry()
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()
[all …]
H A Dimx-media.h197 void imx_media_try_colorimetry(struct v4l2_mbus_framefmt *tryfmt,
/linux/drivers/media/platform/nxp/
H A Dimx7-media-csi.c1812 static void imx7_csi_try_colorimetry(struct v4l2_mbus_framefmt *tryfmt) in imx7_csi_try_colorimetry() argument
1817 cc = imx7_csi_find_mbus_format(tryfmt->code); in imx7_csi_try_colorimetry()
1821 switch (tryfmt->colorspace) { in imx7_csi_try_colorimetry()
1832 tryfmt->colorspace = V4L2_COLORSPACE_SRGB; in imx7_csi_try_colorimetry()
1836 if (tryfmt->xfer_func == V4L2_XFER_FUNC_DEFAULT) in imx7_csi_try_colorimetry()
1837 tryfmt->xfer_func = in imx7_csi_try_colorimetry()
1838 V4L2_MAP_XFER_FUNC_DEFAULT(tryfmt->colorspace); in imx7_csi_try_colorimetry()
1840 if (tryfmt->ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) in imx7_csi_try_colorimetry()
1841 tryfmt->ycbcr_enc = in imx7_csi_try_colorimetry()
1842 V4L2_MAP_YCBCR_ENC_DEFAULT(tryfmt->colorspace); in imx7_csi_try_colorimetry()
[all …]