RT1052 CSI & Bayer Input

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

RT1052 CSI & Bayer Input

Jump to solution
981 Views
variable_andrew
Senior Contributor I

We have a camera connected to the CSI that provides data in Bayer 12-bit format.

We're able to get the image data and pretend it's just black/white data to either send over USB or display to an LCD, but what if we want to convert to RGB?

The RT1052 RM notes that the CSI accepts Bayer format data, but what can you do with this? As in: when CSI "accepts" the Bayer format data, and you can use CSI_CSICR2[BTS] to determine the Bayer tile start, is the CSI interface going to enable automatic conversion to RGB565 or RGB888 via the PXP perhaps? If so - how can you do this?

If the CSI and PXP are unable to do the Bayer to RGB conversion, then what is the purpose of setting the CSICR2 BTS bit? Just for statistics?

Labels (1)
0 Kudos
1 Solution
871 Views
FelipeGarcia
NXP Employee
NXP Employee

Hello Andrew,

 

The IPU can't support converting bayer format to RGB, it can only use generic mode to receive the CSI input bayer data to memory. To make the conversion you will need to use some graphics library.

 

Sorry for the inconvenience this may cause you.

 

Best regards,

Felipe

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
872 Views
FelipeGarcia
NXP Employee
NXP Employee

Hello Andrew,

 

The IPU can't support converting bayer format to RGB, it can only use generic mode to receive the CSI input bayer data to memory. To make the conversion you will need to use some graphics library.

 

Sorry for the inconvenience this may cause you.

 

Best regards,

Felipe

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos