/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Why is color_t byte order switched?

Username:     
Password:     
             

Forum

# 1   2011-05-04 11:12:26 Why is color_t byte order switched?

alberto_c
New member
Registered: 2011-04-25
Posts: 3

Why is color_t byte order switched?

As subject says...
Why color_t mask is:

gggbbbbb rrrrrggg

and not (like it should considering a traditional RGB 565 encoding)

rrrrrggg gggbbbbb

It would simplify A LOT color management (mixing colors for antialiasing and such).

AFAICT, the only reason it is so is that Bitmap read is faster. But the LCD send method is sending data 1 byte at a time, so it's not a concern.

Probably I'm missing the big picture, so I'm asking this question here.

Offline

 

Board footer