IMX6UL capture rgb888 video

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6UL capture rgb888 video

1,602 Views
yunweihe
Contributor I

Dear all,

I would like to capture video on IMX6UL platfrom,  the video interface is parallel rgb 24-bit, so input format is rgb888, the resolution is 1080p30

But I find the IMX6UL capture driver seems not support rgb888 capture. The driver file is drivers/media/platform/mxc/subdev/mx6s_capture.c, we can see it only supports these formats:

250 static struct mx6s_fmt formats[] = {
251 {
252 .name = "UYVY-16",
253 .fourcc = V4L2_PIX_FMT_UYVY,
254 .pixelformat = V4L2_PIX_FMT_UYVY,
255 .mbus_code = V4L2_MBUS_FMT_UYVY8_2X8,
256 .bpp = 2,
257 }, {
258 .name = "YUYV-16",
259 .fourcc = V4L2_PIX_FMT_YUYV,
260 .pixelformat = V4L2_PIX_FMT_YUYV,
261 .mbus_code = V4L2_MBUS_FMT_YUYV8_2X8,
262 .bpp = 2,
263 }, {
264 .name = "YUV32 (X-Y-U-V)",
265 .fourcc = V4L2_PIX_FMT_YUV32,
266 .pixelformat = V4L2_PIX_FMT_YUV32,
267 .mbus_code = V4L2_MBUS_FMT_AYUV8_1X32,
268 .bpp = 4,
269 }
270 };

So did the capture driver of IMX6UL support rgb888, and  could it capture 30fps when the resolution is 1080p?

0 Kudos
Reply
4 Replies

919 Views
yunweihe
Contributor I

Hi Joan,

Thanks for your reply.  

The capture driver for  IMX6UL is <Yocto_BuildDir>/linux/drivers/media/platform/mxc/subdev/mx6s_capture.c.

For other IMX6 processors the capture  is  <Yocto_BuildDir>/linux/drivers/media/platform/mxc/capture.

My board input video is fromlvds, we change the lvds signal to rgb888.

So the driver of IMX6UL can support the rgb888 input?

0 Kudos
Reply

919 Views
joanxie
NXP TechSupport
NXP TechSupport

yes mx6ul supports 24bits capture, but let me remind, in current bsp, which doesn't support it, you should change the source code for your own device.

0 Kudos
Reply

919 Views
yunweihe
Contributor I

Thanks Joan 

can you give me some suggestions how to modify the imx6ul capture driver to support rgb24bits.

I'm not familiar with the driver and the csi module.

0 Kudos
Reply

919 Views
joanxie
NXP TechSupport
NXP TechSupport

what camera do you use? refer to the linux reference manual, the driver path is:<Yocto_BuildDir>/linux/drivers/media/platform/mxc/capture, and refer the capture test on ov562, mx6ul capture can support up to 1080P@15fps.

0 Kudos
Reply