cancel
Showing results for 
Search instead for 
Did you mean: 

LTDC_PIXEL_FORMAT_RGB888, framebuffer format?

pk84
Senior

Hello,

I'm using LTDC_Display_1Layer example.

In case I use "LTDC_PIXEL_FORMAT_RGB888" in which format should I store a picture in the framebuffer?

I did following, but the pictures is not displayed correctly. 24bit value of a pixel is stored in one 32bit array position. Is that wrong?

const uint32_t RGB888_1024x600[614400] =
 
{
 
	0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff,
 
  0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff,
 
 
 
..
 
  0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff, 0x00ffffff
 
};

11 REPLIES 11
pk84
Senior

See attachment. I managed to convert a bmp-picture to ARGB888.

But the ARGB888 480x272 picture array, even with "LTDC_PIXEL_FORMAT_ARGB8888" the picture is not displayed correctly. I see only several lines in different colors...

What do I miss?

pk84
Senior

I think the root cause is the conversion tool I use, where can I find a tool which convert picture to compatible LTDC format, as "LTDC_PIXEL_FORMAT_ARGB8888" ??