iMX8QM RAW12 Camera (AR0231)

cancel
Showing results for 
Search instead for 
Did you mean: 

iMX8QM RAW12 Camera (AR0231)

1,084 Views
lorenzo_giraudi
Contributor III

Hello everyone,

I have a custom board with an iMX8 Quad Max and a max9286 deserializer. The OS is built with yocto starting from the release L4.14.98_2.0.0_ga.

Using a sensor (AR0231) that outputs RAW12 pixels, I managed to get an image but with a very strange colors using gstreamer. I discovered that probably gstreamer does not support bayer/raw format on 12bits. But also capturing a single frame with v4l2-ctl gets a really strange.

I was wondering:

  1. If the CSI has to be told which pixel format is used. I saw that there is a register called CSI2SS_DATA_TYPE inside the file mxc-mipi-csi2.c, but if I modify it it stops working.
  2. If anyone of you did a similar task which steps you followed.

Thank everyone!

Tags (4)
0 Kudos
5 Replies

529 Views
joanxie
NXP TechSupport
NXP TechSupport

from MIPI CSI to ISI, for RAW12 input, the data will be filled in ISI pixel [13:2], and ISI pixel [1:0] are always 0. so you need to shift 2bits to get correct image

529 Views
lorenzo_giraudi
Contributor III

I have my datastream passing through the ISI but i do not intend to perform any color space conversion or scaling.

Do you think this is still messing up?

Do you have any idea about where (in which file.c) i should add this shitf?

Thank you for your hint.

0 Kudos

529 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos

529 Views
xu_ji1
Contributor IV

Hello,

Could you help my problem?

0 Kudos

529 Views
xu_ji1
Contributor IV

Hello,

With the patch imx8_ov5640_raw_captupre_test_4.14.98_2.0.0_ga.diff.zip meet build error about #include "g2d.h"

can not found the head file,how to fixed it?

0 Kudos