This feature is easy for gstreamer to pipeline v4lsrc and v4lsink, since
camera output format can be set as UYVY in v4l2 capture driver, and PxP
will do the CSC from UYVY to RGB565 in v4l2 output driver for LCD display.
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit
d8f47ca83385f3e96ce457f35b69c4a7ac733a6e)
.bpp = 2,
.fourcc = V4L2_PIX_FMT_YUV422P,
.colorspace = V4L2_COLORSPACE_JPEG,
+ }, {
+ .name = "UYVY",
+ .bpp = 2,
+ .fourcc = V4L2_PIX_FMT_UYVY,
+ .colorspace = V4L2_COLORSPACE_JPEG,
},
};
pxp_fmt = PXP_PIX_FMT_YUV420P;
else if (v4l2_pix_fmt == V4L2_PIX_FMT_YUV422P)
pxp_fmt = PXP_PIX_FMT_YUV422P;
+ else if (v4l2_pix_fmt == V4L2_PIX_FMT_UYVY)
+ pxp_fmt = PXP_PIX_FMT_UYVY;
return pxp_fmt;
}