AnsweredAssumed Answered

Capture RGB Image using OV5640

Question asked by R Roeber on Jun 4, 2014
Latest reply on Sep 5, 2014 by Kim Lim

I am using Linux kernel 3.0.35 on the i.MX6 dual core processor with an OV5640 camera sensor on the MIPI CSI-2 port.  I can receive still images and video from the sensor in YUV format using all of the modes and expected frame rates.

 

I have examined the ov5640_mipi.c file and note that V4L2_PIX_FMT_RGB565 is, or should be, supported.  However, it appears that the pixelformat value is only used to configure the csi-2 driver.  I do not see where the pixelformat parameter is used to configure the sensor output mode.  In fact, changing the pixelformat from V4L2_PIX_FMT_UYVY to V4L2_PIX_FMT_RGB565 gives me a very poor image.

 

Can anyone tell me what changes I need to make to the driver(s) in order to capture RGB still images? Thanks.

Outcomes