Hi, we are trying to integration a sensor which provides 8-bit BGGR data on the MIPI interface. We are able to capture the image but the color space is not proper. Below is the configuration in the camera driver
MEDIA_BUS_FMT_SBGGR8_1X8
V4L2_PIX_FMT_SBGGR8
With these settings we are getting image (attached). Can anyone verify if we are getting the correct image or there is some issue in the configurations?
We are integrating the camera on IMX8M mini EVK kit.
Hello @jiju
I hope you are doing well.
->The media bus pixel codes document parallel formats. Should the pixel data be transported over a serial bus, the media bus pixel code that describes a parallel format that transfers a sample on a single clock cycle is used. For instance, both MEDIA_BUS_FMT_BGR888_1X24 and MEDIA_BUS_FMT_BGR888_3X8 are used on parallel busses for transferring an 8 bits per sample BGR data, whereas on serial busses the data in this format is only referred to using MEDIA_BUS_FMT_BGR888_1X24. This is because there is effectively only a single way to transport that format on the serial buses.
Please refer to the file below-given location for more details on BGR configuration.
<Linux_src_code>/
It will help you!
Thanks & Regards,
Sanket Parekh
The MEDIA_BUS_FMT_BGR888_1X24 format is not supported in mx6_capture driver. Do you know how we can add this in the capture driver?
Hello @jiju ,
I hope you are doing well.
Please accept my apology for the inconvenience.
->The image you have attached appears to be correct. The color space of the image is BGGR, which is the default color space for the i.MX8M mini EVK.
->The MEDIA_BUS_FMT_BGR888_1X24 format is not supported in the mx6_capture driver because it is not a standard V4L2 pixel format.
->The configuration you are using is also correct.
->Please check the camera driver configuration & its sensor settings that are made.
->One can check the camera configuration examples for reference at a given location.
<source_code>/Documentation/
I hope this information helps!
Thanks & Regards,
Sanket Parekh