RGB parallel camera on IMX6

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

RGB parallel camera on IMX6

1,431 Views
mariuszpiotrows
Contributor I

I am trying to feed 24 bit per pixel (RGB ) over parallel interface to IMX6 SabreSD  board,

as reference I was using OV5640 parallel camera (to mimic camera, video is coming from FPGA with separate syncs anyway),

After gStreamer modification (gstimxv4l2.c)

static guint g_camera_format_IPU[] = {
  V4L2_PIX_FMT_YUV420,
  V4L2_PIX_FMT_NV12,
  V4L2_PIX_FMT_YUYV,
  V4L2_PIX_FMT_UYVY,
  V4L2_PIX_FMT_RGB24,
  V4L2_PIX_FMT_BGR24,
  0,
};

gStreamer accept RGB format :

gst-launch-1.0 -v imxv4l2src ! 'video/x-raw, format=RGB, width=1920, height=1080' ! imxv4l2sink &
root@imx6qsabresd:~# gst-launch-1.0 -v imxv4l2src ! 'video/x-raw, format=RGBx, width=1920, height=1080' ! imxv4l2sink

But video is treated as 16 bit RGB565 send to frame buffer,

Is there example of code how to feed 24 bit video to IPU ?

modification of ov5640.c

...

ov5640_data.pix.pixelformat = V4L2_PIX_FMT_RGB24;

is not helping eighter, with this mod in place gStreamer can't start at all.

Could anybody advice what are the steps how to use 24 bit RGB  parallel camera with IMX6?

0 Kudos
1 Reply

812 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mariusz

also one can check settings IPUx_CSI0_SENS_CONF (CSI0_SENS_DATA_FORMAT,

CSI0_DATA_WIDTH) and hardware connections with Table 66. Camera Input Signal Cross Reference,

Format, and Bits Per Cycle i.MX6DQ Datasheet

http://www.nxp.com/docs/en/data-sheet/IMX6DQCEC.pdf

try with units tests imx-test (../mxc_v4l2_test)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz
some useful links with raw capture examples can be found on

Can imx6 support for RGB RAW camera? 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos