Home
last modified time | relevance | path

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

/openbmc/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,
/openbmc/linux/drivers/media/platform/nxp/
H A Dimx7-media-csi.c1796 static void imx7_csi_try_colorimetry(struct v4l2_mbus_framefmt *tryfmt) in imx7_csi_try_colorimetry() argument
1801 cc = imx7_csi_find_mbus_format(tryfmt->code); in imx7_csi_try_colorimetry()
1805 switch (tryfmt->colorspace) { in imx7_csi_try_colorimetry()
1816 tryfmt->colorspace = V4L2_COLORSPACE_SRGB; in imx7_csi_try_colorimetry()
1820 if (tryfmt->xfer_func == V4L2_XFER_FUNC_DEFAULT) in imx7_csi_try_colorimetry()
1821 tryfmt->xfer_func = in imx7_csi_try_colorimetry()
1822 V4L2_MAP_XFER_FUNC_DEFAULT(tryfmt->colorspace); in imx7_csi_try_colorimetry()
1824 if (tryfmt->ycbcr_enc == V4L2_YCBCR_ENC_DEFAULT) in imx7_csi_try_colorimetry()
1825 tryfmt->ycbcr_enc = in imx7_csi_try_colorimetry()
1826 V4L2_MAP_YCBCR_ENC_DEFAULT(tryfmt->colorspace); in imx7_csi_try_colorimetry()
[all …]