Hi,
I am using ON sensor AR0231 on i.MX 8QXP. The pixel type of sensor output is RAW12.
The command I used now is: gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=1920,height=1080,framerate=30/1' ! queue ! waylandsink
Then I received a green screen. It looks like the driver of i.MX8QXP didn't support RAW data. And I feel confused now is whether the ISI of i.MX 8QXP support RAW data or not.
I also have download the softISP, but I don't know how to used it.
Could some one give me some advises? Thanks.
I suggest that you can refer to the chapter 15.6.1 Image Sensing Interface (ISI):
• Stream Manipulation Features
• Supported Pixel Formats when storing image into memory
• RAW8, RAW10, RAW12, RAW16
• RGB888, BGR888, RGB565, RGB 10-bit, BGR 10-bit
• YUV444, YUV422, YUV420 (8-bit, 10-bit, 12-bit)
• Plus more formats listed in the description of FORMAT field in the
channel's IMG_CTRL register
document confirms that imx8qxp can support this, but we need to configure ISI to raw16 first, Bit13~LSB(Bit 13~Bit 2): 0b00DD DDDD DDDD DD00, right shift 2 bit to get RAW12: 0b0000 DDDD DDDD DDDD,
we don't have source code for this, you can know the mechanism of raw data conversion, why do you get green picture, you should right shift your data first