STM32 DMA2D ARGB8888 image load
Hello,
I'm facing a issue with DMA2D to blend some images.
From the naming ARGB means that the order of the colors should be Alpha, Red, Green and Blue.
But if I have a PNG file which contains my image with Alpha, how I have to convert to a static image for my MCU to be able to work correctly with it with DMA2D?
Normally PNG is using RGBA format in big-endian. But if I'm converting this file to ARGB format and try to blend it over another image, it will work?
Also I'm confused with endianess, because I know that ARM normally is using little-endian.
Which is the best approach to load the image?
A struct like this:
typedef struct {
uint8_t A: 8;
uint8_t R: 8;
uint8_t G: 8;
uint8_t B: 8;
} ARGB_TypeDef;
typedef struct {
const uint16_t width;
const uint16_t height;
ARGB_TypeDef *data;
} FCU_Labels_TypeDef;Should work with DMA2D which requires uint32_t data for source and destination?
Thanks.

