cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion from Raw Bayer format to RGB format in STM32F7508-DK

NS.9
Associate II

From the example code 'CAMERA' for STM32F7508-DK.

main.c/ "static void LCD_LL_ConvertLineToARGB8888(void *pSrc, void *pDst)" function we have configured DMA2D_Input_Color_Mode macro to DMA2D_INPUT_RGB888 and we are getting color image but the colors are not identical, in the place of yellow color we ara getting blue color and in the place of blue we are getting yellow color. This may be because of Bayer's color format. We tried all the macros mentioned below under DMA2D_Input_Color_Mode.

DMA2D_INPUT_ARGB8888    0x00000000U 

DMA2D_INPUT_RGB888     0x00000001U 

DMA2D_INPUT_RGB565     0x00000002U

DMA2D_INPUT_ARGB1555    0x00000003U

DMA2D_INPUT_ARGB4444    0x00000004U 

DMA2D_INPUT_L8       0x00000005U 

DMA2D_INPUT_AL44      0x00000006U 

DMA2D_INPUT_AL88      0x00000007U 

DMA2D_INPUT_L4       0x00000008U 

DMA2D_INPUT_A8       0x00000009U 

DMA2D_INPUT_A4       0x0000000AU 

Can you please share the configuration for Bayer format.

2 REPLIES 2
KDJEM.1
ST Employee

Hi @NS.9​ ,

A similar question is already asked here.

You can find in the RM0385 Table 35 that the DMA2D can't support the Raw Bayer format. So, you can't do the conversion from Raw Bayer format to RGB format.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.