Bayer Image format not properly visible

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

Bayer Image format not properly visible

787 Views
jiju
Contributor II

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.

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

759 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

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>/Documentation/userspace-api/media/v4l/subdev-formats.rst

It will help you!

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply

677 Views
jiju
Contributor II

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?

0 Kudos
Reply

659 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

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/devicetree/bindings/display

I hope this information helps!

Thanks & Regards,

Sanket Parekh

0 Kudos
Reply