IMX8MM: Does UYVY pixcel format supported in IMX8MM

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX8MM: Does UYVY pixcel format supported in IMX8MM

127 Views
Contributor IV

Hi,

I am working on UYUY pixcel format,  Does the UYVY pixcel format is supported in IMX8MM ?

Regards

Santhosh Kumar S

Labels (1)
0 Kudos
5 Replies

122 Views
NXP TechSupport
NXP TechSupport

imx8mm csi, vpu and GPU can support this

0 Kudos

115 Views
Contributor IV

Thanks for the quick reply,

I have added  pixel UYVY8_1X16 in mx6s_capture.c nxp driver and i am getting the image, But same image is replicated multiple times

What is the root cause for this condition

 

 

0 Kudos

104 Views
NXP TechSupport
NXP TechSupport

I dont' know how did you add this, don't forget add this format in the #define, and mx6s_capture.c already have this:

{
		.name		= "UYVY-16",
		.fourcc		= V4L2_PIX_FMT_UYVY,
		.pixelformat	= V4L2_PIX_FMT_UYVY,
		.mbus_code	= MEDIA_BUS_FMT_UYVY8_2X8,
		.bpp		= 2,
	}, 

 maybe you need add in the "mx6s_configure_csi"

 

0 Kudos

98 Views
Contributor IV
{
		.name		= "UYVY-16",
		.fourcc		= V4L2_PIX_FMT_UYVY,
		.pixelformat	= V4L2_PIX_FMT_UYVY,
		.mbus_code	= MEDIA_BUS_FMT_UYVY8_2X8,
		.bpp		= 2,
	}, 

This is already in the mx6s_capture.c code

Since the MIPI bridge IC that I am using support only UYVY8_1X16 and RGB888_1X24

{
        .name = "YUV 4:2:2 packed, CbYCrY", /*Added by santhosh */
        .fourcc = V4L2_PIX_FMT_UYVY,
        .pixelformat = V4L2_PIX_FMT_UYVY,
        .mbus_code = MEDIA_BUS_FMT_UYVY8_1X16,
        .bpp = 2, /*4,*/ /*8x2=16bpp*/
}

{
       .name = "RGB888 (R-G-B-3)", /*"xBGR32",*/ /*Added by santhosh*/ /*Note: Ref TC9590XBG datasheet page 33*/
       .fourcc = V4L2_PIX_FMT_RGB24, /*V4L2_PIX_FMT_XBGR32,*/ /*https://community.nxp.com/message/1336744*/
       .pixelformat = V4L2_PIX_FMT_RGB24, /*V4L2_PIX_FMT_XBGR32,*/
       .mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
       .bpp = 4,//3, /*Added by santhosh bpp=3 is tested and not to be changed for RGB888_1X24*/
}

But i am not able to determine why the video is multiple times produced on the screen (Screen shot attached)

UYVY8_1X16.png

0 Kudos

9 Views
NXP TechSupport
NXP TechSupport

how about using the command "v4l2-ctl --list-format"? I found we have imx8mm issue on UYVY and I found patch for this, maybe you can refer to them:
https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_4.19.35_1.0.0&id=6de690dd4e78b1bf...

https://patchwork.kernel.org/project/linux-media/patch/20160902153706.512-1-niklas.soderlund+renesas...

0 Kudos