AnsweredAssumed Answered

RGB parallel camera on IMX6

Question asked by Mariusz Piotrowski on Feb 5, 2018
Latest reply on Feb 6, 2018 by igorpadykov

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?

Outcomes